Skip to content

Commit ce19fe5

Browse files
committed
Change sorting_mode argument in docsgame, cleanup documentation formatting
1 parent 4a6a7bb commit ce19fe5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/user_guide/04-encyclopaedia-features/18-sorting.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Change Sorting Mode
3232
An Encyclopaedia has the `sort()` method and `Sort()` Action available.
3333

3434
.. code-block:: python
35+
3536
about_gods = Encyclopaedia()
3637
3738
about_gods.sort(SortMode.SUBJECT)

docsgame_source/game/html_parser/build_entries.rpy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ init 1 python:
55
enc_enc = Encyclopaedia(
66
name="Ren'Py Encyclopaedia Documentation",
77
entry_screen='docs_entry',
8-
sorting_mode=3,
8+
sorting_mode=SortMode.SUBJECT,
99
)
1010

1111
html_files = get_file_paths('docs/user_guide')

0 commit comments

Comments
 (0)