File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,35 @@ $ sudo apt-get install python3-graphviz ruby-asciidoctor-pdf
108108..
109109```
110110
111+ ### Documentation
112+
113+ The documentation is written in Markdown, with GitHub extensions, and
114+ published using [ MkDocs, material theme] [ 11 ] . This means some features
115+ require MkDocs * hinting* which may not render fully when previewing on
116+ GitHub -- this is OK.
117+
118+ MkDocs is packaged and available to install via ` apt ` , but not all of
119+ the plugins and extensions we rely on are available, so instead we do
120+ recommend using ` pipx ` to install the necessary tooling:
121+
122+ ``` bash
123+ $ sudo apt install pipx
124+ $ pipx install mkdocs
125+ $ pipx inject mkdocs mkdocs-material pymdown-extensions mkdocs-callouts mike mkdocs-to-pdf
126+ ```
127+
128+ The last two packages, ` mike ` and ` mkdocs-to-pdf ` , are used for online
129+ versioning and PDF generation by GitHub Actions, but since they are in
130+ the ` mkdocs.yml ` file, everyone who wants to preview the documentation
131+ have to install all the tooling.
132+
133+ Preview with:
134+
135+ ```
136+ $ cd ~/src/infix/
137+ $ mkdocs serve
138+ ```
139+
111140
112141Development
113142-----------
@@ -469,3 +498,4 @@ $ git submodule update --init
469498[ 8 ] : https://github.com/kernelkit/infix/blob/main/utils/gh-dl-artifact.sh
470499[ 9 ] : https://github.com/kernelkit/buildroot
471500[ 10 ] : https://github.com/kernelkit/linux
501+ [ 11 ] : https://squidfunk.github.io/mkdocs-material/
You can’t perform that action at this time.
0 commit comments