Skip to content

Commit

Permalink
Adds tutorial stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
andyljones committed Jul 5, 2020
1 parent 8810e37 commit 523a36c
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 11 deletions.
7 changes: 7 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#################
API Documentation
#################

.. automodule:: onedee.core
:members:
:undoc-members:
25 changes: 18 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# print(sys.path)
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
print(sys.path)


# -- Project information -----------------------------------------------------
Expand All @@ -32,7 +32,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx_rtd_theme",
'sphinx.ext.autodoc'
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -49,8 +49,19 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"

html_theme = "alabaster"

html_theme_options = {
'description': 'RL at 1m FPS'
}

html_sidebars = {
'**': [
'about.html',
'navigation.html',
'relations.html',
]
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
24 changes: 20 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,26 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to onedee's documentation!
==================================
######
onedee
######

*********
Tutorials
*********
.. toctree::
:maxdepth: 1

tutorials/env-minimal
tutorials/env-single-agent
tutorials/env-competitive
tutorials/train

********
API Docs
********
.. toctree::
:maxdepth: 2
:caption: Contents:
test

api

3 changes: 3 additions & 0 deletions docs/tutorials/env-competitive.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
##################################
Building a Competitive Environment
##################################
3 changes: 3 additions & 0 deletions docs/tutorials/env-minimal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
##############################
Building a Minimal Environment
##############################
3 changes: 3 additions & 0 deletions docs/tutorials/env-single-agent.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
###################################
Building a Single-Agent Environment
###################################
2 changes: 2 additions & 0 deletions docs/tutorials/train.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Training An Agent
#################
1 change: 1 addition & 0 deletions onedee/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def select(x, d):
return x.vals[s:e]

class Core:
"""The core rendering and physics interface"""

def __init__(self, geometries, n_agents=1, res=64, supersample=8, fov=130, fps=10):
self.geometries = geometries
Expand Down

0 comments on commit 523a36c

Please sign in to comment.