Please don't upload to GitHub

DevLab Theme

DevLab is a Zola theme for project sites, blogs, manuals and books. Write your pages in Markdown and use Tera 2 components when you need a callout, tabs or a diagram. Zola is a static site generator written in Rust. To build a DevLab site, all you need is Zola 0.23.6 or newer.

Live demo · Documentation · Release notes

DevLab documentation with a section sidebar and an on-page table of contents

Make your first site

The starter comes with a homepage and a manual. You can open it in your browser before changing any files.

  1. Install Zola and run zola --version in a terminal. Zola installation guide
  2. Download and extract DevLab. Copy zola.toml and content/ from starter/ into a new folder called my-site. If you use Git, also copy .gitignore, which may be hidden. Download DevLab v1.2 (ZIP)
  3. Create my-site/themes/ and move the extracted theme folder into it. Name that folder devlab-theme. Check that my-site/themes/devlab-theme/theme.toml exists.
  4. Open a terminal in my-site, run zola serve and open the address it prints. Edit content/_index.md and save it to change the homepage.

The Quick start shows the folder layout and walks through adding an About page and a menu link. If you already have a Zola site or want to install DevLab as a Git submodule, see Install and update.

Add to your site

Development

The repository root is the demo site. Work from the source branch main. The pages branch holds the generated demo.

zola check --skip-external-links
zola build
zola serve

The test suite builds small sites with the theme. It requires Python 3.11+ and Node.js on your PATH. Install the schema test dependency in a virtual environment before running the suite.

python -m pip install -r tests/requirements.txt
node --version && python -m unittest discover -s tests

The browser suite also needs Node.js 22.12+, Playwright's Chromium, Firefox and WebKit, and pdftotext for the Chromium print test. On Debian or Ubuntu, pdftotext comes from poppler-utils.

cd tests/browser
npm ci
npx playwright install --with-deps chromium firefox webkit
npm test

To use an existing Chromium binary, set PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH and run npm test -- --project=chromium.

Release checklist

License

DevLab is MIT-licensed. License · Third-party notices