Skip to content

Files

Latest commit

2411b22 · Dec 27, 2024

History

History
This branch is 1415 commits behind ag2ai/ag2:main.

website

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 27, 2024
Dec 27, 2024
Dec 12, 2024
Dec 23, 2024
Dec 20, 2024
Dec 24, 2024
Dec 1, 2024
Dec 16, 2024
Dec 23, 2024
Aug 28, 2023
Feb 29, 2024
Dec 23, 2024
Dec 16, 2024
Dec 27, 2024
Dec 27, 2024
Dec 22, 2024
Dec 12, 2024
Dec 23, 2024
Dec 27, 2024
Feb 20, 2024
Jun 10, 2024
Dec 11, 2024

Website

This website is built using Mintlify, a modern website generator.

How to get a notebook rendered on the website

See here for instructions on how to get a notebook in the notebook directory rendered on the website.

Build documentation locally

  1. To build and test documentation locally, first install Node.js. For example,
nvm install --lts

Then, install the required packages by running the following commands:

pip install pydoc-markdown pyyaml termcolor nbclient
  1. You also need to install quarto. Please click on the Pre-release tab from this website to download the latest version of quarto and install it. Ensure that the quarto version is 1.5.23 or higher.

  2. Finally, run the following commands to build and serve the documentation:

cd website
python ./process_api_reference.py
python ./process_notebooks.py render
npm install
npm run mintlify:dev

The last command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build with Docker

To build and test documentation within a docker container, run the following commands from your project root directory:

docker build -f .devcontainer/dev/Dockerfile -t ag2ai_dev_img https://github.com/ag2ai/ag2.git#main

Then start the container like so, this will log you in and ensure that Docker port 3000 is mapped to port 8081 on your local machine:

docker run -it -p 8081:3000 -v $(pwd):/home/autogen/ag2 ag2ai_dev_img bash

Once at the CLI in Docker run the following commands:

cd website
python ./process_api_reference.py
python ./process_notebooks.py render
npm install
npm run mintlify:dev

Once done you should be able to access the documentation at http://127.0.0.1:8081