@@ -515,7 +515,7 @@ end end
515515 end
516516 expected_markdown = """
517517 ```@meta
518- EditURL = "https://github.com/fredrikekre/Literate.jl/blob/master/test/ $( basename (sandbox)) /inputfile.jl"
518+ EditURL = ".. /inputfile.jl"
519519 ```
520520
521521 # [Example](@id example-id)
@@ -645,7 +645,7 @@ end end
645645 @test occursin (" Link to repo root: https://github.com/fredrikekre/Literate.jl/blob/master/file.jl" , markdown)
646646 @test occursin (" Link to nbviewer: https://nbviewer.jupyter.org/github/fredrikekre/Literate.jl/blob/gh-pages/previews/PR42/file.jl" , markdown)
647647 @test occursin (" Link to binder: https://mybinder.org/v2/gh/fredrikekre/Literate.jl/gh-pages?filepath=previews/PR42/file.jl" , markdown)
648- @test occursin (" EditURL = \" https://github.com/fredrikekre/Literate.jl/blob/master/test/ $( basename (sandbox)) /inputfile.jl\" " , markdown)
648+ @test occursin (" EditURL = \" .. /inputfile.jl\" " , markdown)
649649
650650 # Travis with no tag -> dev directory
651651 withenv (TRAVIS_ENV... ,
@@ -656,7 +656,7 @@ end end
656656 @test occursin (" Link to repo root: https://github.com/fredrikekre/Literate.jl/blob/master/file.jl" , markdown)
657657 @test occursin (" Link to nbviewer: https://nbviewer.jupyter.org/github/fredrikekre/Literate.jl/blob/gh-pages/dev/file.jl" , markdown)
658658 @test occursin (" Link to binder: https://mybinder.org/v2/gh/fredrikekre/Literate.jl/gh-pages?filepath=dev/file.jl" , markdown)
659- @test occursin (" EditURL = \" https://github.com/fredrikekre/Literate.jl/blob/master/test/ $( basename (sandbox)) /inputfile.jl\" " , markdown)
659+ @test occursin (" EditURL = \" .. /inputfile.jl\" " , markdown)
660660
661661 # GitHub Actions with a tag
662662 withenv (ACTIONS_ENV... ) do
@@ -666,7 +666,7 @@ end end
666666 @test occursin (" Link to repo root: https://github.com/fredrikekre/Literate.jl/blob/master/file.jl" , markdown)
667667 @test occursin (" Link to nbviewer: https://nbviewer.jupyter.org/github/fredrikekre/Literate.jl/blob/gh-pages/v1.2.0/file.jl" , markdown)
668668 @test occursin (" Link to binder: https://mybinder.org/v2/gh/fredrikekre/Literate.jl/gh-pages?filepath=v1.2.0/file.jl" , markdown)
669- @test occursin (" EditURL = \" https://github.com/fredrikekre/Literate.jl/blob/master/test/ $( basename (sandbox)) /inputfile.jl\" " , markdown)
669+ @test occursin (" EditURL = \" .. /inputfile.jl\" " , markdown)
670670
671671 # GitHub Actions with PR preview build
672672 withenv (ACTIONS_ENV... ,
@@ -678,7 +678,7 @@ end end
678678 @test occursin (" Link to repo root: https://github.com/fredrikekre/Literate.jl/blob/master/file.jl" , markdown)
679679 @test occursin (" Link to nbviewer: https://nbviewer.jupyter.org/github/fredrikekre/Literate.jl/blob/gh-pages/previews/PR42/file.jl" , markdown)
680680 @test occursin (" Link to binder: https://mybinder.org/v2/gh/fredrikekre/Literate.jl/gh-pages?filepath=previews/PR42/file.jl" , markdown)
681- @test occursin (" EditURL = \" https://github.com/fredrikekre/Literate.jl/blob/master/test/ $( basename (sandbox)) /inputfile.jl\" " , markdown)
681+ @test occursin (" EditURL = \" .. /inputfile.jl\" " , markdown)
682682
683683 # GitHub Actions without a tag -> dev directory
684684 withenv (ACTIONS_ENV... ,
@@ -689,7 +689,7 @@ end end
689689 @test occursin (" Link to repo root: https://github.com/fredrikekre/Literate.jl/blob/master/file.jl" , markdown)
690690 @test occursin (" Link to nbviewer: https://nbviewer.jupyter.org/github/fredrikekre/Literate.jl/blob/gh-pages/dev/file.jl" , markdown)
691691 @test occursin (" Link to binder: https://mybinder.org/v2/gh/fredrikekre/Literate.jl/gh-pages?filepath=dev/file.jl" , markdown)
692- @test occursin (" EditURL = \" https://github.com/fredrikekre/Literate.jl/blob/master/test/ $( basename (sandbox)) /inputfile.jl\" " , markdown)
692+ @test occursin (" EditURL = \" .. /inputfile.jl\" " , markdown)
693693
694694 # GitLab CI with GitLab Pages
695695 withenv (GITLAB_ENV... ) do
@@ -699,7 +699,7 @@ end end
699699 @test occursin (" Link to repo root: https://gitlab.com/fredrikekre/Literate.jl/blob/master/file.jl" , markdown)
700700 @test occursin (" Link to nbviewer: https://nbviewer.jupyter.org/urls/fredrikekre.gitlab.io/Literate.jl/file.jl" , markdown)
701701 @test_broken occursin (" Link to binder: https://mybinder.org/v2/gh/fredrikekre/Literate.jl/gh-pages?filepath=dev/file.jl" , markdown)
702- @test occursin (" EditURL = \" https://gitlab.com/fredrikekre/Literate.jl/blob/master/test/ $( basename (sandbox)) /inputfile.jl\" " , markdown)
702+ @test occursin (" EditURL = \" .. /inputfile.jl\" " , markdown)
703703
704704 # building under DocumentationGenerator.jl
705705 withenv (" DOCUMENTATIONGENERATOR" => " true" ,
0 commit comments