New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add debug logging to autosectionlabel
#10881
Conversation
Please target against 5.x and add a CHANGES entry and tests. A |
Done. I also added documentation in 4b31161. Renders as Changes added ✅. Can you help me with the tests? I only see tests that look at the generated |
I changed the base but you'll need to rebase to remove all the extra commits. A |
ok I hope that this was the right rebase. Also I hope you do squash merging 😆. |
autosectionlabel
autosectionlabel
Thanks Martin! A |
Subject: I started using emoji and other non-plain-text content in section headings. I other wonder what the auto-generated section label will be.
Purpose
See the subject. For instance, the following heading
gets rendered (using
sphinxemoji
) asTrying to reference it with
failsworked. I guess I did something else wrong. I had no clue then whether it was due to the|
or:
characters, whether the emoji had already been inserted and the correct reference would have been:ref:`📄 Formatting`
, or something else altogether. I also couldn't find anything in the docs 😕. Because the code internally relies ondocutils
, I didn't want to rabbit hole and think about what the code would actually do.Output would be for instance:
wrong conclusion
What worked eventually: ```rst :ref:`|:page_facing_up:| formatting` ``` ~note the _lower-case_ `formatting`, not _upper-case_.~Questions
Soooo: debug logging. Is this the best way to do this? I could configure the verbosity then with
-vv
(docs).Should we also add something to the docs? Somehow help other lost souls like myself?