@@ -52,6 +52,16 @@ trait Resources(using ctx: DocContext) extends Locations, Writer:
5252 case " js" => script(`type` := " text/javascript" , src := resolveLink(dri, res), if (deferJs) Seq (defer := " true" ) else Nil )
5353 case _ => raw(" " )
5454
55+ val onlyRenderedResources : Seq [Resource ] =
56+ List (
57+ (" https://github.com/VirtusLab/Inkuire/releases/download/1.0.0-M2/inkuire.js" , " scripts/inkuire.js" ),
58+ ).map { case (url, path) =>
59+ Resource .URLToCopy (url, path)
60+ } ++
61+ List (
62+ " scripts/inkuire-worker.js"
63+ ).map(dottyRes)
64+
5565 val earlyMemberResources : Seq [Resource ] =
5666 List (
5767 " scripts/theme.js"
@@ -78,8 +88,7 @@ trait Resources(using ctx: DocContext) extends Locations, Writer:
7888 " scripts/components/Input.js" ,
7989 " scripts/components/FilterGroup.js" ,
8090 " scripts/components/Filter.js" ,
81- " scripts/searchbar.js" ,
82- " scripts/inkuire-worker.js"
91+ " scripts/searchbar.js"
8392 ).map(dottyRes)
8493
8594 val urls = List (
@@ -90,13 +99,8 @@ trait Resources(using ctx: DocContext) extends Locations, Writer:
9099 " https://cdnjs.cloudflare.com/ajax/libs/dagre-d3/0.6.1/dagre-d3.min.js" ,
91100 ).map(Resource .URL .apply)
92101
93- val urlToPathMappings = List (
94- (" https://github.com/VirtusLab/Inkuire/releases/download/1.0.0-M2/inkuire.js" , " scripts/inkuire.js" ),
95- ).map { case (url, path) =>
96- Resource .URLToCopy (url, path)
97- }
98102
99- fromResources ++ urls ++ urlToPathMappings ++ projectLogo ++ Seq (scaladocVersionFile, dynamicJsData)
103+ fromResources ++ urls ++ projectLogo ++ Seq (scaladocVersionFile, dynamicJsData)
100104
101105 val searchDataPath = " scripts/searchData.js"
102106 val memberResourcesPaths = Seq (searchDataPath) ++ memberResources.map(_.path)
0 commit comments