Welcome to the Regolo AI Docs for our project! This repository is structured to utilize MkDocs with the MkDocs Material theme for generating and deploying a beautiful static documentation site.
- Getting Started
- Installation
- Creating a Virtual Environment
- Building the Documentation
- Deploying the Documentation
- Adding New Document Pages
- Adding Images and Media
To work with this repository, you'll need to download or clone it from GitHub. Once you have it on your local machine, navigate to the regolo-doc
directory which contains the docs
folder. This is where you'll run all MkDocs commands.
To set up your environment and install the necessary dependencies, please follow these steps:
-
Clone the Repository:
git clone git@github.com:regolo-ai/regoloai-doc.git
-
Navigate to the
regolo-doc
Directory:cd regoloai-doc/regolo-doc
-
Install Requirements:
It's recommended to use a virtual environment (as described below) before installing the requirements.
pip install -r requirements.txt
This will install MkDocs and the MkDocs Material theme.
To ensure a clean and isolated environment for your documentation work, it's best to use Python's virtual environments. Here’s how you can create one:
-
Create a Virtual Environment:
python -m venv env
-
Activate the Virtual Environment:
-
On Windows:
.\env\Scripts\activate
-
On macOS and Linux:
source env/bin/activate
-
-
Once activated, you can proceed with installing the requirements as mentioned above.
With the virtual environment activated and dependencies installed, you can now build the documentation:
-
Serve the Documentation Locally:
mkdocs serve
This command will launch a local server at
http://127.0.0.1:8000
where you can view the documentation live. Any changes you make will automatically refresh.
To deploy the documentation site to GitHub Pages, use the following command:
mkdocs gh-deploy
This command builds the site and pushes it to the gh-pages
branch of your repository, making it accessible via GitHub Pages.
To add new pages to the documentation:
-
Create a Markdown File:
Add a new Markdown (
.md
) file inside thedocs
folder. For example,new-page.md
. -
Reference the New Page in
mkdocs.yml
:Open the
mkdocs.yml
file and add an entry under thenav
section to reference your new page:nav: - Home: index.md - New Page: new-page.md
Ensure the indentation is correct and consistent.
To include images and other media files in your documentation:
-
Place Media Files:
Put your images and media in the
img
folder inside thedocs
directory (e.g.,docs/img
). -
Reference Media in Markdown:
Use the following syntax in your Markdown files to reference images:

Replace
your-image-file.png
with the actual file name.
If you have any questions or encounter issues, feel free to reach out via the repository's issue tracker.