Skip to content

pseudo-su/doctool-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doctool Template

Description: Repository to store, contribute and showcase team documenation

About this template

This template pulls together various tools to make maintaining and publishing documentation from a single source controlled repository easier.

The main goal of this project is to have as much documenation as possible tracked in a single version control system.

Bootstrapping TODO list

  • 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

Quick Start

  1. Build

    # Build the builder
    $ docker build -t doctool-builder ./builder
    # Clean docs/
    $ ./clean.sh
    # Build docs/
    $ ./build.sh
  2. View

    $ open docs/index.html

Generation rules

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[]

Roadmap / TODO list

  • 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/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages