Deployment — From Git to Live
Diplodocus deployment is automatic. When you push to GitHub, the site updates within minutes. This page explains the flow and what happens behind the scenes.
The Deployment Flow
1. You push to GitHub
git push origin main
2. GitHub webhook triggers deployment
(via GitHub Actions or direct hook)
3. Diplodocus server fetches latest changes
git pull
4. New docs are immediately live
https://diplodocus.joehunter.dev/my-project-docs/overview
5. Sitemap is regenerated
https://diplodocus.joehunter.dev/sitemap.xml
6. Search engines crawl the new pages
(may take 24-48 hours for indexing)
What Deploys Automatically
When you push a commit to the main branch:
✅ New documentation folders in public_md/
✅ Updated markdown files (any page you edit)
✅ New attachments (images, PDFs, files in attachments/)
✅ Configuration changes (.diplodocus.json)
❌ Private documentation (in private_md/) — kept private, not indexed
❌ Comments in .md files — not visible in rendered output anyway
Deployment Checklist
Before pushing, verify your docs:
- All
.mdfiles are properly formatted (valid markdown) - Every
.mdfile starts with a top-level# H1heading - File naming follows the pattern (
01-,02-, etc.) - Images in
attachments/are actually referenced in your markdown - Links to other guides use the correct URLs (
/space-slug/page-slug) -
.diplodocus.jsonhas valid JSON (no trailing commas, etc.) - No secrets, passwords, or API keys in the content
Pushing Your Docs
First-Time Push
cd ~/Projects/diplodocus-workspace
# Stage your new folder
git add public_md/my-project-docs/
# Commit with a clear message
git commit -m "Add documentation for my-project-docs"
# Push to the main branch
git push origin main
After a few minutes, visit:
https://diplodocus.joehunter.dev/my-project-docs/
You should see your new documentation space live.
Updating Docs Later
cd ~/Projects/diplodocus-workspace
# Edit a page locally
nano public_md/my-project-docs/01-overview.md
# Stage and commit
git add public_md/my-project-docs/01-overview.md
git commit -m "Update overview with better examples"
# Push
git push origin main
Changes appear within minutes.
Viewing Live Docs
After deployment, your docs are accessible at:
https://diplodocus.joehunter.dev/{folder-slug}/{page-slug}
Examples:
https://diplodocus.joehunter.dev/my-project-docs/overview
https://diplodocus.joehunter.dev/my-project-docs/getting-started
https://diplodocus.joehunter.dev/my-project-docs/deployment
Verifying Deployment
Check if your docs are live:
- Visit the home page: https://diplodocus.joehunter.dev/
- Look for your space in the sidebar
- Click through to verify all pages render correctly
Check the sitemap:
https://diplodocus.joehunter.dev/sitemap.xml
Search for your space slug (e.g., my-project-docs) to confirm it's indexed.
Search engine indexing:
It can take 24-48 hours for Google to index your new pages. You can speed this up by:
- Going to Google Search Console: https://search.google.com/search-console
- Adding your site (if not already added)
- Submitting the sitemap: https://diplodocus.joehunter.dev/sitemap.xml
- Manually requesting indexing for individual URLs
Rollback / Removing Docs
If you accidentally pushed something that should be removed:
# Delete the folder locally
rm -rf public_md/my-project-docs/
# Commit the deletion
git commit -am "Remove my-project-docs (accidental push)"
# Push
git push origin main
The space will be removed from the site within minutes.
Deployment Troubleshooting
My docs don't appear after I pushed
Possible causes:
- Folder name is wrong — Make sure it's in
public_md/, notdocs/or elsewhere - No
.mdfiles in the folder — Diplodocus scans for*.mdfiles - File names don't follow the pattern — Use
01-name.md, notname.md - Missing
# H1heading — Every.mdfile needs a top-level heading - Git push failed silently — Check the output:
git push origin mainshould show success
Sitemap doesn't include my pages
The sitemap regenerates on deployment. If your pages aren't listed:
- Verify they appear on the live site first
- Wait a few minutes and check again: https://diplodocus.joehunter.dev/sitemap.xml
- If still missing, check the page for errors in the browser console
Pages render with formatting errors
Common issues:
- Missing blank lines before lists — Markdown requires a blank line before
- item - Code blocks not rendering — Use triple backticks:
``` - Links broken — Check the URL slug (use
/space/page, not/space/page.md)
Try viewing the raw markdown locally in VSCode to spot syntax issues.
Next Step
Now that you understand the full deployment flow, let's walk through a complete real-world example from start to finish.