This repo contains the NEW website for Gym. This site is currently in Beta and we are in the process of adding/editing information.
Please see instructions below on how to contribute.
If you are modifying a non-environment page, please PR this repo. You may want to run _scripts/gen_menus.py
if you are adding a new subheader to a page. Otherwise, follow the steps below:
If you are editing an Atari environment, directly edit the md file in this repository.
Otherwise, fork Gym and edit the docstring in the environment's Python file. Then, pip install your Gym fork and run _scripts/gen_mds.py
in this repo. This will automatically generate a md documentation file for the environment.
For Atari envs, add a md file into pages/environments/atari
then complete the other steps.
Ensure the environment is in Gym (or your fork). Ensure that the environment's Python file has a properly formatted markdown docstring. Pip install gym (or your fork) then run _scripts/gen_mds.py
. This will automatically generate an md page for the environment. Then complete the other steps.
- Add the corresponding gif into the
videos/
folder of the subfolder. Follow snake_case naming convention. Alternatively, run_scripts/gen_gifs.py
. - Edit
_data/pages
and add your new environment. Alternatively,run _scripts/gen_menus
and replace the content in_data/pages
within the #AUTOGENERATED comments with what is printed out.