Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty Site or StringTemplate 'page' was not found #159

Closed
jeschkies opened this issue Apr 25, 2020 · 4 comments
Closed

Empty Site or StringTemplate 'page' was not found #159

jeschkies opened this issue Apr 25, 2020 · 4 comments

Comments

@jeschkies
Copy link

jeschkies commented Apr 25, 2020

Hi 👋

I have the following multi project setup setup:

lazy val `root` = (project in file("./"))
  .settings(
    commonSettings,
    publish / skip := true)
  .enablePlugins(ScalaUnidocPlugin, GhpagesPlugin, ParadoxSitePlugin)
  .settings(
    // Documentation
    paradoxTheme := Some(builtinParadoxTheme("generic")),
    paradox / sourceDirectory := baseDirectory.value / "docs",
    siteSubdirName in ScalaUnidoc := "api",
    addMappingsToSiteDir(mappings in (ScalaUnidoc, packageDoc), siteSubdirName in ScalaUnidoc),
    gitRemoteRepo := "[email protected]:mesosphere/usi.git"
  )
  .aggregate(...)

The Markdown files are in ./docs. When I run sbt makeSitethe dirtarget/siteonly includes the generate API documentation from unidoc and aparadox.json`. What's wrong with the setup?

However, if I put a simple Markdown file in src/main/paradox I get the following error

[error] java.lang.RuntimeException: StringTemplate 'page' was not found for 'usi/target/paradox/html/main/index.html'. Create a template or set a theme that contains one.

@jeschkies jeschkies changed the title Empty Site Empty Site or StringTemplate 'page' was not found Apr 25, 2020
@ennru
Copy link
Contributor

ennru commented Apr 25, 2020

There is something not quite right with Paradox' sourceDirectory setting lightbend/paradox#423

@jeschkies
Copy link
Author

@ennru, thanks! That solves the source issue. However, now I have this error

[error] java.lang.RuntimeException: StringTemplate 'page' was not found for '/Users/kjeschkies/src/usi/target/paradox/html/main/index.html'. Create a template or set a theme that contains one.
[error] 	at scala.sys.package$.error(package.scala:30)
[error] 	at com.lightbend.paradox.template.PageTemplate.write(PageTemplate.scala:44)
...

@jeschkies
Copy link
Author

When I define a new subproject it works. It must be something defined in commonSettings.

@jeschkies
Copy link
Author

I just removed the commonSettings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants