This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- see if the file exists | |
function file_exists(file) | |
local f = io.open(file, "rb") | |
if f then f:close() end | |
return f ~= nil | |
end | |
-- 1. Replaces .md with .html | |
-- 2. Replaces absolute paths with relative ones | |
-- 3. Replaces folder links with links to their index / readme |