sbt / sbt-ghpages

git, site and ghpages support for sbt projects.
Other
91 stars 20 forks source link

Path fonts/assets/specimen is ignored during copy to staging area #44

Open Synesso opened 6 years ago

Synesso commented 6 years ago

For https://github.com/Synesso/scala-stellar-sdk/tree/c5d4d1983d46c93c035ef34f69580f3a31a6699a

The paradox target creates a functional site, including font assets.

But the ghpagesPushSite target will ignore the specimen subdirectory within assets/fonts.

build.sbt declares siteSourceDirectory := target.value / "paradox" / "site" / "main"

After paradox target, files are present:

jem@Jems-MacBook-Pro ~/projects/personal/scala-stellar-sdk (master) 良 sbt clean paradox
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from /Users/jem/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /Users/jem/projects/personal/scala-stellar-sdk/project
[info] Loading settings from build.sbt ...
[info] Set current project to scala-stellar-sdk (in build file:/Users/jem/projects/personal/scala-stellar-sdk/)
[success] Total time: 0 s, completed 09/09/2018 2:46:44 PM
[info] Updating ...
[info] Done updating.
[success] Total time: 2 s, completed 09/09/2018 2:46:47 PM
[INFO] [09/09/2018 14:46:47.091] [Thread-8] [CoordinatedShutdown(akka://sbt-web)] Starting coordinated shutdown from JVM shutdown hook
jem@Jems-MacBook-Pro ~/projects/personal/scala-stellar-sdk (master) 良 find target/paradox/site/main/assets/fonts/
target/paradox/site/main/assets/fonts/
target/paradox/site/main/assets/fonts//material-icons.css
target/paradox/site/main/assets/fonts//font-awesome.css
target/paradox/site/main/assets/fonts//specimen
target/paradox/site/main/assets/fonts//specimen/MaterialIcons-Regular.woff2
target/paradox/site/main/assets/fonts//specimen/FontAwesome.woff
target/paradox/site/main/assets/fonts//specimen/FontAwesome.ttf
target/paradox/site/main/assets/fonts//specimen/FontAwesome.woff2
target/paradox/site/main/assets/fonts//specimen/MaterialIcons-Regular.woff
target/paradox/site/main/assets/fonts//specimen/MaterialIcons-Regular.ttf

After ghpagesPushSite target, the staging area does not have the specimen folder. Nor does the live site.

jem@Jems-MacBook-Pro ~/projects/personal/scala-stellar-sdk (master) 良 sbt ghpagesPushSite
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from /Users/jem/.sbt/1.0/plugins
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /Users/jem/projects/personal/scala-stellar-sdk/project
[info] Loading settings from build.sbt ...
[info] Set current project to scala-stellar-sdk (in build file:/Users/jem/projects/personal/scala-stellar-sdk/)
[info] From github.com:synesso/scala-stellar-sdk
[info]    ac3dda4..c5d4d19  master     -> origin/master
[info] Already up to date.
[info] rm '.nojekyll'
[info] rm 'api/index.html'
[info] rm 'api/index.js'

...

[info] rm 'api/stellar/sdk/resp/TxnFailureDeserializer$.html'
[info] rm 'api/stellar/sdk/resp/index.html'
[info] rm 'assets/fonts/font-awesome.css'
[info] rm 'assets/fonts/material-icons.css'
[info] rm 'assets/images/favicon.png'
[info] rm 'assets/javascripts/application.583bbe55.js'
[info] rm 'assets/javascripts/modernizr.1aa3b519.js'
[info] rm 'assets/javascripts/paradox-material-theme.js'
[info] rm 'assets/stylesheets/application-palette.22915126.css'
[info] rm 'assets/stylesheets/application.451f80e5.css'
[info] rm 'assets/stylesheets/paradox-material-theme.css'
[info] rm 'index.html'
[info] rm 'lib/material__tabs/dist/mdc.tabs.min.css'
[info] rm 'lib/prettify/lang-scala.js'
[info] rm 'lib/prettify/prettify.css'
[info] rm 'lib/prettify/prettify.js'
[info] rm 'queries.html'
[info] rm 'sources.html'
[info] rm 'transacting.html'
[info] [gh-pages 78bd7f8] updated site
[info]  4 files changed, 43 insertions(+), 43 deletions(-)
[info] To github.com:synesso/scala-stellar-sdk.git
[info]    56a3577..78bd7f8  gh-pages -> gh-pages
[success] Total time: 11 s, completed 09/09/2018 2:48:18 PM
sake92 commented 5 years ago

Tracking which files are copied leads to this setting here: includeFilter in makeSite := "*.html" | "*.css" | "*.png" | "*.jpg" | "*.gif" | "*.js" | "*.swf",

This solves it: includeFilter in makeSite := "*"