Giter VIP home page Giter VIP logo

gym-docs's Introduction

Gym-docs

This repo contains the NEW website for Gym. This site is currently in Beta and we are in the process of adding/editing information.

The documentation uses Sphinx. However, the documentation is written in regular md, NOT rst.

If you are modifying a non-environment page or an atari environment page, please PR this repo. Otherwise, follow the steps below:

Instructions for modifying environment pages

Editing an environment page

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 docs/scripts/gen_mds.py in this repo. This will automatically generate a md documentation file for the environment.

Adding a new environment

Atari env

For Atari envs, add a md file into pages/environments/atari then complete the other steps.

Non-Atari env

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 docs/scripts/gen_mds.py. This will automatically generate an md page for the environment. Then complete the other steps.

Other steps

  • Add the corresponding gif into the docs/source/_static/videos/{ENV_TYPE} folder, where ENV_TYPE is the category of your new environment (e.g. mujoco). Follow snake_case naming convention. Alternatively, run docs/scripts/gen_gifs.py.
  • Edit docs/source/environments/{ENV_TYPE}/index.md, and add the name of the file corresponding to your new environment to the toctree.

Build the Documentation

Install the required packages and Gym (or your fork):

pip install -r requirements.txt
pip install gym

To build the documentation once:

cd docs
make dirhtml

To rebuild the documentation automatically everytime a change is made:

cd docs
sphinx-autobuild -b dirhtml ./source build/html

gym-docs's People

Contributors

trigaten avatar markus28 avatar mgoulao avatar rushivarora avatar jkterry1 avatar qiyaowei avatar kkahadze avatar alberto-ingenito avatar carlosluis avatar kir0ul avatar arjun-kg avatar pseudo-rnd-thoughts avatar balisujohn avatar gfade avatar younik avatar dsctt avatar cool-rr avatar miffyli avatar chrisyeh96 avatar felixdivo avatar selimamrouni avatar dtch1997 avatar visuallization avatar r-jy avatar wang4758 avatar theeimer avatar sushant1212 avatar sinclairgurny avatar lucasalegre avatar gianlucadecola avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.