Skip to content

Commit 5af46b0

Browse files
committed
Adjust testcases static site to the new structure. Change assets copy destination in sbt project
1 parent a287c7c commit 5af46b0

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

project/DocumentationWebsite.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ object DocumentationWebsite {
1313
): Seq[File] = {
1414

1515

16-
val contributorsTestcasesDestinationFile = Paths.get("scaladoc-testcases", "docs", "js", "contributors.js").toFile
17-
val contributorsDestinationFile = Paths.get("docs", "js", "contributors.js").toFile
16+
val contributorsTestcasesDestinationFile = Paths.get("scaladoc-testcases", "docs", "_assets", "js", "contributors.js").toFile
17+
val contributorsDestinationFile = Paths.get("docs", "_assets", "js", "contributors.js").toFile
1818
sbt.IO.copyFile(contributorsFile, contributorsTestcasesDestinationFile)
1919
sbt.IO.copyFile(contributorsFile, contributorsDestinationFile)
2020

@@ -25,8 +25,8 @@ object DocumentationWebsite {
2525
val cssCodeSnippetsSourceFile = cssSourceFileBase / "code-snippets.css"
2626
sbt.IO.copyFile(cssCodeSnippetsSourceFile, cssCodeSnippetsDesitnationFile)
2727

28-
val cssContentContributorsTestcasesDesitnationFile = Paths.get("docs", "css", "content-contributors.css").toFile
29-
val cssContentContributorsDesitnationFile = Paths.get("scaladoc-testcases", "docs", "css", "content-contributors.css").toFile
28+
val cssContentContributorsTestcasesDesitnationFile = Paths.get("docs", "_assets", "css", "content-contributors.css").toFile
29+
val cssContentContributorsDesitnationFile = Paths.get("scaladoc-testcases", "docs", "_assets", "css", "content-contributors.css").toFile
3030
val cssContentContributorsSourceFile = cssContentContributorsSourceBaseFile / "content-contributors.css"
3131
sbt.IO.copyFile(cssContentContributorsSourceFile, cssContentContributorsTestcasesDesitnationFile)
3232
sbt.IO.copyFile(cssContentContributorsSourceFile, cssContentContributorsDesitnationFile)

scaladoc-testcases/docs/sidebar.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
rootIndex: docs/index.md
1+
rootIndex: index.md
22
pages:
3-
- page: docs/docs/f1.md
4-
- page: docs/docs/f2.md
5-
- page: docs/docs/f3.md
6-
- page: docs/docs/f4.md
3+
- page: docs/f1.md
4+
- page: docs/f2.md
5+
- page: docs/f3.md
6+
- page: docs/f4.md

0 commit comments

Comments
 (0)