Skip to content

Commit

Permalink
Tutorial part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
HexDecimal committed Feb 20, 2024
1 parent 9f49277 commit 63e98d9
Show file tree
Hide file tree
Showing 5 changed files with 719 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Expand Up @@ -127,6 +127,7 @@
"DHLINE",
"DISPLAYSWITCH",
"dlopen",
"docstrings",
"documentclass",
"Doryen",
"DPAD",
Expand All @@ -136,6 +137,7 @@
"DTEEW",
"dtype",
"dtypes",
"dunder",
"DVLINE",
"elif",
"endianness",
Expand All @@ -148,6 +150,7 @@
"ffade",
"fgcolor",
"fheight",
"Flecs",
"flto",
"fmean",
"fontx",
Expand Down Expand Up @@ -332,6 +335,7 @@
"printn",
"PRINTSCREEN",
"propname",
"pushdown",
"pycall",
"pycparser",
"pyinstaller",
Expand All @@ -346,6 +350,7 @@
"quickstart",
"QUOTEDBL",
"RALT",
"randint",
"randomizer",
"rbutton",
"RCTRL",
Expand Down
7 changes: 4 additions & 3 deletions docs/conf.py
Expand Up @@ -103,7 +103,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "/epilog.rst"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "epilog.rst", "prolog.rst"]

# The reST default role (used for this markup: `text`) to use for all
# documents.
Expand Down Expand Up @@ -378,13 +378,14 @@
napoleon_use_param = True
napoleon_use_rtype = True

rst_prolog = ".. include:: /prolog.rst" # Added to the beginning of every source file.
rst_epilog = ".. include:: /epilog.rst" # Added to the end of every source file.
rst_prolog = Path("prolog.rst").read_text(encoding="utf-8") # Added to the beginning of every source file.
rst_epilog = Path("epilog.rst").read_text(encoding="utf-8") # Added to the end of every source file.

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"tcod-ecs": ("https://python-tcod-ecs.readthedocs.io/en/latest/", None),
}

os.environ["READTHEDOCS"] = "True"
3 changes: 3 additions & 0 deletions docs/epilog.rst
@@ -0,0 +1,3 @@

.. _tcod-ecs: https://github.com/HexDecimal/python-tcod-ecs
.. _Flecs: https://github.com/SanderMertens/flecs
6 changes: 6 additions & 0 deletions docs/tutorial/index.rst
Expand Up @@ -3,6 +3,12 @@ Tutorial

.. include:: notice.rst

.. note::
This a Python tutorial reliant on a Modern ECS implementation.
In this case `tcod-ecs`_ will be used.
Most other Python ECS libraries do not support entity relationships and arbitrary tags required by this tutorial.
If you wish to use this tutorial with another language you may need a Modern ECS implementation on par with `Flecs`_.

.. toctree::
:maxdepth: 1
:glob:
Expand Down

0 comments on commit 63e98d9

Please sign in to comment.