11.stylix/doc/book.toml
Matt Sturgeon dedf5de579 doc: enable hash-files
Adds a hash to static filenames, i.e. CSS and JS files. This is done to
invalidate browser cache when the file is changed.
2025-05-27 11:05:00 -07:00

31 lines
925 B
TOML

[book]
title = "Stylix"
language = "en"
[preprocessor.alerts]
[output.html]
site-url = "/stylix/"
git-repository-url = "https://github.com/nix-community/stylix"
edit-url-template = "https://github.com/nix-community/stylix/edit/master/doc/{path}"
no-section-label = true
# Ensure static file (css, js) have a unique filename, to avoid outdated cache.
hash-files = true
additional-js = [
# JavaScript page redirects, using `window.location`.
# Supports redirecting from an #anchor tag.
#
# NOTE: this assumes the redirect file still exists
"redirects.js",
]
[output.html.fold]
enable = true
# HTML page redirects, using "meta refresh" tags.
# Usually preferred, but does not support redirects from #anchor tags.
#
# NOTE: The redirect target must be a path relative to the redirect file.
[output.html.redirect]
"/options/hm.html" = "./platforms/home_manager.html"
"/options/nixos.html" = "./platforms/nixos.html"