docs: fix auto generated links. Fixes #366
This commit is contained in:
34
README.md
34
README.md
@@ -31,23 +31,23 @@ extra themes for Kitty, Alacritty, iTerm and Fish.
|
||||
### 🍭 Extras
|
||||
|
||||
<!-- extras:start -->
|
||||
- [Alacritty](https://github.com/alacritty/alacritty) ([alacritty](tree/main/extras/alacritty))
|
||||
- [Delta](https://github.com/dandavison/delta) ([delta](tree/main/extras/delta))
|
||||
- [Fish](https://fishshell.com/docs/current/index.html) ([fish](tree/main/extras/fish))
|
||||
- [Fish Themes](https://fishshell.com/docs/current/interactive.html#syntax-highlighting) ([fish_themes](tree/main/extras/fish_themes))
|
||||
- [Foot](https://codeberg.org/dnkl/foot) ([foot](tree/main/extras/foot))
|
||||
- [iTerm](https://iterm2.com/) ([iterm](tree/main/extras/iterm))
|
||||
- [Kitty](https://sw.kovidgoyal.net/kitty/conf.html) ([kitty](tree/main/extras/kitty))
|
||||
- [Lua Table for testing](https://www.lua.org) ([lua](tree/main/extras/lua))
|
||||
- [Prism](https://prismjs.com) ([prism](tree/main/extras/prism))
|
||||
- [Sublime Text](https://www.sublimetext.com/docs/themes) ([sublime](tree/main/extras/sublime))
|
||||
- [Terminator](https://gnome-terminator.readthedocs.io/en/latest/config.html) ([terminator](tree/main/extras/terminator))
|
||||
- [Tilix](https://github.com/gnunn1/tilix) ([tilix](tree/main/extras/tilix))
|
||||
- [Tmux](https://github.com/tmux/tmux/wiki) ([tmux](tree/main/extras/tmux))
|
||||
- [WezTerm](https://wezfurlong.org/wezterm/config/) ([wezterm](tree/main/extras/wezterm))
|
||||
- [Windows Terminal](https://aka.ms/terminal-documentation) ([windows_terminal](tree/main/extras/windows_terminal))
|
||||
- [Xfce Terminal](https://docs.xfce.org/apps/terminal/advanced) ([xfceterm](tree/main/extras/xfceterm))
|
||||
- [Xresources](https://wiki.archlinux.org/title/X_resources) ([xresources](tree/main/extras/xresources))
|
||||
- [Alacritty](https://github.com/alacritty/alacritty) ([alacritty](extras/alacritty))
|
||||
- [Delta](https://github.com/dandavison/delta) ([delta](extras/delta))
|
||||
- [Fish](https://fishshell.com/docs/current/index.html) ([fish](extras/fish))
|
||||
- [Fish Themes](https://fishshell.com/docs/current/interactive.html#syntax-highlighting) ([fish_themes](extras/fish_themes))
|
||||
- [Foot](https://codeberg.org/dnkl/foot) ([foot](extras/foot))
|
||||
- [iTerm](https://iterm2.com/) ([iterm](extras/iterm))
|
||||
- [Kitty](https://sw.kovidgoyal.net/kitty/conf.html) ([kitty](extras/kitty))
|
||||
- [Lua Table for testing](https://www.lua.org) ([lua](extras/lua))
|
||||
- [Prism](https://prismjs.com) ([prism](extras/prism))
|
||||
- [Sublime Text](https://www.sublimetext.com/docs/themes) ([sublime](extras/sublime))
|
||||
- [Terminator](https://gnome-terminator.readthedocs.io/en/latest/config.html) ([terminator](extras/terminator))
|
||||
- [Tilix](https://github.com/gnunn1/tilix) ([tilix](extras/tilix))
|
||||
- [Tmux](https://github.com/tmux/tmux/wiki) ([tmux](extras/tmux))
|
||||
- [WezTerm](https://wezfurlong.org/wezterm/config/) ([wezterm](extras/wezterm))
|
||||
- [Windows Terminal](https://aka.ms/terminal-documentation) ([windows_terminal](extras/windows_terminal))
|
||||
- [Xfce Terminal](https://docs.xfce.org/apps/terminal/advanced) ([xfceterm](extras/xfceterm))
|
||||
- [Xresources](https://wiki.archlinux.org/title/X_resources) ([xresources](extras/xresources))
|
||||
<!-- extras:end -->
|
||||
|
||||
## ⚡️ Requirements
|
||||
|
||||
@@ -55,10 +55,7 @@ function M.docs()
|
||||
table.sort(names)
|
||||
for _, name in ipairs(names) do
|
||||
info = M.extras[name]
|
||||
table.insert(
|
||||
lines,
|
||||
"- [" .. info.label .. "](" .. info.url .. ") ([" .. name .. "](tree/main/extras/" .. name .. "))"
|
||||
)
|
||||
table.insert(lines, "- [" .. info.label .. "](" .. info.url .. ") ([" .. name .. "](extras/" .. name .. "))")
|
||||
end
|
||||
readme = readme:gsub(pattern, "%1\n" .. table.concat(lines, "\n") .. "\n%2")
|
||||
M.write_file(file, readme)
|
||||
|
||||
Reference in New Issue
Block a user