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

Remove global cache for templates to allow changes #108

Merged
merged 1 commit into from
May 9, 2017

Conversation

pvlugter
Copy link
Member

@pvlugter pvlugter commented May 1, 2017

Having templates cached globally means that the template cannot be changed and the docs rebuilt in the same sbt process. So to change the template and rebuild, we need to keep restarting sbt / running in batch mode. Rather than invalidate the cache, I've just removed it completely. StringTemplate already provides caching for the template group, as far as I know. Also move the default template name to an sbt setting.

Also add an sbt-test that makes some changes to the template (and starts by overriding the generic template). This test will fail with the cached templates, without these changes.

Related issues: #91 and #101.

@pvlugter pvlugter force-pushed the template-changes branch from ec309c8 to aad0a7b Compare May 8, 2017 21:59
@pvlugter
Copy link
Member Author

pvlugter commented May 8, 2017

AppVeyor test is failing with some kind of encoding difference in a file that wasn't touched in this PR?

<title>A ? Paradox Test</title> vs <title>A � Paradox Test</title>.

@eed3si9n
Copy link
Contributor

eed3si9n commented May 8, 2017

Sounds related to two of the PR that I just mentioned in https://github.com/lightbend/paradox/releases/tag/v0.2.10.

@eed3si9n
Copy link
Contributor

eed3si9n commented May 8, 2017

Opened #111

@eed3si9n
Copy link
Contributor

eed3si9n commented May 8, 2017

Fixed it in #112

@pvlugter pvlugter force-pushed the template-changes branch from aad0a7b to 245c654 Compare May 8, 2017 22:59
@pvlugter
Copy link
Member Author

pvlugter commented May 8, 2017

Cool. Thanks!

@pvlugter pvlugter force-pushed the template-changes branch 2 times, most recently from 819abf0 to 4865682 Compare May 8, 2017 23:13
@pvlugter
Copy link
Member Author

pvlugter commented May 8, 2017

I also bumped master to a snapshot version again for the sbt tests.

@pvlugter pvlugter force-pushed the template-changes branch from 4865682 to 5b23bec Compare May 8, 2017 23:29
@eed3si9n eed3si9n merged commit 59e3906 into lightbend:master May 9, 2017
@pvlugter pvlugter deleted the template-changes branch May 9, 2017 02:12
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

Successfully merging this pull request may close these issues.

2 participants