This guide will help you get started with contributing to Opik’s documentation.
Before you start, please review our general Contribution Overview and the Contributor License Agreement (CLA).
This guide covers how to contribute to the two main parts of Opik’s documentation: This Documentation Website: Built with Fern and Python SDK Reference Documentation: Built with Sphinx.
Here’s how you can work with either one:
This website (source in apps/opik-documentation/documentation) is where our main guides, tutorials, and conceptual documentation live.
Ensure you have Node.js and npm installed. You can follow the official guide here.
Update content primarily in:
fern/docs/: Main markdown content (like this page)./docs/cookbook: Our collection of cookbooks and examples - Please note that you should not be updating the cookbook markdown files directly as they are generated from the Jupyter Notebook.Refer to the docs.yml file for the overall structure and navigation.
The Python SDK reference docs (source in apps/opik-documentation/python-sdk-docs) are generated from docstrings in the Python codebase using Sphinx.
Ensure you have Python and pip installed. A virtual environment is highly recommended.
Access the local site at http://127.0.0.1:8000. Changes will update in real-time as you modify docstrings in the SDK (sdks/python) and rebuild.
Improvements to the SDK reference usually involve updating the Python docstrings directly in the SDK source files located in the sdks/python directory.