Skip to content

Commit 63e98d9

Browse files
committed
Tutorial part 2
1 parent 9f49277 commit 63e98d9

File tree

5 files changed

+719
-3
lines changed

5 files changed

+719
-3
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
"DHLINE",
128128
"DISPLAYSWITCH",
129129
"dlopen",
130+
"docstrings",
130131
"documentclass",
131132
"Doryen",
132133
"DPAD",
@@ -136,6 +137,7 @@
136137
"DTEEW",
137138
"dtype",
138139
"dtypes",
140+
"dunder",
139141
"DVLINE",
140142
"elif",
141143
"endianness",
@@ -148,6 +150,7 @@
148150
"ffade",
149151
"fgcolor",
150152
"fheight",
153+
"Flecs",
151154
"flto",
152155
"fmean",
153156
"fontx",
@@ -332,6 +335,7 @@
332335
"printn",
333336
"PRINTSCREEN",
334337
"propname",
338+
"pushdown",
335339
"pycall",
336340
"pycparser",
337341
"pyinstaller",
@@ -346,6 +350,7 @@
346350
"quickstart",
347351
"QUOTEDBL",
348352
"RALT",
353+
"randint",
349354
"randomizer",
350355
"rbutton",
351356
"RCTRL",

docs/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
# List of patterns, relative to source directory, that match files and
104104
# directories to ignore when looking for source files.
105105
# This patterns also effect to html_static_path and html_extra_path
106-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "/epilog.rst"]
106+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "epilog.rst", "prolog.rst"]
107107

108108
# The reST default role (used for this markup: `text`) to use for all
109109
# documents.
@@ -378,13 +378,14 @@
378378
napoleon_use_param = True
379379
napoleon_use_rtype = True
380380

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

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

390391
os.environ["READTHEDOCS"] = "True"

docs/epilog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
.. _tcod-ecs: https://github.com/HexDecimal/python-tcod-ecs
3+
.. _Flecs: https://github.com/SanderMertens/flecs

docs/tutorial/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ Tutorial
33

44
.. include:: notice.rst
55

6+
.. note::
7+
This a Python tutorial reliant on a Modern ECS implementation.
8+
In this case `tcod-ecs`_ will be used.
9+
Most other Python ECS libraries do not support entity relationships and arbitrary tags required by this tutorial.
10+
If you wish to use this tutorial with another language you may need a Modern ECS implementation on par with `Flecs`_.
11+
612
.. toctree::
713
:maxdepth: 1
814
:glob:

0 commit comments

Comments
 (0)