Skip to content

chore: migrate heading-map → translation frontmatter#83

Merged
mmcky merged 3 commits intomainfrom
chore/migrate-translation-frontmatter
Mar 26, 2026
Merged

chore: migrate heading-map → translation frontmatter#83
mmcky merged 3 commits intomainfrom
chore/migrate-translation-frontmatter

Conversation

@mmcky
Copy link
Copy Markdown
Contributor

@mmcky mmcky commented Mar 25, 2026

Migrate all 25 lecture files from flat heading-map: YAML to structured translation: { title, headings } format using action-translation v0.13.0 headingmap CLI.

Before:

heading-map:
  overview: "مقدمه"
  equilibrium: "تعادل"

After:

translation:
  title: مدل تار عنکبوتی
  headings:
    overview: "مقدمه"
    equilibrium: "تعادل"

Backward compatible — the sync pipeline reads both formats. This is a proactive migration for consistency.

Related: QuantEcon/action-translation v0.13.0

Converted all 25 lecture files from flat heading-map: YAML to
structured translation: { title, headings } format using
action-translation v0.13.0 headingmap CLI.

Backward compatible — the sync pipeline reads both formats.
Copilot AI review requested due to automatic review settings March 25, 2026 23:09
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 25, 2026

Deploy Preview for majestic-griffin-10b166 ready!

Name Link
🔨 Latest commit e5dade0
🔍 Latest deploy log https://app.netlify.com/projects/majestic-griffin-10b166/deploys/69c48d9ec1c8370008caa992
😎 Deploy Preview https://deploy-preview-83--majestic-griffin-10b166.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Migrates lecture translation metadata in YAML frontmatter from the legacy flat heading-map: format to the structured translation: { title, headings } format, and updates translation state metadata to reflect the newer tooling version.

Changes:

  • Replaced heading-map: with translation.title + translation.headings across lecture Markdown files.
  • Added translation.title to lectures that previously had no heading map / no headings to translate.
  • Bumped .translate/state/*.yml tool-version values to 0.13.0.

Reviewed changes

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

Show a summary per file
File Description
lectures/writing_good_code.md Migrates frontmatter to translation.title + translation.headings.
lectures/workspace.md Migrates frontmatter to translation.title + translation.headings.
lectures/troubleshooting.md Migrates frontmatter to translation.title + translation.headings.
lectures/sympy.md Migrates frontmatter to translation.title + translation.headings.
lectures/status.md Adds translation.title (no headings).
lectures/scipy.md Migrates frontmatter to translation.title + translation.headings.
lectures/python_oop.md Migrates frontmatter to translation.title + translation.headings.
lectures/python_essentials.md Migrates frontmatter to translation.title + translation.headings.
lectures/python_by_example.md Migrates frontmatter to translation.title + translation.headings.
lectures/python_advanced_features.md Migrates frontmatter to translation.title + translation.headings.
lectures/pandas_panel.md Migrates frontmatter to translation.title + translation.headings.
lectures/pandas.md Migrates frontmatter to translation.title + translation.headings.
lectures/oop_intro.md Migrates frontmatter to translation.title + translation.headings.
lectures/numpy_vs_numba_vs_jax.md Migrates frontmatter to translation.title + translation.headings.
lectures/numpy.md Migrates frontmatter to translation.title + translation.headings.
lectures/numba.md Migrates frontmatter to translation.title + translation.headings.
lectures/need_for_speed.md Migrates frontmatter to translation.title + translation.headings.
lectures/names.md Migrates frontmatter to translation.title + translation.headings.
lectures/matplotlib.md Migrates frontmatter to translation.title + translation.headings.
lectures/jax_intro.md Migrates frontmatter to translation.title + translation.headings.
lectures/intro.md Adds translation.title (no headings).
lectures/getting_started.md Migrates frontmatter to translation.title + translation.headings.
lectures/functions.md Migrates frontmatter to translation.title + translation.headings.
lectures/debugging.md Migrates frontmatter to translation.title + translation.headings.
lectures/about_py.md Migrates frontmatter to translation.title + translation.headings.
.translate/state/writing_good_code.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/workspace.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/troubleshooting.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/sympy.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/status.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/scipy.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/python_oop.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/python_essentials.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/python_by_example.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/python_advanced_features.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/pandas_panel.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/pandas.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/oop_intro.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/numpy_vs_numba_vs_jax.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/numpy.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/numba.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/need_for_speed.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/names.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/matplotlib.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/jax_intro.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/intro.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/getting_started.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/functions.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/debugging.md.yml Updates translation state tool-version to 0.13.0.
.translate/state/about_py.md.yml Updates translation state tool-version to 0.13.0.

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

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 25, 2026

@github-actions github-actions bot temporarily deployed to pull request March 25, 2026 23:18 Inactive
@mmcky mmcky merged commit e09d083 into main Mar 26, 2026
6 checks passed
@mmcky mmcky deleted the chore/migrate-translation-frontmatter branch March 26, 2026 01:42
@github-actions github-actions bot temporarily deployed to pull request March 26, 2026 01:42 Inactive
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