Skip to content

Commit

Permalink
Fix some docs stuff
Browse files Browse the repository at this point in the history
Signed-off-by: jparisu <[email protected]>
  • Loading branch information
jparisu committed Feb 1, 2024
1 parent d78ecbd commit 2562f04
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
- name: Check spelling
run: |
sphinx-build -W --keep-going -b spelling docs/ docs/_build/spelling docs/.spelling/spelling_wordlist.txt
sphinx-build -W --keep-going -b spelling docs/ docs/_build/spelling docs/spelling/spelling_wordlist.txt
21 changes: 15 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@

.. include:: src/titlepage.rst
.. include:: /rst/titlepage.rst

.. toctree::
:caption: Project
:caption: Getting Started
:maxdepth: 2
:hidden:

/src/installation
/src/tutorial
/src/tlnr
/rst/installation
/rst/tutorial
/rst/tldr

.. toctree::
:caption: Elements
:maxdepth: 2
:hidden:

/src/elements/elements
/rst/elements/terrain
/rst/elements/measure
/rst/elements/generation

.. toctree::
:caption: Appendixes
:maxdepth: 2
:hidden:

/rst/appendixes/glossary
25 changes: 25 additions & 0 deletions docs/rst/appendixex/glossary.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

.. _glossary:

########
Glossary
########

.. glossary::

Terrain
2D matrix of integers representing the height of a map at each cell.

Coordinate
A tuple of two integers ``(x,y)`` representing a cell in the terrain.

Path
A list of coordinates in the terrain.
To be correct, it must start in the origin, end in the destination, and each step must be adjacent to the previous one.

Cost
An integer number related with a path.
It represents a measure of the cost of the path in steps and climbs.

Path Finding Algorithm
A function that receives a terrain and returns a valid path.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _installation:
.. _getting_started_installation:

############
Installation
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tldr.rst → docs/rst/getting_started/tldr.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _tldr:
.. _getting_started__tldr:

#####
TL;DR
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _tutorial:
.. _getting_started__tutorial:

########
Tutorial
Expand Down
5 changes: 2 additions & 3 deletions docs/src/titlepage.rst → docs/rst/titlepage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@ Further reading

To start using the library, please check the following links:

- :ref:`installation`
- :ref:`tutorial`
- :ref:`elements`
- :ref:`getting_started_installation`
- :ref:`getting_started_tutorial`
File renamed without changes.
14 changes: 0 additions & 14 deletions docs/src/elements/elements.rst

This file was deleted.

0 comments on commit 2562f04

Please sign in to comment.