Skip to content

fix: rebuild heading-maps (v0.12.5 MyST role fix)#13

Closed
mmcky wants to merge 1 commit intomainfrom
fix/rebuild-heading-maps-v0.12.5
Closed

fix: rebuild heading-maps (v0.12.5 MyST role fix)#13
mmcky wants to merge 1 commit intomainfrom
fix/rebuild-heading-maps-v0.12.5

Conversation

@mmcky
Copy link
Copy Markdown
Contributor

@mmcky mmcky commented Mar 25, 2026

Rebuild heading-maps using action-translation v0.12.5 which fixes MyST role pollution (PR #50).

What changed: Headings with MyST inline roles (e.g. {index}`Pandas <single: Pandas>`) were previously stored verbatim as heading-map keys. Now the clean display text is used instead.

Generated with:

npx translate headingmap -s lecture-python-programming -t lecture-python-programming.zh-cn

Files updated: 1 (python_advanced_features.md)

Strips MyST inline roles ({index}, etc.) from heading-map keys/values.
Regenerated using: npx translate headingmap
Copilot AI review requested due to automatic review settings March 25, 2026 21:40
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Rebuilds the heading-map metadata for the translated “Python Advanced Features” lecture using action-translation v0.12.5, aligning heading-map keys with clean display text (avoiding MyST role pollution).

Changes:

  • Removes the top-level More Language Features entry from the heading-map in python_advanced_features.md.
  • Updates the translation state to reflect tool-version: 0.12.5.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lectures/python_advanced_features.md Updates heading-map entries to the newly generated set (drops the top-level mapping entry).
.translate/state/python_advanced_features.md.yml Records the translation tool version bump to 0.12.5.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 4 to +6
mode: UPDATE
section-count: 7
tool-version: 0.12.4
tool-version: 0.12.5
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

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

PR description says only python_advanced_features.md was updated, but this PR also changes .translate/state/python_advanced_features.md.yml (tool-version bump to 0.12.5). Please update the PR description (or drop the state-file change) so the summary matches the actual diff.

Copilot uses AI. Check for mistakes.
@mmcky mmcky closed this Mar 26, 2026
@mmcky mmcky deleted the fix/rebuild-heading-maps-v0.12.5 branch March 26, 2026 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants