Skip to content

Commit

Permalink
Documentation skeleton for release
Browse files Browse the repository at this point in the history
  • Loading branch information
hsahovic committed Oct 31, 2019
1 parent dced47b commit cc4dc89
Show file tree
Hide file tree
Showing 14 changed files with 235 additions and 67 deletions.
10 changes: 10 additions & 0 deletions docs/source/battle.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _battle:

The battle object
=================


.. automodule:: poke_env.environment.battle
:members:
:undoc-members:
:show-inheritance:
8 changes: 5 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# -- Project information -----------------------------------------------------

project = "Pokemon Showdown Python environment"
project = "Poke-env"
copyright = "2019, Haris Sahovic"
author = "Haris Sahovic"

Expand All @@ -45,9 +45,11 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "alabaster"
html_theme = "sphinx_rtd_theme"

# 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,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
html_static_path = []

master_doc = "index"
4 changes: 4 additions & 0 deletions docs/source/cross_evaluate_random_players.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.. _cross_evaluate_random_players:

Cross evaluating random players
===============================
10 changes: 10 additions & 0 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _examples:

Examples
========

.. toctree::
:maxdepth: 4

cross_evaluate_random_players
max_damage_player
70 changes: 59 additions & 11 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,68 @@
.. Pokemon Showdown Python environment documentation master file, created by
.. Poke-env documentation master file, created by
sphinx-quickstart on Sat Aug 10 13:11:15 2019.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Pokemon Showdown Python environment's documentation!
===============================================================
Poke-env: A python interface for training Reinforcement Learning pokemon bots
#############################################################################

This project aims at providing a Python environment for interacting in `pokemon showdown <https://pokemonshowdown.com/>`__ battles, with reinforcement learning in mind. Welcome to its documentation!

Getting started
***************

Installing poke-env
===================

Installing a showdown server
============================

Creating a first agent
======================

Configuring showdown players
****************************

Users without authentication
============================

Users with authentication
=========================

This project requires python >= 3.6 and a `Pokemon Showdown <https://github.com/Zarel/Pokemon-Showdown>`__ server.

Examples
********

.. toctree::
:maxdepth: 2
:caption: Contents:
:maxdepth: 5

examples

Documentation
*************

.. toctree::
:maxdepth: 5

poke-env

Other
*****

Acknowledgements
================

This project is a follow-up of a group project from an artifical intelligence class at `Ecole Polytechnique <https://www.polytechnique.edu/>`__.

You can find the original repository `here <https://github.com/hsahovic/inf581-project>`__. It is partially inspired by the `showdown-battle-bot project <https://github.com/Synedh/showdown-battle-bot>`__. Of course, none of these would have been possible without `Pokemon Showdown <https://github.com/Zarel/Pokemon-Showdown>`__.

Data
====

* :ref:`modules`
Data files are adapted version of the :samp:`js` data files of `Pokemon Showdown <https://github.com/Zarel/Pokemon-Showdown>`__.

Indices and tables
==================
License
=======

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
This project and its documentation are released under the `MIT License <https://opensource.org/licenses/MIT>`__.
4 changes: 4 additions & 0 deletions docs/source/max_damage_player.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.. _max_damage_player:

Creating a simple max damage player
===================================
9 changes: 0 additions & 9 deletions docs/source/modules.rst

This file was deleted.

9 changes: 9 additions & 0 deletions docs/source/move.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. _move:

The move object
===============

.. automodule:: poke_env.environment.move
:members:
:undoc-members:
:show-inheritance:
49 changes: 49 additions & 0 deletions docs/source/other_environment.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.. _other_environment:

Other environment objects
=========================

.. automodule:: poke_env.environment.effect
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.environment.field
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.environment.move_category
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.environment.pokemon_gender
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.environment.pokemon_type
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.environment.side_condition
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.environment.status
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.environment.weather
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.environment.z_crystal
:members:
:undoc-members:
:show-inheritance:
24 changes: 24 additions & 0 deletions docs/source/player.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.. _player:

The player object and related subclasses
========================================

.. automodule:: poke_env.player.player
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.player.random_player
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.player.trainable_player
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.player.player_network_interface
:members:
:undoc-members:
:show-inheritance:
22 changes: 22 additions & 0 deletions docs/source/poke-env.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. _poke_env:

Poke-env
========

.. toctree::
:maxdepth: 4

battle
move
other_environment
player
pokemon
top_level_modules

Module contents
---------------

.. automodule:: poke_env
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/pokemon.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _pokemon:

The pokemon object
==================


.. automodule:: poke_env.environment.pokemon
:members:
:undoc-members:
:show-inheritance:
44 changes: 0 additions & 44 deletions docs/source/pokemon_showdown_env.rst

This file was deleted.

29 changes: 29 additions & 0 deletions docs/source/top_level_modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.. _top_level_modules:

Top level modules
=================

.. automodule:: poke_env.utils
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.player_configuration
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.server_configuration
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.data
:members:
:undoc-members:
:show-inheritance:

.. automodule:: poke_env.exceptions
:members:
:undoc-members:
:show-inheritance:

0 comments on commit cc4dc89

Please sign in to comment.