diff docs/make.jl @ 841:23bce17a59cb feature/setup_documenter

Implement flag to controll pretty urls
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 14 Jan 2022 09:59:41 +0100
parents 126e169bb0b7
children b4f542b4f2e4
line wrap: on
line diff
--- a/docs/make.jl	Fri Jan 14 09:49:47 2022 +0100
+++ b/docs/make.jl	Fri Jan 14 09:59:41 2022 +0100
@@ -8,9 +8,14 @@
 using Sbplib.SbpOperators
 using Sbplib.StaticDicts
 
+sitename = "Sbplib.jl"
 
-sitename = "Sbplib.jl"
-prettyurls = false
+if "--prettyurls" ∈ ARGS
+    prettyurls = true
+else
+    prettyurls = false
+end
+
 pages = [
     "index.md",
     "Submodules" => [
@@ -27,4 +32,3 @@
 
 format=Documenter.HTML(;prettyurls)
 makedocs(;sitename, pages, format)
-# TBD: Should `prettyurls` be true or false when this is deployed to a webserver?