Skip to content

Conversation

jynus
Copy link
Contributor

@jynus jynus commented Jun 3, 2025

At #10857 a gitignore codeblock was added. Addition seems correct, but a pygment formatting was defined as:

.. code-block:: gitignore

No such a pygment exists, and although there is an aditional package that could parse git-related files, we chose to not add an extra package dependency for building the docs.

Fallback to unixconfig instead.

Closes #10989

At godotengine#10857 a gitignore codeblock was added. Addition seems correct,
but a pygment formatting was defined as:

.. code-block:: gitignore

No such a pygment exists, and although there is an aditional
package that could parse git-related files, we chose to
not add an extra package dependency for building the docs.

Fallback to unixconfig instead.

Closes godotengine#10989
@jynus
Copy link
Contributor Author

jynus commented Jun 3, 2025

Here is the list of alternatives: https://pygments.org/languages/

@Calinou Calinou added bug content:website Issues related to adding website features and fixing bugs, whether on the front or back-end cherrypick:4.4 labels Jun 4, 2025
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Looks good to me. unixconfig is a close enough match (it'll gray out comment lines starting with #).

@skyace65 skyace65 merged commit b41aca0 into godotengine:master Jun 8, 2025
1 check passed
@skyace65
Copy link
Contributor

skyace65 commented Jun 8, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.4 content:website Issues related to adding website features and fixing bugs, whether on the front or back-end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Building godot docs produces WARNING: Pygments lexer name 'gitignore' is not known
3 participants