Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Hugo port of cfpb/docter, a documentation theme with automatic sidebar and blog support.
Docter is a Hugo documentation theme that ports CFPB's DOCter design to build static documentation sites with an automatic sidebar and a blog section.
Docter is a Hugo theme for project documentation, based on the Consumer Financial Protection Bureau's DOCter theme and inspired by the 18F Guides. It takes your Hugo site content — pages stored in the page directory and posts in the post directory — and renders a static documentation website with a sidebar navigation and a home page that lists the five most recent posts. The theme requires Hugo Extended and is available as a public repository on GitLab at gitlab.com/edavidaja/docter.
page; use weight in each page's front matter to control the order of items.post; the newest five by date are displayed on the home page.brand_color option in config.toml.page and setting weights for ordering.post and have the five latest automatically featured on the home page.brand_color config option without touching templates.The setup is straightforward: clone the repository into your Hugo site's themes directory, then add your documentation pages and posts. The theme automatically generates the sidebar from page content and orders it by weight. To change the color scheme, set brand_color in config.toml.
Other Hugo documentation themes include Docsy, which provides multi-language support and a larger feature set, and Hugo Book, a simpler single-column theme focused on readable documentation.
Yes, Docter requires Hugo Extended because the theme uses Hugo's extended feature set. The standard Hugo binary will not build it.
Set a numeric weight value in the front matter of each page inside the page directory. Lower weights appear first in the sidebar.
The home page displays the most recent five posts by date from the post directory.
Add or update the brand_color option in your site's config.toml. The theme will apply that color throughout the site.
The theme's source code is hosted in a public GitLab repository at gitlab.com/edavidaja/docter. You can clone it directly into your Hugo themes folder.
