You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Code blocks are highlighted in QuantEcon's own token palette, the Sphinx lecture builds' default qetheme_code_style, in light and dark mode. MyST tokenises with highlight.js rather than Pygments, so the palette is mapped scope by scope onto the hljs-* classes; the mapping, and the two Pygments classes highlight.js has no scope for (operators and module names), are documented in styles/quantecon.css. Phase 3 of the book-theme parity plan (#89), Goal A. (#171)
Emphasis, strong text and definition terms render in the Sphinx builds' default seoul256 text colours -- teal em, amber strong and dt, both upright at weight 550 -- through --qe-emphasis-color, --qe-strong-color and --qe-definition-color custom properties with dark-mode values, beside the existing --qe-literal-color. Only the default scheme ships: no lecture repo sets color_scheme, so the gruvbox / none switches and the custom-CSS hook are deferred until a consumer asks for one. Phase 3, Goal B. (#171)
Language switcher and hreflang alternates for translated editions: with two or more entries in the new languages site option the toolbar gains a globe-icon dropdown linking to the same page in each edition, the entry matching current_language marked current, and every page carries <link rel="alternate" hreflang> tags with the first entry as x-default. Phase 4 of the book-theme parity plan (#90). (#174)
Right-to-left editions: enable_rtl sets dir="rtl" on the document (and current_language now sets its lang, in place of the hard-coded en), with the drawer, upstream content accents and spacing mirrored and code and maths kept left-to-right. Phase 5 (#91). (#174)
Translator credit in the page header from the new translators site option, with a localisable translators_label (default "Translated by") and a per-page override under site: in page frontmatter, on the shape settled across the themes on QuantEcon/workspace-themes#3 (#143). (#174)
The site options above are declared in template.yml. The MyST CLI drops any site.options key the template does not declare, and can only declare scalar types, so languages and translators are YAML written inside a block string; see the README's "Multilingual editions". (#174)