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

Allow makeMicrosite be run in the background #78

Open
jvican opened this issue Nov 1, 2016 · 3 comments
Open

Allow makeMicrosite be run in the background #78

jvican opened this issue Nov 1, 2016 · 3 comments

Comments

@jvican
Copy link
Contributor

jvican commented Nov 1, 2016

Running ~makeMicrosite always recompiles the site (ending up in an infinite cycle), instead of waiting for a new written update in the docs. I would like ~makeMicrosite to behave the same way ~compile does, the task is only executed if I have modified a markdown or resource file.

@tpolecat
Copy link

tpolecat commented Nov 1, 2016

FWIW tut doesn't implement this because the docs depend on code so a change in your source could in principle trigger a partial doc rebuild. I have not tried to figure out how to do this because I hate sbt, but it should be possible.

@jvican
Copy link
Contributor Author

jvican commented Nov 1, 2016

I would be happy if the watchSources for makeMicrosite include also the code. I want it not to be run infinitely.

@xerial
Copy link
Contributor

xerial commented May 2, 2017

It seems excluding the generated jekyll resources from watchSources works, for example:

// Include *.md, *.img, *.css, etc. under doc folder
watchSources := (sourceDirectory.value ** "*").filter(!_.isDirectory).get,

Currently watchSources contain the files under target/resource_managed/jekyll so while sbt-microsoft generating files, the time stamps of these files are updated and triggers makeMicrosite task again.

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

3 participants