diff --git a/DocGen4/Output.lean b/DocGen4/Output.lean index 5483cfe..f0d58bd 100644 --- a/DocGen4/Output.lean +++ b/DocGen4/Output.lean @@ -118,8 +118,6 @@ def htmlOutput (result : AnalyzerResult) (ws : Lake.Workspace) (leanHash: String FS.writeFile declarationDataPath json.compress FS.writeFile (basePath / "declaration-data.timestamp") <| toString (←declarationDataPath.metadata).modified.sec - let root := Id.run <| ReaderT.run (getRoot) config - FS.writeFile (basePath / "site-root.js") (siteRootJs.replace "{siteRoot}" root) FS.writeFile (basePath / "declaration-data.js") declarationDataCenterJs FS.writeFile (basePath / "nav.js") navJs FS.writeFile (basePath / "find" / "find.js") findJs diff --git a/DocGen4/Output/Base.lean b/DocGen4/Output/Base.lean index 2bae54a..60923d2 100644 --- a/DocGen4/Output/Base.lean +++ b/DocGen4/Output/Base.lean @@ -52,7 +52,6 @@ def moduleNameToDirectory (basePath : FilePath) (n : Name) : FilePath := section Static def styleCss : String := include_str "../../static/style.css" - def siteRootJs : String := include_str "../../static/site-root.js" def declarationDataCenterJs : String := include_str "../../static/declaration-data.js" def navJs : String := include_str "../../static/nav.js" def howAboutJs : String := include_str "../../static/how-about.js" diff --git a/DocGen4/Output/Template.lean b/DocGen4/Output/Template.lean index 05390fe..c34051d 100644 --- a/DocGen4/Output/Template.lean +++ b/DocGen4/Output/Template.lean @@ -17,7 +17,7 @@ def baseHtmlArray (title : String) (site : Array Html) : HtmlM Html := do {title} - + @@ -29,13 +29,14 @@ def baseHtmlArray (title : String) (site : Array Html) : HtmlM Html := do - + + - + @@ -52,7 +53,7 @@ def baseHtmlArray (title : String) (site : Array Html) : HtmlM Html := do [site] - + {←navbar} diff --git a/static/declaration-data.js b/static/declaration-data.js index 2b778d5..ad84854 100644 --- a/static/declaration-data.js +++ b/static/declaration-data.js @@ -4,8 +4,6 @@ * Please see {@link DeclarationDataCenter} for more information. */ -import { SITE_ROOT } from "./site-root.js"; - const CACHE_DB_NAME = "declaration-data"; const CACHE_DB_VERSION = 1; diff --git a/static/find/find.js b/static/find/find.js index fbb9ca7..00e25ed 100644 --- a/static/find/find.js +++ b/static/find/find.js @@ -15,7 +15,6 @@ * fallback to the `#doc` view. */ -import { SITE_ROOT } from "../site-root.js"; import { DeclarationDataCenter } from "../declaration-data.js"; /**