Add documentation about documentation to documentation readme

heh
This commit is contained in:
Paul Schaub 2022-07-08 17:45:58 +02:00
parent a131fe32aa
commit 7169b369b3
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
2 changed files with 14 additions and 7 deletions

View File

@ -1,16 +1,23 @@
# User Guide for PGPainless
Documentation for PGPainless is built from Markdown using Sphinx and MyST.
A built version of the documentation is available on http://pgpainless.rtfd.io/
## Useful resources
* [Sphix Documentation Generator](https://www.sphinx-doc.org/en/master/)
* [MyST Markdown Syntax](https://myst-parser.readthedocs.io/en/latest/index.html)
## Build the Guide
To build:
```shell
$ make {html|epub|latexpdf}
```
Note: Building requires `mermaid-cli` to be installed in this directory:
Note: Building diagrams from source requires `mermaid-cli` to be installed.
```shell
$ # Move here
$ cd pgpainless/docs
$ npm install @mermaid-js/mermaid-cli
$ npm install -g @mermaid-js/mermaid-cli
```
TODO: This is ugly. Install mermaid-cli globally? Perhaps point to user-installed mermaid-cli in conf.py's mermaid_cmd

View File

@ -15,7 +15,7 @@ release = latest_tag
version = release
myst_substitutions = {
"repo_host" : "codeberg.org", # or 'github.com'
"repo_host" : "codeberg.org",
# "repo_host" : "github.com",
"repo_pgpainless_src" : "codeberg.org/pgpainless/pgpainless/src/branch",
# "repo_pgpainless_src" : "github.com/pgpainless/pgpainless/tree",