Blog

A documentation CMS with Markdown and browser editing

A support writer can fix an installation step in the browser. An engineer can update the same guide in the pull request that changes the command. The Flat extension synchronizes the Markdown file with the page in the CMS database.

Pushword’s documentation is built from the Markdown under packages/docs/content. Use a local copy of that site to compare a file edit with a browser edit. Both edits should produce a change you can review in Git. Documentation source · Contributing to the docs

The source file and its public URL

The article Static Generator comes from extension/static-generator.md under the content directory. The file’s path supplies the slug. YAML front matter sets the HTML title, visible heading and whether to show a table of contents. The body contains the instructions and code samples. Follow Edit via GitHub on that page to open the corresponding source. Static Generator source

The docs sidebar has an explicit order in a Twig template. Adding a Markdown file gives it a route after import. Add an entry to the template when it belongs in that sidebar. For a section that changes as writers add pages, use a parent page and a generated list. The blog index, for example, lists its published children by date. Within a guide, toc: true gives readers links to its headings. Sidebar source · Page lists

Search on a static host

Try static generator in the search box on a documentation page. The published frontend reads /search.json and returns links to pages. The static build’s search index includes the title, heading, slug and tags, plus up to 1,000 characters of rendered body text per entry. Test with a real support query that mentions a term late in a long guide. A match can depend on the title or tags when that term falls outside the excerpt.

For full-body search with typo tolerance, Pushword’s Search extension can use a PHP endpoint backed by an SQLite index. The endpoint needs a PHP runtime. The JSON search on this documentation site runs in the browser, so GitHub Pages can serve it alongside the generated HTML. Search modes

Rebuild a guide and review the change

Set up a checkout using the development environment instructions. In packages/docs/content/, edit a sentence near the top of extension/static-generator.md so you can find it in the HTML and search excerpt. Run the build from the repository root.

cd packages/dev-app
php bin/console pw:flat:lint pushword.piedweb.com
php bin/console pw:flat:sync pushword.piedweb.com --mode=import
php bin/console pw:static pushword.piedweb.com

Open docs/extension/static-generator.html from the repository root, and look for the matching slug in docs/search.json. Serve the docs/ directory over HTTP to try search in a browser. The site workflow uses the same import and static export commands. A push to main builds the site and publishes the output to the docs branch when the build passes. Documentation build workflow

Make the same edit in the browser

Sign in at /admin/ on the local instance that imported the docs. In the page list, open the slug extension/static-generator for the pushword.piedweb.com site. Change the sentence in the Markdown editor and save. With Flat’s deferred export enabled, wait for the export to finish before checking Git. You can also export just this page from packages/dev-app.

php bin/console pw:flat:sync pushword.piedweb.com --mode=export --page=extension/static-generator
git diff -- ../docs/content/extension/static-generator.md

Use the diff for review. A browser save updates the CMS page. The public static site receives the edit when you publish a new build. For a team that accepts edits in both places, agree who has the page while an open pull request changes it. The Git workflow guide explains how to lock a production instance during a file-based edit. Markdown editor · Flat sync

Pushword, Docusaurus and MkDocs

Start the evaluation with a guide your team maintains. If a command differs between two supported releases, publish both instructions and open each URL as a reader.

RequirementPushwordDocusaurusMkDocs
Edit in the browserThe admin saves the page to the CMS. Flat can export the Markdown for review in Git.The standard workflow edits repository files and rebuilds the site.The standard workflow edits Markdown and rebuilds the site.
Keep docs for two supported product releasesVersion records page saves for editors. Set up separate paths or sites if readers need a manual per release.Cut public docs versions with their own paths and a reader-facing selector.Build and deploy versions to distinct paths with a tool such as mike.
Publish translated guidesConfigure a site per locale and link translated pages in the admin.Build locales with built-in i18n and a file-based translation workflow.Core localizes themes. Use a multilingual content plugin for translated manuals.
Reuse components in guidesUse Twig and Pushword snippets. Port any MDX components to the new rendering model.Embed React components in MDX.Use Markdown extensions and Jinja templates.
Search a static buildThe browser can read a generated JSON index. A PHP endpoint is available for full-body search.The classic preset integrates Algolia DocSearch. Local search options also exist.The default search plugin builds a client-side index.

Docusaurus versioning · Docusaurus i18n · Docusaurus MDX · Docusaurus search · MkDocs configuration · MkDocs localization · mike

Choose Docusaurus if readers need a version selector across two supported APIs or if your docs already teach with React components. MkDocs is a smaller change for a Python project that already writes its manual in Markdown and publishes from CI. Pushword fits a team that wants the same documentation in Git and a CMS editor, with the option to serve generated pages from a static host. Pushword page revisions · Pushword snippets

Pilot a section before moving a manual

Import one section of your manual and try its old URLs as a reader. Have a writer save a correction in the admin. Ask an engineer to review the exported diff before rebuilding. Try a support query that should find the changed passage. If you still support an older product release, export a copy of that release’s guide and test its URL as part of the pilot. Install Pushword