Skip to content
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

[RFC] Rebuild link labels for Sphinx i18n support #800

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Aug 6, 2023

  1. Rebuild link labels for Sphinx i18n support

    When processing translations in Sphinx, after Sphinx's i8n transform
    replaces parts of a document with a translation, a document is processed
    a message at a time through the MyST-parser. For references using link
    labels, these may not be to the parse for the specific messages that
    need them and links may be left unbuilt after processing a document.
    
    To prevent issues when using translations, cache any detected label
    references when processing a given document. And when individual
    messages are parsed after translation, rebuild any label references and
    append them to the message first. This will ensure references will be
    resolved/built as expected.
    
    Signed-off-by: James Knight <james.d.knight@live.com>
    jdknight committed Aug 6, 2023
    Configuration menu
    Copy the full SHA
    e73c068 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d29601f View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Configuration menu
    Copy the full SHA
    dc3ef3a View commit details
    Browse the repository at this point in the history