A simple Docusaurus site for PhD documentation, set up to publish at https://3h4.github.io on every push to main.
npm install
npm run startOpen http://localhost:3000.
-
Create the repo
On GitHub, create a repository named3h4.github.io(for a user site athttps://3h4.github.io). -
Push this project
git remote add origin https://github.com/3h4/3h4.github.io.git git add . git commit -m "Deploy PhD docs with Docusaurus" git push -u origin main
-
Repo settings
- Settings → Actions → General
Under Workflow permissions, choose Read and write permissions. Save. - Settings → Pages
Build and deployment: Source = Deploy from a branch.
Branch = gh-pages, Folder = /(root). Save.
- Settings → Actions → General
-
Automatic deploys
After the first push, the workflow runs: it builds the site and deploys to thegh-pagesbranch. The site will be at https://3h4.github.io (may take 1–2 minutes).
docs/– Markdown documentation (sidebar is auto-generated).blog/– Blog posts.src/pages/– React pages (e.g. homepage).docusaurus.config.js– Site title, URL, navbar, etc.
Edit Markdown in docs/ or blog/, push to main, and the site updates after the next workflow run.