Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A simple documentation template made with Eleventy and Spruce CSS.
The Sprucecss Eleventy Documentation Template is a free, MIT-licensed documentation theme for the Eleventy static site generator, built on the Spruce CSS framework, that produces a static documentation website with two-level navigation, search, dark mode, and RTL support.
The Sprucecss Eleventy Documentation Template is a starter kit for creating self-hosted documentation sites. It takes Markdown content organized in a two-level folder structure and outputs static HTML with automatic sidebar navigation, breadcrumbs, a table of contents, and a Pagefind search index. The template is maintained by Cone Development, released under the MIT license, and deploys easily to Netlify. It includes ready-made FAQ and Changelog templates, a dark theme mode, and RTL support.
The template ships with a set of documentation-specific features beyond a basic Eleventy layout, including static search, navigation helpers, and UI customization options.
svgIcon renders any SVG icon inline with optional classes, and markdownRenderer renders a markdown string into HTML.The template is aimed at developers and teams who want a self-hosted, no-frills documentation site without relying on a hosted documentation platform.
With this template you can publish and maintain a full documentation site from Markdown files, with search and navigation handled automatically.
You set up the template by cloning the repository, installing dependencies, and running the npm scripts for development and production. Content lives in the posts folder where each category is a subfolder with a list page and a posts.json file that sets layout and permalink values. The Eleventy Navigation plugin determines the sidebar order and breadcrumb hierarchy, and simple standalone pages can be added directly under src.
The template is free: it is open-source under the MIT license, so there is no license fee and no paid tier. The only cost is hosting your static site on any service you choose, such as Netlify.
Here are answers to common questions about the template's cost, content workflow, search, and deployment.
Yes, the template is open-source and released under the MIT license, so you can use it for personal or commercial projects without cost. There are no paid plans or premium features; you only need a static hosting service like Netlify to publish the generated site.
Create a category folder inside the posts directory, add a list page with the same name, and put your Markdown posts in a nested posts folder. A posts.json file in that folder configures the layout and permalink for the pages. The navigation plugin will pick up the hierarchy automatically.
Yes. Dark mode is built into the Spruce CSS framework, and the template includes RTL support for right-to-left languages. Both features are available without additional plug-ins.
The template uses Pagefind for static search. Pagefind generates a search index at build time, so no external search API or server is required; visitors get fast, full-text search over the documentation content.
Because the output is a static site, you can deploy it to any static host. The repository includes a Netlify deployment status badge in its README, and Netlify is a straightforward option — just connect the repo and set the build command and publish directory.
