-
-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
54 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
environments/**/*.md | ||
environments/**/*.md | ||
environments/**/list.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# PettingZoo docs | ||
|
||
This folder contains the documentation for [PettingZoo](https://github.com/Farama-Foundation/PettingZoo). | ||
|
||
## Instructions for editing content | ||
|
||
Our documentation is written in Markdown (more precisely, MyST - Markedly Structured Text) and built using [Sphinx](https://www.sphinx-doc.org/en/master/). | ||
All content present in the documentation website can be found in this directory except for the environments. | ||
|
||
### Editing an environment page | ||
|
||
Environemnts' documentation can be found at the top of the file python file where the environment is declared, for example, the documentation for the chess environment can be at [/pettingzoo/classic/chess/chess.py](https://github.com/Farama-Foundation/PettingZoo/blob/master/pettingzoo/classic/chess/chess.py) | ||
|
||
To generate the environments pages you need to execute the `_scripts/gen_envs_mds.py` script. | ||
|
||
## Build the Documentation | ||
|
||
Install the required packages and PettingZoo: | ||
|
||
``` | ||
pip install -e . | ||
cd docs/ | ||
pip install -r requirements.txt | ||
``` | ||
|
||
To build the documentation once: | ||
|
||
``` | ||
cd docs | ||
make dirhtml _build | ||
``` | ||
|
||
To rebuild the documentation automatically every time a change is made: | ||
|
||
``` | ||
cd docs | ||
sphinx-autobuild -b dirhtml . _build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.