===================================
This example shows a basic MkDocs project with Read the Docs. This project is using mkdocs with readthedocs
project template.
Some useful links are given below to lear and contribute in the project.
📚 docs/
A basic MkDocs project lives in docs/, it was generated using MkDocs defaults. All the *.md make up sections in the documentation.
⚙️ .readthedocs.yaml
Read the Docs Build configuration is stored in .readthedocs.yaml.
⚙️ mkdocs.yml
A basic MkDocs configuration is stored here, including a few extensions for MkDocs and Markdown. Add your own configurations here, such as extensions and themes. Remember that many extensions and themes require additional Python packages to be installed.
📍 docs/requirements.txt and docs/requirements.in
Python dependencies are pinned (uses pip-tools) here. Make sure to add your Python dependencies to requirements.txt or if you choose pip-tools, edit docs/requirements.in and remember to run to run pip-compile docs/requirements.in.
Example Project usage
Poetry is the package manager for pandasai. In order to build documentation, we have to add requirements in
development environment.
This project has a standard MkDocs layout which is built by Read the Docs almost the same way that you would build it locally (on your own laptop!).
You can build and view this documentation project locally - we recommend that you activate a Poetry environment
and dependency management tool.
# Install required Python dependencies (MkDocs etc.)
poetry insall --with docs
# Run the mkdocs development server
mkdocs serve
Project Docs Structure
If you are new to Read the Docs, you may want to refer to the Read the Docs User documentation.
Below is the rundown of documentation structure for pandasai, you need to know:
- place your
docs/folder alongside your Python project. - copy
mkdocs.yml,.readthedocs.yamland thedocs/folder into your project root. docs/APIcontains the API documentation created usingdocstring. For any new module, add the links here- Project is using standard Google Docstring Style.
- Rebuild the documenation locally to see that it works.
- Documentation are hosted on Read the Docs tutorial
Define the release version in
mkdocs.ymlfile.
Read the Docs tutorial
To get started with Read the Docs, you may also refer to the Read the Docs tutorial. I
With every release, build the documentation manually.