- This document template is based https://www.mkdocs.org with PDF export extension https://pypi.org/project/mkdocs-with-pdf/
- Based on
.md
format, this can generate a beautiful document website and PDF.
To understand how mkdocs works, following few line of code (in linux) will do.
$ pip3 install mkdocs # Install the package
$ cd ~ # Go to home directory
$ mkdocs new my-doc-project # Initial the document project folder
$ cd my-doc-project # Go to project directory, now a sample index.md is created
$ mkdocs build # OR build the site folder, which can be deployed in a web server
$ mkdocs serve # Start the test server, to see how it looks at http://localhost:8000/
For more detail, please visit https://www.mkdocs.org
- Install mkdocs and theme plugin
$ pip3 install mkdocs $ pip3 install mkdocs-material
- Clone this repo for your project documentation
$ git clone https://github.com/ecosoft-odoo/ecosoft-document-template.git
Use .md
files as sample, it should be easy enough to get started. Just a few notes that,
mkdocs.yml
is the configuration file (enough for Ecosoft). More detailed here, https://www.mkdocs.org/user-guide/configuration/- All
.md
source files will be indocs
folder, this is where you add content. - To build all
.md
files into asite
folder, run command,> mkdocs build
. Note that PDF file will be created intosite/pdf
- To test, run command,
> mkdocs build
and go to http://localhost:8000/
Markdown Cheatsheet:
Note:
- The
site
folder is ignored by.gitignore
- Just push to 15.0 branch, github action in
.github/workflows/build_document_template.yml
will auto generatesite
folder into branchgh-pages
. - If you enable Github Pages on branch
gh-pages
, you will get the document site athttps://<my_account>.github.io/<my_project>
Remarks:
This document template can be viewed here -> https://ecosoft-odoo.github.io/ecosoft-document-template/15.0