Description: Repository to store, contribute and showcase team documenation
Deployed URL: https://pseudo-su.github.io/doctool-template/index.html
This template pulls together various tools to make maintaining and publishing documentation from a single source controlled repository easier.
-
Asciidoc - for templating more info
-
OpenAPI (swagger) - for API documenation more info
-
PlantUML - for diagrams more info
-
MxModel - for draw.io style diagrams examples
-
Pygments - Syntax highlighting supported languages
The main goal of this project is to have as much documenation as possible tracked in a single version control system.
-
Choose a
<project-name>
and clone this repository$ git clone [email protected]:pseudo-su/doctool-template.git <project-name> $ cd <project-name>
-
Find all references to
// BOOTSTRAP: <task>
comments in the project and follow their instructions -
Run
./clean.sh
-
Run
./build.sh
-
Create fresh git repo
$ rm -r .git $ git init $ git add . $ git commit -m 'Bootrap from pseudo-su/doctool-template' # Optional: push to a new/empty git remote $ git remote add origin <your-git-remote-url> $ git push -u origin master
-
Build
# Build the builder $ docker build -t doctool-builder ./builder # Clean docs/ $ ./clean.sh # Build docs/ $ ./build.sh
-
View
$ open docs/index.html
This project looks at all files in the resources/
folder and generates corresponding files in the docs/
folder depending on the filename suffix.
-
*.adoc
generates:-
*.html
-
-
*.openapi.yml
(v3) generates:-
*.openapi.redoc.html
-
Note
|
unable to geneate *.doc.html at the moment for openapi because swagger2markup does not support it (v3)
|
-
*.swagger.yml
(v2) generates:-
*.swagger.redoc.html
-
*.swagger.doc.html
-
-
*.mxgraph.xml
generates:-
*.mxgraph.html
-
Note
|
You can embed the generated mxgraph html using mxgraph::eapi.mxgraph.html[]
|
-
investigate switching to asciidoctor.js [ diagrams’s | pdf’s | source syntax highlighting]
-
Investigate better replacement for
./build-single-mxgraph.sh
that can actually export images -
Publish the docker container instead of storing definition in
./builder/