| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This guide explains how to work with the TM1py documentation, including the tools and processes used, how to test changes locally, and how the deployment workflow operates.
The TM1py documentation is built using the following tools:
Clone the Repository:
git clone https://github.com/cubewise-code/tm1py.git
cd tm1py
Install Development Dependencies:
Install the required dependencies for working with the documentation:
pip install -e .[dev]
pip install -r docs/requirements-docs.txtEdit the Documentation:
Test Locally:
You can preview the documentation locally using MkDocs:
mkdocs serveOpen your browser and navigate to http://127.0.0.1:8000/ to view the documentation.
The documentation is automatically deployed to the gh-pages branch using GitHub Actions. The deployment process is triggered in the following scenarios:
Push to master:
When changes are pushed to the master branch, the documentation is deployed as the latest version.
Tagging a Commit:
When a commit is tagged with x.x or x.x.x (e.g., 2.0 or 2.0.1), the documentation is deployed as a versioned release.
Manual Trigger:
The workflow can also be triggered manually via the GitHub Actions interface.
Custom Domain:
Testing Changes:
Always test your changes locally using mkdocs serve before pushing to master.
Here’s an example of how you might update the documentation:
Edit getting-started.md to add new instructions.
Test the changes locally:
mkdocs serveCommit and push the changes:
Create a merge request
After merge to master:The GitHub Actions workflow will automatically deploy the updated documentation.
| Back | FazBrowse Home | New Git URL |