From 8a554652d1324393c1f7ea2e2c0e520cb52eeb8f Mon Sep 17 00:00:00 2001 From: Alfred Wong Date: Wed, 21 Apr 2021 21:43:25 +0100 Subject: [PATCH] Fix relative paths in new emitter docs (#131) * remove prettyurls argument from `makedocs` call Enabling this option probably did more harm than good. It made locally built docs easier to navigate, but it meant that the local and remote doc builds differed in directory structure, which is confusing and difficult to work with. * Change html relative paths We need to go back one time because the html paths are relative to docs/build/emitters_new/index.html rather than docs/build/emitters_new.html, which is what the prettyurl doc build would have you believe. Fixes #129 --- docs/make.jl | 2 +- docs/src/emitters_new.md | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index de6ca46d8..15f4b3a5f 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -8,7 +8,7 @@ using OpticSim makedocs( sitename = "OpticSim.jl", format = Documenter.HTML( - prettyurls = get(ENV, "CI", nothing) == "true", + # prettyurls = get(ENV, "CI", nothing) == "true", assets = [asset("assets/logo.svg", class = :ico, islocal = true)], ), modules = [OpticSim], diff --git a/docs/src/emitters_new.md b/docs/src/emitters_new.md index 509104795..97420d768 100644 --- a/docs/src/emitters_new.md +++ b/docs/src/emitters_new.md @@ -48,8 +48,8 @@ nothing #hide ```@raw html
- - + + @@ -69,8 +69,8 @@ nothing #hide ```@raw html
- - + + @@ -90,8 +90,8 @@ nothing #hide ```@raw html
- - + + @@ -113,8 +113,8 @@ nothing #hide ```@raw html
- - + + @@ -134,8 +134,8 @@ nothing #hide ```@raw html
- - + + @@ -163,8 +163,8 @@ nothing #hide ```@raw html
- - + + @@ -188,8 +188,8 @@ nothing #hide ```@raw html
- - + + @@ -243,8 +243,8 @@ nothing #hide ```@raw html
- - + +