This repository contains the static website for the Chinese Railroad Workers in North America Project at Stanford University.
The site was migrated from a legacy WordPress installation into static HTML, CSS, JavaScript, images, fonts, and documents. It is intended to be portable, accessible, and maintainable without a WordPress server or database.
The website root is this directory. The main entry point is:
index.html
Important top-level sections include:
accessibility/
artifacts/
category/news/
faqs/
historical-newspaper-articles/
people/
press/
researchmaterials/
resources/
search.html
Supporting files are stored mostly in:
wp-content/
wp-includes/
search-index.json
The wp-content and wp-includes names remain from the original WordPress site, but the public site is static.
Because the search page loads search-index.json with JavaScript, the site should be previewed through a local web server rather than opened directly with file://.
From the website root:
python3 -m http.server 8000Then open:
http://localhost:8000/
The site search uses:
search-index.json
To rebuild the search index after adding, removing, or editing pages:
python3 generate_search_index.pyAfter rebuilding, confirm that search-index.json is committed with the site changes.
The site is designed to deploy as ordinary static files. A server only needs to serve HTML, CSS, JavaScript, images, fonts, and PDFs.
No WordPress, PHP, CGI, or database is required for normal public use.
All paths are relative. Copy or deploy the full contents of this website root to the intended public web root.
When making updates:
- Edit the static HTML/CSS/assets.
- Rebuild
search-index.jsonif page content or URLs changed. - Preview locally through a web server.
- Commit the updated files to GitHub.
- Deploy the committed version to the public server.
Avoid committing:
SSH keys
passwords
hosting credentials
local backups
live snapshots
temporary working files
The site includes a dedicated Accessibility page and has been updated to better align with Stanford web accessibility expectations, including heading structure, footer accessibility links, local assets, image alt text, and static-document handling.
Future edits should preserve:
- one clear page-level
h1 - logical heading order
- descriptive image alt text
- keyboard-accessible links and controls
- readable link text
- local copies of durable site assets whenever possible
The site is mostly self-contained. Embedded video content may still depend on YouTube or Vimeo where those embeds are intentional.
Other external dependencies should be avoided unless there is a clear reason to keep them.