This is a minimal theme for Allwrite Docs. It has zero dependencies and is built for speed.
You can use the latest and greatest libraries (react, redux, etc) with allwrite, but the goal of this library is to minimal, fast, and not require compilation to run.
Once you have a local or remote allwrite server running, simply
/express-example and run
npm install and then
Add the following div:
<div id="allwrite-docs" class="allwrite-docs" data-root="/my/docs/path" data-api="http://localhost:8000"></div>
data-apishould be your allwrite instance.
data-rootis optional if your serving docs from the root. However, if you're serving from a base slug like
/docs, then you'll need to set that to the base.
Spartan is a single-page-app and makes use of the html5 history API. This is awesome for performance, but isn't great for SEO. However, you can use middleware to render the content on the server as seen in the express-example.