Skip to content

Conversation

@YuriiMotov
Copy link
Contributor

@YuriiMotov YuriiMotov commented Nov 28, 2025

This PR adds support for title config option:

{* docs_src/app/internal/admin.py title["app/internal/admin.py"] *}

Screenshot from 2025-11-28 14-52-25

@tiangolo edit: Quotes are optional. let's make quotes required, as a dict.

Note: Current implementation doesn't allow using ] in title text. Do we need to handle this?

@svlandeg svlandeg added the feature New feature or request label Nov 29, 2025
@tiangolo tiangolo marked this pull request as ready for review November 30, 2025 17:46
Copy link
Owner

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

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

Awesome, thank you! 🙌

I made the title quotes required to prevent us from skipping them, to start more strict now that we can and relax only if necessary (it's harder to start relaxed and then make it more strict).

I think for now it's fine to not support [ and ] in the title text, I think we have never used it.

@tiangolo tiangolo merged commit d1bb379 into tiangolo:main Nov 30, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants