Local Setup
Now that Nocturne is installed, let's run it.
The dev server gives you a live preview of your documentation. Every change you make appears instantly — no manual rebuild required.
Estimated time: 2–3 minutes.
Step 1 — Start the Dev Server
In the terminal, run:
npm start
You should see:
[INFO] Starting the development server...
[SUCCESS] Docusaurus website is running at: http://localhost:3000/
Step 2 — Open Your Browser
Go to:
http://localhost:3000
You'll see the Nocturne homepage.
Try it out:
- Click a sidebar link — the docs load
- Toggle dark/light mode — top right corner
- Use the search bar — type "install" and see results
Step 3 — Edit Content
Open any file in docs/ using your text editor. For example, docs/getting-started/index.md.
Change something — a heading, a paragraph. Save the file.
Look at your browser. The page updates instantly. No refresh needed.
This is live reload — Docusaurus watches your files and rebuilds as you type.
Step 4 — Stop the Dev Server
When you're done:
- Press
Ctrl + Cin the terminal
The server stops. Run npm start again anytime.
How Live Reload Works
Docusaurus watches these files:
.mdand.mdxfiles indocs/.jsonfiles insrc/data/.tsand.tsxfiles insrc/.cssfiles insrc/css/.mdfiles inblog/
When any of these change, Docusaurus:
- Rebuilds the affected page
- Pushes the update to your browser
- Preserves your scroll position
You stay focused. No manual rebuilds.
What You Can Do Locally
| Task | How |
|---|---|
| Preview documentation | npm start |
| Edit docs content | Edit docs/*.md |
| Edit homepage | Edit src/data/home.json |
| Edit navbar | Edit src/data/navbar.json |
| Edit site config | Edit src/data/site.json |
| Edit widgets | Edit src/data/widgets.json |
| Build for production | npm run build |
Troubleshooting
Port 3000 already in use
Another process is using port 3000. Start on a different port:
npm start -- --port 3001
Page doesn't update
- Check the terminal for errors
- Make sure you saved the file
- Refresh the browser manually with
Ctrl + Shift + R
Dev server crashes
- Stop with
Ctrl + C - Delete
node_modules/and.docusaurus/ - Run
npm installthennpm start
Search doesn't work locally
Pagefind search only works after npm run build. In dev mode, search is disabled.
What's Next?
Your documentation runs locally. Now let's deploy it online.