Skip to content

ecosoft-odoo/ecosoft-document-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECO MKDocs Document Template

What is MKDocs?

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

Installation

  1. Install mkdocs and theme plugin
    $ pip3 install mkdocs
    $ pip3 install mkdocs-material
    
  2. Clone this repo for your project documentation
    $ git clone https://github.com/ecosoft-odoo/ecosoft-document-template.git
    

Using this template

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 in docs folder, this is where you add content.
  • To build all .md files into a site folder, run command, > mkdocs build. Note that PDF file will be created into site/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 generate site folder into branch gh-pages.
  • If you enable Github Pages on branch gh-pages, you will get the document site at https://<my_account>.github.io/<my_project>

Remarks:

This document template can be viewed here -> https://ecosoft-odoo.github.io/ecosoft-document-template/15.0

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •