Documentation development¶
The Trino Gateway documentation uses markdown source files, MkDocs with the material theme for rendering, and GitHub pages for hosting.
The following sections contain minimal helpful tips to get started. More details are available in the following resources:
Writing documentation¶
Content is written as markdown files in the docs
folder.
Writing style guidelines are identical to the Trino documentation and website.
Refer to the reference docs from Material for MkDocs for syntax information.
Running site locally¶
Install python
and pipx
, for example with brew.
Install mkdocs-material
and all required dependencies in the mkdocs-material
virtual environment for Python:
Add plugins to the virtual environment:
Start the local site in the project root folder:
Access the site in your browser at http://127.0.0.1:8000/
Edit the site sources as desired and refresh pages as needed. Some changes require a restart of mkdocs.
Alternatively, use a container to run mkdocs and avoid the need to install mkdocs-material and all dependencies locally.
Configuring MKDocs¶
MkDocs is configured in mkdocs.yml
. Refer to the source, the
Material for MkDocs website
and the MkDocs website for more information.