Skip to content

Commit

Permalink
Enable the "Edit page on GitHub" buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Feb 18, 2024
1 parent 5d60918 commit 32e993b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/make_work.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ function doit(
end
src = normpath(root, file)
dst = normpath(dstbase, relpath(root, srcbase), file)
cp(src, dst; force=true)
if endswith(file, ".md")
symlink(src, dst)
else
cp(src, dst; force=true)
end
chmod(dst, 0o644)
end
end
Expand Down Expand Up @@ -198,7 +202,6 @@ function doit(

makedocs(;
format=Documenter.HTML(;
edit_link=nothing, # TODO: make work for imported pages
prettyurls=!local_build,
collapselevel=1,
size_threshold=409600,
Expand Down

0 comments on commit 32e993b

Please sign in to comment.