summaryrefslogtreecommitdiffstatshomepage
path: root/src/gen/gen_help_html.lua
AgeCommit message (Collapse)AuthorFiles
2026-03-24docs: job-control.txt => flow layout #38463Yochem van Rosmalen1
2026-03-23docs: change lua-bit to new layout #38447Yochem van Rosmalen1
Problem: Flow layout looks better on neovim.io. Nvim-owned help files should switch to the new layout. Also lua-bit.txt doesn't use the same format for function documentation as the other docs (such as api.txt). Solution: Switch to new layout. Tweak the function documentation to be in line with the other docs style.
2026-03-23test: ignore kuwasha.net url #38438Yochem van Rosmalen1
Problem: Flagged by `make lintdocurls` on GitHub actions. Doesn't reproduce locally, so probably blocks the action runner. Solution: Ignore it.
2026-03-22docs: starting.txt new layoutJustin M. Keyes1
2026-03-22fix(docs): improve adjacent list itemsJustin M. Keyes1
Problem: List items separated by blank lines are wrapped in "blocks", then the html generator does not treat them as contiguous list-items, and the browser shows the list as "1. 1. 1." instead of "1. 2. 3.". Solution: - When generating a list-item, check if the last child of the previous block was a list-item, and merge them together. - Massage the help source. fix #37220
2026-03-20docs: miscJustin M. Keyes1
2026-03-18docs: terminal.txt new layoutJustin M. Keyes1
2026-03-13refactor(treesitter)!: get_parser return nil on error #37276nikolightsaber1
2026-03-09Merge #38117 from noib3/fix-lua-lints-in-srcJustin M. Keyes1
2026-03-09fix: resolve all remaining LuaLS warnings in `src/`Riccardo Mazzarini1
2026-03-06fix(gen): alias /doc/user/helptag.html to /doc/user/helptag/ #38156Yochem van Rosmalen1
Problem: helptag.html is used to search for the online help documentation of a specified tag. The previous URL was `/doc/user/helptag.html` but that switched to `/doc/user/helptag/` in https://github.com/neovim/neovim.github.io/pull/437. The alias of the .html page was added to all other doc pages but forgotten for the helptag.html page Solution: Add the alias to the helptag.html page too
2026-02-28revert :gen_help_html.lua commit 4a4de73 #38100Yochem van Rosmalen1
revert commit 4a4de73043060a4c0f8e91bc69ff62c69fcd8702
2026-02-27fix(help): better align local-additions #38097Yochem van Rosmalen1
Problem: Descriptions of plugins often contain taglinks which are generally concealed. This misaligns them by 2 characters with descriptions that don't have a taglink in them. Solution: Don't count "bar" characters (`|`) for the description width. Example: Actual buffer content: ``` myplugin.txt |lsp| is cool myplugin.txt this is a nice plugin ``` Rendered as: ``` myplugin.txt lsp is cool myplugin.txt this is a nice plugin ```
2026-02-23refactor(gen): let Hugo build html docs #37972Yochem van Rosmalen1
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
2025-12-15ci(lintdocurls): ignore websites that block GHA #36982Yochem van Rosmalen1
Problem: These URLs seem to be unreachable from GHA CI but are available locally. Solution: Ignore them for now.
2025-12-15feat(docs): numbered listitemsJustin M. Keyes1
2025-12-15fix(gen_help_html): parser overrideJustin M. Keyes1
Call `vim.treesitter.language.add()` before `get_helptags` (which triggers filetype=help). And do this in the main routine, instead of each gen/validate task.
2025-12-06docs: miscJustin M. Keyes1
fix https://github.com/neovim/neovim.github.io/issues/419 Co-authored-by: Rob Pilling <robpilling@gmail.com>
2025-11-18ci: check URL reachability #35593Yochem van Rosmalen1
Problem: scripts/check_urls.vim manually matches urls in the help pages and then synchronously checks them via curl/wget/powershell. This is extremely slow (~5 minutes for Nvims runtime on my machine) and prone to errors in how the urls are matched. Solution: - Use Tree-sitter to find the urls in the help pages and `vim.net.request` to check the responses. - Add a `lintdocurls` build task and check it in CI (every Friday). - Reopens a dedicated issue if it finds unreachable URLs. - Drop the old check_urls.vim script.
2025-11-16docs: rework main help pageJustin M. Keyes1
2025-10-27docs: new layoutJustin M. Keyes1
2025-10-27fix(docs): dev.txt is "new layout"Justin M. Keyes1
2025-10-27fix(build): gen_help_html fails #36359Justin M. Keyes1
Problem: fe4faaf81a6f3 added an invalid "redirect" item, which caused the assert() to fail, which then caused the neovim/doc/ CI to fail: https://github.com/neovim/doc/actions/runs/18830779387/job/53721736276 : The previous commit e69beb9b1aba tried to fix a different issue, which has gone hidden because the "invalid tags" failure has been present on the neovim/doc/ but was silently failing. invalid tags: { ["g:netrw_keepdir"] = "usr_22.txt", netrw = "vi_diff.txt", ... plugins = "editorconfig" } Solution: - Fix the invalid redirect. - Improve the redirects assertion.
2025-10-27fix(build): invalid help tags cause reports to fail #36356Justin M. Keyes1
Problem: The doc/ repo CI is failing https://github.com/neovim/doc/actions/runs/18830779387/job/53721736276 : invalid tags: { ["g:netrw_keepdir"] = "usr_22.txt", netrw = "vi_diff.txt", ["netrw-P"] = "usr_22.txt", ... ["netrw-v"] = "usr_22.txt", plugins = "editorconfig" } Solution: Add the "generate netrw tags" hack to the `gen()` step. Previously it was only in the `validate()` step. (idk why it only started failing 3 days ago...)
2025-10-24docs: dev-quickstart, dev-test #36304Justin M. Keyes1
2025-10-24docs: dev_tools, dev_archJustin M. Keyes1
2025-09-28docs: json, tests, lsp #35754Justin M. Keyes1
Close #35926 Close #35818 Co-authored-by: skewb1k <skewb1kunix@gmail.com> Co-authored-by: glepnir <glephunter@gmail.com>
2025-09-28fix(docs): include `?` in list items #35945Maria Solano1
2025-09-13docs: move editorconfig.txt into plugins.txtJustin M. Keyes1
It helps to have plugins living in one common area, because it signals to users the mechanisms for controlling them, which are typically driven by keymaps and autocmds rather than builtin options. We can always revisit if plugins.txt gets "too big" (for example, we may want to introduce "project.txt" for the project concept, where editorconfig and 'exrc' are relevant), but for now it's rather unusual for editorconfig.txt to have its own dedicated helpfile.
2025-09-03docs: lsp, miscJustin M. Keyes1
- Problem: It's not clear for new plugin developers that `:help` uses a help-tags file for searching the docs, generated by `:helptags`. - Solution: Hint to the |:helptags| docs for regenerating the tags file for their freshly written documentation. Co-authored-by: Yochem van Rosmalen <git@yochem.nl>
2025-08-23feat(gen_help_html): generate helptags.json, helptag.html #35442Yochem van Rosmalen1
Problem: No way to know the html page with the docs of a tag when you only have the tag name. Solution: Generate a helptags.json that maps tags to their locations. Generate a helptag.html page that redirects to the HTML page of the given tag. Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2025-08-11fix(gen_help_html): ASCII art rendering in docs #35262Shashwat Agrawal1
Problem: gen_help_html.lua script misinterprets parts of ASCII diagrams as help tags (e.g., `|_________|` in `usr_28.txt`). This incorrectly triggered special alignment-fixing logic that is meant for columnar text. Signed-off-by: Shashwat Agrawal <shashwatagrawal473@gmail.com>
2025-07-28docs: vim.packJustin M. Keyes1
2025-07-10docs: api, pack, events, developJustin M. Keyes1
2025-05-30docs: rename builtin.txt, eval.txt #34212Phạm Bình An1
Problem: Despite the name, `builtin.txt` only includes Vimscript functions, which is confusing, especially to people who only use Lua to configure Nvim Solution: From justinmk's suggestion - Rename `builtin.txt` to `vimfn.txt` - Rename `eval.txt` to `vimeval.txt` - The tags `*builtin.txt*` and `*eval.txt*` should be kept for Vim-patches Closes #33743
2025-04-12docs: misc #33330Justin M. Keyes1
2025-03-30docs: lsp config/commands #33122Justin M. Keyes1
fix #33075
2025-03-09fix(build): vimdoc tags are not validated #32801Justin M. Keyes1
Problem: "make lintdoc" is not validating vimdoc (:help) tags. Solution: - Call `lang_tree:parse()` to init the parser. - Load netrw 🤢 explicitly, since it was moved to `pack/dist/opt/`. - Fix invalid help tags.
2025-02-26refactor: old references to scripts/ dir #32647Justin M. Keyes1
2025-02-26feat(lua): vim.text.indent()Justin M. Keyes1
Problem: Indenting text is a common task in plugins/scripts for presentation/formatting, yet vim has no way of doing it (especially "dedent", and especially non-buffer text). Solution: Introduce `vim.text.indent()`. It sets the *exact* indentation because that's a more difficult (and thus more useful) task than merely "increasing the current indent" (which is somewhat easy with a `gsub()` one-liner).
2025-02-26build: move all generator scripts to `src/gen/`Lewis Russell1
- Move all generator Lua scripts to the `src/gen/` - Add a `.luarc.json` to `src/gen/` - Add a `preload.lua` to `src/gen/` - Add `src` to `package.path` so it aligns with `.luarc.json' - Fix all `require` statements in `src/gen/` so they are consistent: - `require('scripts.foo')` -> `require('gen.foo')` - `require('src.nvim.options')` -> `require('nvim.options')` - `require('api.dispatch_deprecated')` -> `require('nvim.api.dispatch_deprecated')`