Repository navigation
Conversation
hugo/scripts/convert.py turns docs/ (MDX) into Hugo content at build time; templates reuse the Docusaurus markup and the production stylesheet, so pages look the same. All 19,646 URLs, titles, canonicals and sitemap lastmod dates match the current site. Chinese UI strings, WeChat follow float/popup, Giscus, gtag, Baidu analytics and AdSense are ported; src/pages/*.js info pages are converted from their JSX and the homepage body is a Hugo partial. Search is Pagefind; scripts/search_index.mjs pre-segments Chinese with Intl.Segmenter so index and query tokens match (二叉树 found 2 pages, now 90). CI: hugo.yml builds on ubuntu-latest, runs check_build.sh and deploys to GitHub Pages; PRs build only. node.js.yml (Docusaurus) is manual-only, for rollback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017wc1ZTEenxzhmW93VbGMfU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the Docusaurus build with Hugo. Builds in ~2–5 minutes on a GitHub-hosted runner instead of hours on the 44 GB self-hosted runner.
What stays the same
lastmoddates match the live site.How it works
hugo/scripts/convert.pyconvertsdocs/(MDX) to Hugo content at build time;docs/stays the source of truth.src/pages/*.jsinfo pages are converted from their JSX; the homepage body ishugo/layouts/partials/home-body.html.hugo/scripts/search_index.mjspre-segments Chinese withIntl.Segmenterso queries match (二叉树: 2 → 90 results)..github/workflows/hugo.ymlbuilds, runshugo/scripts/check_build.sh, and deploys on pushes to main. PRs build and check only.node.js.yml(Docusaurus) is now manual-only, for rollback.Rollback: Actions → "Docusaurus build and deploy (rollback only)" → Run workflow on main.
🤖 Generated with Claude Code
https://claude.ai/code/session_017wc1ZTEenxzhmW93VbGMfU