Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Jekyll theme for content-heavy pages like project specs, with sidebar TOC and GitHub Pages support.
Primer Spec is a Jekyll theme designed for long informative web pages (like project specifications), generating a sidebar table of contents and aesthetic styling on GitHub Pages.
Primer Spec is a Jekyll theme that takes Markdown or HTML files and renders them as a fully styled website with a sidebar table of contents. It runs on Jekyll with GitHub Pages via a remote theme, requiring only a few lines of configuration. The theme is maintained by Sesh Sadasivam and the EECS 485 Staff at the University of Michigan, and it builds on the Primer theme from GitHub Pages.
remote_theme: eecs485staff/primer-spec to your _config.yml along with a set of Jekyll plugins; the repository also supports nightly previews of the develop branch.Primer Spec is built for anyone who publishes long, structured documents as web pages. The primary audience is university course staff who distribute project specifications and lab assignments, as shown by the user showcase of EECS courses. It also suits technical writers creating documentation sites on GitHub Pages, and open-source maintainers who want a polished, navigable site without hand-coding HTML and CSS.
layout: spec front matter and remote theme configuration, then deploying with GitHub Pages.To use Primer Spec, add your Markdown or HTML content to a Jekyll site and insert layout: spec at the top of each page. Create a _config.yml with remote_theme: eecs485staff/primer-spec plus the required Jekyll plugins (jekyll-remote-theme, jekyll-optional-front-matter, jekyll-readme-index, jekyll-relative-links, and jemoji). Then deploy the site to GitHub Pages; the repository also documents advanced usage such as previewing locally, hiding sidebar sections, and enabling LaTeX or Mermaid rendering.
Yes. Primer Spec is an open-source Jekyll theme hosted on GitHub under the eecs485staff organization. You can use it on GitHub Pages without paying anything, and the source is available for contribution.
Yes. The theme is designed specifically for GitHub Pages via the remote_theme mechanism. You need to enable jekyll-remote-theme and a few other plugins, then push your site to a GitHub Pages-enabled branch.
Yes. The advanced usage documentation describes how to hide specific sections from the sidebar table of contents using page-level configuration. This lets you keep some headings out of the navigation while still rendering them in the page.
Yes. Primer Spec supports LaTeX math rendering with a boolean flag, and it can render Mermaid diagrams directly from Markdown code blocks. Both features are covered in the advanced usage guide.
