Skip to content

Commit

Permalink
Small refactor doc gen
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo committed May 15, 2024
1 parent 9b3d636 commit 3750313
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/lua/gesture/doc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ used for background window
})

local gen_readme = function()
local f = io.open(example_path, "r")
local usage = f:read("*a")
f:close()
local usage = util.read_all(example_path)

local content = ([[
# gesture.nvim
Expand All @@ -91,8 +89,6 @@ gesture.nvim is a mouse gesture plugin for Neovim (nightly).
%s```
]]):format(usage)

local readme = io.open("README.md", "w")
readme:write(content)
readme:close()
util.write("README.md", content)
end
gen_readme()

0 comments on commit 3750313

Please sign in to comment.