refactor(gen): let Hugo build html docs #37972

Problem:
The html and css of the website's documentation pages are defined in
long strings in gen_help_html.lua, making it hard to maintain and
improve them. E.g. adding in headers that state the documentation is for
nightly Nvim has been a long standing feature request.

Solution:
Move the inlined css and html (e.g. the <head>, <nav>, etc.) to Hugo.

Now that the website is build with Hugo, we can use its templating
system to generate the full html/css from the Tree-sitter tree:
https://github.com/neovim/neovim.github.io/pull/437
This commit is contained in:
Yochem van Rosmalen
2026-02-23 23:26:27 +01:00
committed by GitHub
parent eb90f5d9e3
commit b57ed5e940
2 changed files with 39 additions and 427 deletions

View File

@@ -125,7 +125,7 @@ local function urls()
local filepath = vim.fs.normalize(vim.api.nvim_buf_get_name(0))
if vim.fs.relpath(vim.env.VIMRUNTIME, filepath) ~= nil then
local base = 'https://neovim.io/doc/user/helptag.html?tag='
local base = 'https://neovim.io/doc/user/helptag/?tag='
local query = vim.treesitter.query.parse(
'vimdoc',
[[