tfui latest

Development

The pages below explain how tfui is built and tested and how work is tracked. The rest of this page is for changing the docs site: its layout, the sidebar, icons, and how to build and preview it. What goes on which page is in the docs map.

Documentation Site Structure

The docs site at docs/ is a Jekyll site published to GitHub Pages by .github/workflows/pages.yaml. It uses its own theme: two layouts, a few includes, one stylesheet and one script, with no theme gem.

docs/
├── index.html                # Landing page (layout: home)
├── _config.yml               # Site settings and plugins
├── _data/
│   └── nav.yml               # The sidebar, in reading order, with each page's sidebar title
├── _layouts/
│   ├── default.html          # Every Markdown page: top bar, sidebar, content, "On this page"
│   └── home.html             # The landing page
├── _plugins/
│   └── seo_description.rb    # Puts seo.description into the meta tags
├── _includes/
│   ├── context.html          # Resolves page_title and section from _data/nav.yml
│   ├── head.html, title.html, header.html, sidebar.html, footer.html
│   └── icons/                # Inline SVG icons: Lucide and Simple Icons
├── assets/
│   ├── site.css              # The theme, dark and light schemes
│   ├── site.js               # Heading anchors, page contents, copy buttons, search
│   ├── fonts/                # Space Grotesk and JetBrains Mono, self-hosted
│   └── demo/                 # Demo GIFs, generated by demo/generate.sh
├── guides/  features/  plugins/  reference/  development/  adr/
└── roadmap.md

Pages and the sidebar

  • A Markdown page renders with the default layout. Its description says what the page is for a reader of docs/; seo.description, when present, is what search engines and link previews show (_plugins/seo_description.rb). The rules for both are in the docs map.
  • To list a page in the sidebar, add its path and title to _data/nav.yml. A match folder marks the entry current for every page under it, as adr/ does for the decision records.
  • Link between pages with relative .md paths, such as [Apply](/terraform-ui/plugins/apply.html). jekyll-relative-links turns them into site URLs.

Icons

Icons are inline SVG includes that draw in the color of the text around them: {% include icons/terminal.svg %}. Brand icons come from Simple Icons (CC0); the rest from Lucide (ISC, see _includes/icons/LICENSE-lucide). A new icon takes its markup from the same package, in the form of the icons already there.

Build and preview

mise run docs:install   # once, and after the Gemfile changes
mise run docs:serve     # live preview at http://localhost:4000/terraform-ui/ (no search)
mise run docs:build     # the deployable site in docs/_site, with the Pagefind search index
mise run docs:check     # broken internal links, images, and anchors in docs/_site

Search is built by Pagefind after Jekyll, so it works on docs:build output and on the deployed site, not under docs:serve. On pull requests the Pages workflow runs docs:build and docs:check without deploying.

Edit this page on GitHub