Skip to content

Commit

Permalink
Change sorting_mode argument in docsgame, cleanup documentation forma…
Browse files Browse the repository at this point in the history
…tting
  • Loading branch information
jsfehler committed Dec 8, 2024
1 parent 4a6a7bb commit ce19fe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/user_guide/04-encyclopaedia-features/18-sorting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Change Sorting Mode
An Encyclopaedia has the `sort()` method and `Sort()` Action available.

.. code-block:: python
about_gods = Encyclopaedia()
about_gods.sort(SortMode.SUBJECT)
Expand Down
2 changes: 1 addition & 1 deletion docsgame_source/game/html_parser/build_entries.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ init 1 python:
enc_enc = Encyclopaedia(
name="Ren'Py Encyclopaedia Documentation",
entry_screen='docs_entry',
sorting_mode=3,
sorting_mode=SortMode.SUBJECT,
)

html_files = get_file_paths('docs/user_guide')
Expand Down

0 comments on commit ce19fe5

Please sign in to comment.