Skip to content
Snippets Groups Projects
Unverified Commit 7b8c6095 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil :bicyclist:
Browse files

also remove link from the contrib guide

parent c03e6794
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ index_md = replace(index_md, "<!--insert_ack_logos-->\n" => ack_logos)
open(f -> write(f, index_md), joinpath(@__DIR__, "src", "index.md"), "w")
# copy the contribution guide
cp(joinpath("..", ".github", "CONTRIBUTING.md"), joinpath("src", "howToContribute.md"))
cp(joinpath("..", ".github", "CONTRIBUTING.md"), joinpath("src", "howToContribute.md"), force=true)
# build the docs
makedocs(
......@@ -74,10 +74,18 @@ makedocs(
],
)
# replace the link for index.md
index_html = open(f -> read(f, String), joinpath(@__DIR__, "build", "index.html"))
index_html = replace(index_html, "/docs/src/index.md" => "")
open(f -> write(f, index_html), joinpath(@__DIR__, "build", "index.html"), "w")
# replace the "edit this" links for the generated documentation
function replace_in_doc(filename, replacement)
contents = open(f -> read(f, String), joinpath(@__DIR__, "build", filename))
contents = replace(contents, replacement)
open(f -> write(f, contents), joinpath(@__DIR__, "build", filename), "w")
end
replace_in_doc("index.html",
"blob/master/docs/src/index.md" => "")
replace_in_doc(joinpath("howToContribute", "index.html"),
"blob/master/docs/src/howToContribute.md" => "")
deploydocs(
repo = "github.com/$(ENV["TRAVIS_REPO_SLUG"]).git",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment