diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-10-10 00:40:17 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2022-10-10 01:05:18 +0200 |
commit | 6b01e9bf872cc91530b41fcd97c6bf984776ade6 (patch) | |
tree | e72f9f89cf817e54da5eda819fa6af982139a0df /scripts/lua2dox.lua | |
parent | a7a83bc4c25d63f3ae0a7a56e5211df1444699c4 (diff) | |
download | rneovim-6b01e9bf872cc91530b41fcd97c6bf984776ade6.tar.gz rneovim-6b01e9bf872cc91530b41fcd97c6bf984776ade6.tar.bz2 rneovim-6b01e9bf872cc91530b41fcd97c6bf984776ade6.zip |
feat(docs-html): try to use tags for ToC headings
Problem:
The generated ToC (table of contents) uses anchors derived from the
heading title, e.g. the "Global Plugins" heading yields:
https://neovim.io/doc/user/usr_05.html#_global-plugins-
so if the heading title changes, then the old URL (anchor) is broken.
Solution:
:help tags change less often than heading titles, so if a heading
contains a *tag*, use that as its anchor name instead. Example:
https://neovim.io/doc/user/usr_05.html#standard-plugin
Diffstat (limited to 'scripts/lua2dox.lua')
0 files changed, 0 insertions, 0 deletions