mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 22:35:33 +00:00
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:
committed by
GitHub
parent
eb90f5d9e3
commit
b57ed5e940
@@ -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',
|
||||
[[
|
||||
|
||||
Reference in New Issue
Block a user