mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 06:12:06 +01:00
Add documentation about documentation to documentation readme
heh
This commit is contained in:
parent
a131fe32aa
commit
7169b369b3
2 changed files with 14 additions and 7 deletions
|
@ -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
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue