- Home
- Docs Builder
- Local Preview for Content Authors
Local Preview for Content Authors
Preview your docs locally before pushing changes. All you need is Docker and a docs/ directory.
Prerequisites
Section titled “Prerequisites”- Docker Desktop installed and running
- Your content repo cloned locally with a
docs/directory containing at leastindex.mdx
Start the Dev Server
Section titled “Start the Dev Server”From the root of your content repo, run:
docker run --rm -it \ -v "$(pwd)/docs:/content/docs" \ -p 4321:4321 \ -e MODE=dev \ ghcr.io/f5xc-salesdemos/docs-builder:latestOpen http://localhost:4321 once the server starts.
Images and Static Assets
Section titled “Images and Static Assets”Place images in a subdirectory like docs/images/. The container detects these automatically — no extra volume mounts needed.
Reference them in your MDX with a root-relative path:
Troubleshooting
Section titled “Troubleshooting”Port already in use — Map to a different host port: -p 8080:4321, then open http://localhost:8080.
Content not appearing — Verify docs/index.mdx exists. Check the container output for an ERROR: No content found message.
Stale image — Pull the latest version:
docker pull ghcr.io/f5xc-salesdemos/docs-builder:latestFurther Reading
Section titled “Further Reading”- Docker Build — Image details, environment variables, and production builds
- Architecture — Content injection model and theme system design