Documentation infrastructure
Core components
The documentation infrastructure is built on the following stones:
- GirHub Flavoured Markdown (GFM)
- GitHub Pages
- the GH Pages theme jekyll-theme-minimal, with additions and modifications:
- left side TOC (see next point)
- right side sitemap
- grid-based layout
- responsive design
- Table of contents (TOC) created using jekyll-toc
- Markdown linting rules:
- only one H1 header (page title)
- H2 headers are the first header level listed in the TOC
- every documentation subfolder must have an
index.mdfile for the content in that folder to be listed the sitemap (AKA the right side menu). No index file ⇒ no sitemap listing for that folder.
All keyboard-xxx and lang-xxx repositories (except private ones) have their
own online site as subsites of giellalt.github.io.
There are separate pages for keyboards and
language models with links directly to all subsite repos.
To update the online documentation, just save Markdown files in the docs/
folder of the repository, commit and push,
and the updated documentation will be online within a minute.
In-source documentation in lang-XXX repositories
All source code in the lang-XXX repositories containing
documentation markup will
be automatically parsed and the documentation extracted. The extracted
documentation will be automatically added to the site on the next svn commit/git push.
Source file types being scanned for documentation comments are:
- lexc
- twolc
- cg3
- pmscript
- xfscript
The top directories src/ and tools/, including all subdirs, are scanned.
Generated files of the above types are not scanned.
Additional features
Beyond what is included in GFM, the GiellaLT documentation infrastructure also supports Mermaid, emojis and maps using GeoJSON or TopoJSON code fragments, just as GitHub does in their Markdown rendering.
Mermaid
pie title Formal languages used in GiellaLT
"LexC" : 3129
"Xfst regex" : 2374
"Xfst script" : 856
"TwolC" : 125
Based on counts of all files of the various types in all repositories in the GiellaLT infra.
Dark mode
The site supports dark mode, see the bottom of the page (left side in large browser windows) for colour theme switch buttons.
Slidev support
There is built-in support for Slidev presentations. See Slidev-presentations for more details.
Basic purpose:
- simple slides from Markdown documents
- present core parts of the infra as slide shows
Nothing written as slides yet, but the supporting infra is there.