Documentation for LeetTools. See at https://leettools-dev.github.io/
- Switch to the branch
leettools-doc-workshop. - Edit documents under
docs/. You can modify configurations inmkdocs.yml. Usemkdocs serveto preview changes. - Run
mkdocs buildto generate the site (this will create all the static HTML files in thesite/directory). - Commit and push changes to the
leettools-doc-workshopbranch. - Run
python tool-copy_to_publish.py. This script will switch to theleettools-doc-publishbranch and copy all contents from/siteto the root directory ofleettools-doc-publish. - Commit and push changes to the
leettools-doc-publishbranch. The website at https://leettools-dev.github.io/ will be automatically updated.
- Use conda to create a Python (>= 3.8) environment.
- Run
pip install mkdocs. - Run
mkdocs new .to initialize a new MkDocs project.
- Edit
mkdocs.ymlto configure your project. - Add documents into the
docs/directory.
- Run
mkdocs serveto start a local server. - Check the site at http://127.0.0.1:8000.
- Use
mkdocs buildto generate the site in thesite/directory. - Push all files under
site/into a new branch dedicated to publishing. - Deploy the pages on GitHub using this publish branch.
- Main: Contains the main README and other essential project files.
- leettools-doc-workshop: Utilizes the MkDocs framework to build the static site.
- leettools-doc-publish: This branch is used by GitHub Pages to deploy the documentation site.