Skip to content

ENH: bootstrap .translate/ metadata and heading maps (Phase 0, Track A) - #266

Merged
mmcky merged 1 commit into
mainfrom
onboard-translate-metadata
Jul 18, 2026
Merged

mmcky merged 1 commit into
mainfrom
onboard-translate-metadata

Conversation

@mmcky

@mmcky mmcky commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Onboards this repo to action-translation section-level sync, following the connect-existing tutorial order (resync wave first — merged today as #225#265 — then state bootstrap, then heading maps).

Contents: .translate/config.yml; per-file state for 49 lectures (41 recorded by the resync wave, the rest bootstrapped with translate status --write-state, --force justified for the three i18n-only files the 2026-07-18 LLM triage verified faithful against current source); translation: heading maps injected into 48 lecture frontmatters (no-LLM translate headingmap).

Health: translate doctor now passes — config ok, 49/50 files tracked (README.md is target-only), all 46 sectioned files mapped, review+rebase workflows present. Known residual: intro_supply_demand.md section-count mismatch (7 src vs 6 tgt), suspected upstream parser fence bug (QuantEcon/action-translation#94 discussion); content verified complete by two independent triages.

Completes the target-side onboarding for QuantEcon/lecture-python-intro#782. Next: merge the source-side sync workflow (QuantEcon/lecture-python-intro#795) to activate automation.

🤖 Generated with Claude Code

Onboards this repo to action-translation section-level sync:
- .translate/config.yml + per-file state (41 recorded by the resync
  wave that just merged, the rest bootstrapped via translate status
  --write-state; --force justified for the three i18n-only files the
  2026-07-18 LLM triage verified faithful against current source)
- translation: heading maps injected into 48 lecture frontmatters
  (translate headingmap, no LLM)

translate doctor now passes: config ok, 49/50 tracked (README.md is
target-only), all 46 sectioned files mapped, review+rebase workflows
present. Known residual: intro_supply_demand section-count mismatch,
suspected upstream parser fence bug (see QuantEcon/action-translation#94
comment); content verified complete by two independent triages.

Completes the target-side onboarding for QuantEcon/lecture-python-intro#782.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 18, 2026 05:39
@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for playful-platypus-17d3bb ready!

Name Link
🔨 Latest commit f4b55db
🔍 Latest deploy log https://app.netlify.com/projects/playful-platypus-17d3bb/deploys/6a5b11a6d6240a0008bb0b56
😎 Deploy Preview https://deploy-preview-266--playful-platypus-17d3bb.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.

@mmcky
mmcky merged commit ecd0802 into main Jul 18, 2026
0 checks passed
@mmcky
mmcky deleted the onboard-translate-metadata branch July 18, 2026 05:39

ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR bootstraps the repository for action-translation section-level syncing by adding .translate/ configuration and per-file translation metadata (titles + heading maps) to lecture documents, along with per-file state tracking files under .translate/state/.

Changes:

  • Add .translate/config.yml to define source/target languages and docs folder for the translation tool.
  • Add .translate/state/*.yml state files to track per-lecture sync status (source SHA, mode, section counts, etc.).
  • Inject translation: frontmatter into lecture markdown files, including title and (where applicable) headings maps for section-level alignment.

Reviewed changes

Copilot reviewed 99 out of 99 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
lectures/zreferences.md Adds translation.title frontmatter.
lectures/unpleasant.md Adds translation.title + heading map frontmatter.
lectures/troubleshooting.md Adds translation.title + heading map frontmatter.
lectures/time_series_with_matrices.md Adds translation.title + heading map frontmatter.
lectures/supply_demand_multiple_goods.md Adds translation.title + heading map frontmatter.
lectures/supply_demand_heterogeneity.md Adds translation.title + heading map frontmatter.
lectures/status.md Adds translation.title frontmatter.
lectures/solow.md Adds translation.title + heading map frontmatter.
lectures/simple_linear_regression.md Adds translation.title + heading map frontmatter.
lectures/short_path.md Adds translation.title + heading map frontmatter.
lectures/schelling.md Adds translation.title + heading map frontmatter.
lectures/scalar_dynam.md Adds translation.title + heading map frontmatter.
lectures/pv.md Adds translation.title + heading map frontmatter.
lectures/prob_dist.md Adds translation.title + heading map frontmatter.
lectures/olg.md Adds translation.title + heading map frontmatter.
lectures/networks.md Adds translation.title + heading map frontmatter.
lectures/monte_carlo.md Adds translation.title + heading map frontmatter.
lectures/money_inflation.md Adds translation.title + heading map frontmatter.
lectures/money_inflation_nonlinear.md Adds translation.title + heading map frontmatter.
lectures/mle.md Adds translation.title + heading map frontmatter.
lectures/markov_chains_II.md Adds translation.title + heading map frontmatter.
lectures/markov_chains_I.md Adds translation.title + heading map frontmatter.
lectures/lp_intro.md Adds translation.title + heading map frontmatter.
lectures/long_run_growth.md Adds translation.title + heading map frontmatter.
lectures/lln_clt.md Adds translation.title + heading map frontmatter.
lectures/linear_equations.md Adds translation.title + heading map frontmatter.
lectures/lake_model.md Adds translation.title + heading map frontmatter.
lectures/laffer_adaptive.md Adds translation.title + heading map frontmatter.
lectures/intro.md Adds translation.title frontmatter.
lectures/intro_supply_demand.md Adds translation.title + heading map frontmatter (needs correction for sync alignment).
lectures/input_output.md Adds translation.title + heading map frontmatter.
lectures/inflation_history.md Adds translation.title + heading map frontmatter.
lectures/inequality.md Adds translation.title + heading map frontmatter.
lectures/heavy_tails.md Adds translation.title + heading map frontmatter.
lectures/greek_square.md Adds translation.title + heading map frontmatter.
lectures/geom_series.md Adds translation.title + heading map frontmatter.
lectures/french_rev.md Adds translation.title + heading map frontmatter.
lectures/equalizing_difference.md Adds translation.title + heading map frontmatter.
lectures/eigen_II.md Adds translation.title + heading map frontmatter.
lectures/eigen_I.md Adds translation.title + heading map frontmatter.
lectures/cons_smooth.md Adds translation.title + heading map frontmatter.
lectures/complex_and_trig.md Adds translation.title + heading map frontmatter.
lectures/commod_price.md Adds translation.title + heading map frontmatter.
lectures/cobweb.md Adds translation.title + heading map frontmatter.
lectures/cagan_ree.md Adds translation.title + heading map frontmatter.
lectures/cagan_adaptive.md Adds translation.title + heading map frontmatter.
lectures/business_cycle.md Adds translation.title + heading map frontmatter.
lectures/ar1_processes.md Adds translation.title + heading map frontmatter.
lectures/about.md Adds translation frontmatter (currently leaves an extra --- delimiter that should be removed).
.translate/state/zreferences.md.yml Bootstraps translation state tracking for zreferences.md.
.translate/state/unpleasant.md.yml Bootstraps translation state tracking for unpleasant.md.
.translate/state/troubleshooting.md.yml Bootstraps translation state tracking for troubleshooting.md.
.translate/state/time_series_with_matrices.md.yml Bootstraps translation state tracking for time_series_with_matrices.md.
.translate/state/supply_demand_multiple_goods.md.yml Bootstraps translation state tracking for supply_demand_multiple_goods.md.
.translate/state/supply_demand_heterogeneity.md.yml Bootstraps translation state tracking for supply_demand_heterogeneity.md.
.translate/state/status.md.yml Bootstraps translation state tracking for status.md.
.translate/state/solow.md.yml Bootstraps translation state tracking for solow.md.
.translate/state/simple_linear_regression.md.yml Bootstraps translation state tracking for simple_linear_regression.md.
.translate/state/short_path.md.yml Bootstraps translation state tracking for short_path.md.
.translate/state/schelling.md.yml Bootstraps translation state tracking for schelling.md.
.translate/state/scalar_dynam.md.yml Bootstraps translation state tracking for scalar_dynam.md.
.translate/state/pv.md.yml Bootstraps translation state tracking for pv.md.
.translate/state/prob_dist.md.yml Bootstraps translation state tracking for prob_dist.md.
.translate/state/olg.md.yml Bootstraps translation state tracking for olg.md.
.translate/state/networks.md.yml Bootstraps translation state tracking for networks.md.
.translate/state/monte_carlo.md.yml Bootstraps translation state tracking for monte_carlo.md.
.translate/state/money_inflation.md.yml Bootstraps translation state tracking for money_inflation.md.
.translate/state/money_inflation_nonlinear.md.yml Bootstraps translation state tracking for money_inflation_nonlinear.md.
.translate/state/mle.md.yml Bootstraps translation state tracking for mle.md.
.translate/state/markov_chains_II.md.yml Bootstraps translation state tracking for markov_chains_II.md.
.translate/state/markov_chains_I.md.yml Bootstraps translation state tracking for markov_chains_I.md.
.translate/state/lp_intro.md.yml Bootstraps translation state tracking for lp_intro.md.
.translate/state/long_run_growth.md.yml Bootstraps translation state tracking for long_run_growth.md.
.translate/state/lln_clt.md.yml Bootstraps translation state tracking for lln_clt.md.
.translate/state/linear_equations.md.yml Bootstraps translation state tracking for linear_equations.md.
.translate/state/lake_model.md.yml Bootstraps translation state tracking for lake_model.md.
.translate/state/laffer_adaptive.md.yml Bootstraps translation state tracking for laffer_adaptive.md.
.translate/state/intro.md.yml Bootstraps translation state tracking for intro.md.
.translate/state/intro_supply_demand.md.yml Bootstraps translation state tracking for intro_supply_demand.md.
.translate/state/input_output.md.yml Bootstraps translation state tracking for input_output.md.
.translate/state/inflation_history.md.yml Bootstraps translation state tracking for inflation_history.md.
.translate/state/inequality.md.yml Bootstraps translation state tracking for inequality.md.
.translate/state/heavy_tails.md.yml Bootstraps translation state tracking for heavy_tails.md.
.translate/state/greek_square.md.yml Bootstraps translation state tracking for greek_square.md.
.translate/state/geom_series.md.yml Bootstraps translation state tracking for geom_series.md.
.translate/state/french_rev.md.yml Bootstraps translation state tracking for french_rev.md.
.translate/state/equalizing_difference.md.yml Bootstraps translation state tracking for equalizing_difference.md.
.translate/state/eigen_II.md.yml Bootstraps translation state tracking for eigen_II.md.
.translate/state/eigen_I.md.yml Bootstraps translation state tracking for eigen_I.md.
.translate/state/cons_smooth.md.yml Bootstraps translation state tracking for cons_smooth.md.
.translate/state/complex_and_trig.md.yml Bootstraps translation state tracking for complex_and_trig.md.
.translate/state/commod_price.md.yml Bootstraps translation state tracking for commod_price.md.
.translate/state/cobweb.md.yml Bootstraps translation state tracking for cobweb.md.
.translate/state/cagan_ree.md.yml Bootstraps translation state tracking for cagan_ree.md.
.translate/state/cagan_adaptive.md.yml Bootstraps translation state tracking for cagan_adaptive.md.
.translate/state/business_cycle.md.yml Bootstraps translation state tracking for business_cycle.md.
.translate/state/ar1_processes.md.yml Bootstraps translation state tracking for ar1_processes.md.
.translate/state/about.md.yml Bootstraps translation state tracking for about.md.
.translate/config.yml Adds base configuration for the translation tool (languages, docs folder, tool version).

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

Comment thread lectures/about.md
Credits: 致谢
---

---
Comment on lines +14 to +23
headings:
Overview: 概述
Overview::Why does this model matter?: 为什么这个模型很重要?
Overview::Topics and infrastructure: 主题和函数库
Consumer surplus: 生产者剩余
Consumer surplus::A discrete example: 离散情况
Producer surplus: 积分
Integration: 供给和需求
Supply and demand: 推广
Generalizations: 练习
@github-actions

ghost commented Jul 18, 2026

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request July 18, 2026 05:53 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