This repository contains the user documentation for the Lambda Feedback platform. The documentation is built using MkDocs and the Material theme and is hosted on GitHub Pages.
This section guides you through the installation of the necessary dependencies and how to serve and build the documentation locally.
- Python 3.11 or higher
- Poetry
To serve or build the documentation locally, you have to install its dependencies. The documentation mainly builds on the following libraries:
To install the dependencies using Poetry, run the following command:
poetry installTo serve the documentation locally, run the following command:
poetry run mkdocs serveThis will start a local server at http://127.0.0.1:8000/user-documentation/ where you can view the documentation.
Note
You can ignore warnings or errors related to the EvalDocsLoader plugin, as long as you do not want to load external documentation pages for evaluation functions.
To build the documentation, run the following command:
poetry run mkdocs buildThis will build the documentation in the site directory.
To fetch the documentation for evaluation functions, the EvalDocsLoader plugin is used. The plugin is already installed as a dependency in the pyproject.toml file.
When the necessary environment variables are set, the plugin will fetch the documentation for available evaluation functions automatically, and add them to the documentation.
The following environment variables are required:
API_KEY: The API key for the lambda feedback API.GITHUB_TOKEN: A GitHub Private Access Token (PAT) with thereposcope to fetch the documentation from evaluation function repositories.
To set the environment variables, you can use the export command in your terminal:
export API_KEY="<your-api-key>"
export GITHUB_TOKEN="<your-github-access-token>"After setting the environment variables, you can serve or build the documentation as described above.
The documentation is deployed to GitHub Pages using a GitHub Actions workflow. Deployment is done automatically after every commit to the main branch, as well as at midnight every day, UTC.
Some links you might find useful when authoring documentation content: