From 6f5c1aa8c68c5530c9855d2f0ae2ba546d59d2a6 Mon Sep 17 00:00:00 2001 From: snomos Date: Mon, 2 Oct 2023 07:00:18 +0000 Subject: [PATCH] deploy: 2bfeba6ae4b907014d75b8920435ce8e40979873 --- Makefile.in | 8 +++++++- index-header.md | 4 ++-- index.md | 4 ++-- maturity.json | 1 + 4 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 maturity.json diff --git a/Makefile.in b/Makefile.in index 035b120..3cabc4a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -418,9 +418,11 @@ ALLINONE_MD_PAGE = $(srcdir)/$(GTLANG).md LINKS = $(srcdir)/Links.md HEADER = $(srcdir)/index-header.md INDEX = $(srcdir)/index.md +REPONAME = $(shell grep '__REPO__' $(top_srcdir)/.gut/delta.toml | cut -d'"' -f2) +# " reset syntax colouring - gets confused by the single double quote in the previous line # no regenerations while debugging -doc_DATA = $(INDEX) $(LINKS) $(ALLINONE_MD_PAGE) lemmacount.json +doc_DATA = $(INDEX) $(LINKS) $(ALLINONE_MD_PAGE) lemmacount.json maturity.json DOCC2MDWIKI = $(GTCORE)/scripts/doccomments2ghpages.awk DOCC2MDWIKI_CG3 = $(GTCORE)/scripts/doccomments2ghpages-vislcg.awk GRAPHPLOTTER = $(GTCORE)/scripts/plot-speller-progress.R @@ -937,6 +939,10 @@ regenerate-markdown: generate-markdown $(srcdir)/lemmacount.json: $(top_srcdir)/src/fst/stems/*.lexc $(AM_V_GEN)$(GTCORE)/scripts/make-lemmacount.json.sh $(abs_top_srcdir) > $@ +# Generate a maturity.json file as endpoint for the maturity badge. +$(srcdir)/maturity.json: + $(AM_V_GEN)$(GTCORE)/scripts/make-maturity.json.sh $(REPONAME) > $@ + # Convert source filenames to extracted documentation filenames, VPATH safe: # ../../../src/fst/stems/adverbs.lexc => src-fst-stems-adverbs.lexc.md define src2md diff --git a/index-header.md b/index-header.md index d8cc2a6..da49cd2 100644 --- a/index-header.md +++ b/index-header.md @@ -1,7 +1,7 @@ # Central Yupik documentation -[![Maturity: Experiment](https://img.shields.io/badge/Maturity-Experiment-black.svg)](https://giellalt.github.io/MaturityClassification.html) -![Endpoint Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fgiellalt%2Flang-esu%2Fgh-pages%2Flemmacount.json) +[![Maturity](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fgiellalt%2Flang-esu%2Fgh-pages%2Fmaturity.json)](https://giellalt.github.io/MaturityClassification.html) +![Lemma count](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fgiellalt%2Flang-esu%2Fgh-pages%2Flemmacount.json) [![License](https://img.shields.io/github/license/giellalt/lang-esu)](https://github.com/giellalt/lang-esu/blob/main/LICENSE) [![Issues](https://img.shields.io/github/issues/giellalt/lang-esu)](https://github.com/giellalt/lang-esu/issues) [![Build Status](https://divvun-tc.giellalt.org/api/github/v1/repository/giellalt/lang-esu/main/badge.svg)](https://github.com/giellalt/lang-esu/actions) diff --git a/index.md b/index.md index 3c938d4..f947444 100644 --- a/index.md +++ b/index.md @@ -1,7 +1,7 @@ # Central Yupik documentation -[![Maturity: Experiment](https://img.shields.io/badge/Maturity-Experiment-black.svg)](https://giellalt.github.io/MaturityClassification.html) -![Endpoint Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fgiellalt%2Flang-esu%2Fgh-pages%2Flemmacount.json) +[![Maturity](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fgiellalt%2Flang-esu%2Fgh-pages%2Fmaturity.json)](https://giellalt.github.io/MaturityClassification.html) +![Lemma count](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fgiellalt%2Flang-esu%2Fgh-pages%2Flemmacount.json) [![License](https://img.shields.io/github/license/giellalt/lang-esu)](https://github.com/giellalt/lang-esu/blob/main/LICENSE) [![Issues](https://img.shields.io/github/issues/giellalt/lang-esu)](https://github.com/giellalt/lang-esu/issues) [![Build Status](https://divvun-tc.giellalt.org/api/github/v1/repository/giellalt/lang-esu/main/badge.svg)](https://github.com/giellalt/lang-esu/actions) diff --git a/maturity.json b/maturity.json new file mode 100644 index 0000000..e10a768 --- /dev/null +++ b/maturity.json @@ -0,0 +1 @@ +{ "schemaVersion": 1, "label": "Maturity", "message": "Beta", "color": "yellow" }