Site Setup
How this research site is published
This page records the lightweight publication workflow behind the site. It is kept separate from the research content so that deployment details do not interrupt the reading pages.
Basic deployment path
- Push the repository to GitHub.
- In Settings → Pages, choose GitHub Actions as the publishing source.
- Keep the note-generation script and site files in the repository.
- Let the workflow publish the docs directory as the final site output.
What the workflow does
- Check out the repository.
- Run the local note-generation step where needed.
- Collect the docs directory as a deployable artifact.
- Publish the resulting artifact to GitHub Pages.
How to publish a new note manually
Do not edit docs/notes.html or docs/notes/*.html by hand unless you are debugging generated output.
Those files are regenerated and will be overwritten by the next local build or GitHub Pages deployment.
A longer Chinese maintenance checklist is kept in docs/notes_site_maintenance_zh.md for day-to-day manual updates.
- Write or update the Markdown file in
Knowledge/. - Add a new entry or a new language variant in
tools/notes_manifest.json. - Run
python tools/generate_notes_site.pyto rebuilddocs/notes.htmlanddocs/notes/*.html. - Review the generated pages locally if needed, then commit the Markdown, manifest, and generated docs files.
- Push to
main; GitHub Actions will regenerate and publish the site again.
What to edit when the interface should change
- Edit
tools/notes_manifest.jsonif you only want to add, remove, rename, reorder, or relabel note cards. - Edit
tools/generate_notes_site.pyif you want the note-page layout or card-button logic itself to change. - Edit
docs/index.htmlif you want a note to appear in the homepage featured area. - Edit
docs/reading-map.htmlif the reading route or note-entry links should change. - Edit
docs/assets/site.cssif the visual styling of note cards or note pages should change.
Why this page remains in the site
This is mainly a technical note for maintaining a research-facing site. It keeps the publication path explicit without mixing deployment details into the research pages themselves.