Skip to content

Commit

Permalink
Restructure toctrees and some formatting fixes (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombie-einstein authored Mar 28, 2024
1 parent 54a6a48 commit 978f12c
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 29 deletions.
8 changes: 6 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@

html_theme_options = {
"repo_url": "https://github.com/zombie-einstein/bourse",
"icon": {"repo": "fontawesome/brands/github", "logo": "material/chart-line"},
"icon": {
"repo": "fontawesome/brands/github",
"logo": "material/chart-line",
},
"palette": {
"scheme": "slate",
"primary": "black",
},
"toc_title_is_page_title": True,
"toc_title": "Contents",
# "toc_title_is_page_title": True,
}

python_apigen_order_tiebreaker = "alphabetical"
Expand Down
15 changes: 10 additions & 5 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@
Bourse
*******

A Rust market simulator with
Python interface designed for high
performance agent based models and
reinforcement learning.
A Rust limit order-book and market simulator with
a Python interface. Designed for high performance
agent based models and reinforcement learning.

.. toctree::
:maxdepth: 2
:caption: Contents
:hidden:

Index<self>

.. toctree::
:maxdepth: 2
:includehidden:

pages/getting_started
pages/usage
Expand Down
28 changes: 17 additions & 11 deletions docs/source/pages/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@
API Reference
*************

.. python-apigen-group:: data_processing

.. python-apigen-group:: step_sim
Order Book
==========

.. python-apigen-group:: base_agent_class
.. python-apigen-group:: order_book_class
.. python-apigen-group:: public-members

.. python-apigen-group:: base_numpy_agent_class
Discrete Event Simulation
=========================

.. python-apigen-group:: step_sim
.. python-apigen-group:: step_env_class
.. python-apigen-group:: base_agent_class
.. python-apigen-group:: random_agent_class

.. python-apigen-group:: n_random_agent_class

.. python-apigen-group:: order_book_class

.. python-apigen-group:: step_env_class
Discrete Event Numpy API
========================

.. python-apigen-group:: step_env_numpy_class
.. python-apigen-group:: base_numpy_agent_class
.. python-apigen-group:: n_random_agent_class

.. python-apigen-group:: public-members
Utils
=====

.. python-apigen-group:: data_processing
4 changes: 2 additions & 2 deletions docs/source/pages/numpy_discrete_event_usage.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Numpy Discrete Event Simulation Environment
-------------------------------------------
Numpy Discrete Event Environment
--------------------------------

This environment allows market state and market instructions
to be returned/submitted as Numpy arrays. This has the
Expand Down
23 changes: 15 additions & 8 deletions docs/source/pages/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,25 @@ Bourse allows Python users/programs to interact
with three core pieces of functionality
from the Rust package:

- An orderbook that allow orders to be directly
placed and modified.
- A discrete event simulation environment that
- :doc:`order_book_usage`

An orderbook that allow orders to be directly
placed and modified, and tracks trade and order data.

- :doc:`discrete_event_usage`

A discrete event simulation environment that
allows Python agents to submit trade
instructions with functionality to update
instructions, with functionality to update
simulation state and track simulation data.
- A discrete event simulation environment can receive
instructions and returns data in the format of
Numpy arrays.

- :doc:`numpy_discrete_event_usage`

A discrete event simulation environment can receive
instructions and returns data as Numpy arrays.

.. toctree::
:maxdepth: 2
:hidden:

order_book_usage
discrete_event_usage
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dependencies = [
"maturin >= 1.2.3",
"patchelf >= 0.17.2.1; platform_system != 'Darwin'",
"sphinx >= 7.2.6",
"sphinx-immaterial >= 0.11.10",
"sphinx-immaterial >= 0.11.11",
]

[tool.hatch.envs.docs.scripts]
Expand Down

0 comments on commit 978f12c

Please sign in to comment.