Skip to content

Describe how to fix headings which begin with a number#75

Open
ScatteredComet wants to merge 3 commits intogodotengine:mainfrom
ScatteredComet:section-headers
Open

Describe how to fix headings which begin with a number#75
ScatteredComet wants to merge 3 commits intogodotengine:mainfrom
ScatteredComet:section-headers

Conversation

@ScatteredComet
Copy link

@ScatteredComet ScatteredComet commented Mar 4, 2026

Comment on lines +172 to +181
Headers which begin with a number lead to incorrect link fragments. To workaround this, add a custom anchor before any such header:

.. code:: rst

.. _doc_2d_movement_8-way_movement:

8-way movement
--------------

Try to use the convention ``_doc_<page_slug>_<section_slug>:`` or, if that isn't unique, ``_doc_<page_slug>_<section_slug>_<subsection_slug>:``. The only allowed characters are alphanumeric (``A-Z``, ``a-z``, ``0-9``) and underscores (``_``).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used a different workaround for a digit-started header in areas.rst. I'm not sure if a single anchor will work. See https://stackoverflow.com/a/65284203/503822

@Ivorforce Ivorforce requested a review from a team March 4, 2026 09:22
Suggested by
- AThousandShips
- Ivorforce
Suggested by
- AThousandShips
@ScatteredComet
Copy link
Author

ScatteredComet commented Mar 4, 2026

I've added in those suggestions but as per #75 (comment) this might not even be the correct change. (The original suggestion was here)

@ScatteredComet ScatteredComet changed the title Describe how to create sections and subsections Describe how to fix headings which begin with a number Mar 4, 2026
@Calinou Calinou added the enhancement New feature or request label Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants