This repository contains the source files used to generate the Lagrange documentation website. The generated documentation is available at the following URL:
https://opensource.adobe.com/lagrange-docs/
The documentation is rebuilt by GitHub Actions every time a new commit is pushed to docs branch.
Markdown files, except those generated automatically by Doxygen, can be edited directly through the GitHub website or locally after cloning the repository.
If you want to preview the resulting html page, follow the steps below on how to build the documentation locally.
The documentation uses the mkdocs-material theme. The theme comes with some extensions, e.g. Admonition. Use Admonition for things like notes, warnings, caveats, examples, etc.
For now images and other media are stored in subfolders in docs/
The gh-pages branch is reserved for the static html pages. It is advised to only clone the docs
branch (the default branch), rather than doing a full clone of the repository:
git clone git@github.com:adobe/lagrange-docs.git --single-branchInstall pixi on your machine to manage the Python environment for this project. Once installed, you have two options:
- Run
pixi shellto enter a shell with the virtual environment created by pixi. - Prefix Python commands with
pixi run ...to execute a given command in the project's virtual environment.
To avoid any error, we prefix commands in our guide with pixi run .... But feel free to use
whichever method you prefer.
pixi run generate.py <PATH_TO_LAGRANGE_ROOT>
Note: This will populate the following:
docs/ref/: html files generated by Doxygen
The following will run a local server at 127.0.0.1:8000
pixi run mkdocs serve
Alternatively, use pixi run mkdocs build to generate files into site folder
🚨 For reference only!
Note: This is for reference only, GitHub Actions does this automatically.
pixi run mkdocs gh-deploy -b gh-pages
will push to gh-pages branch automatically, which will update the website.
Contributions are welcomed! Read the Contributing Guide for more information.
The documentation and code snippets on this repository/website are licensed under the CC0 1.0 Universal License. See LICENSE for more information.