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
Dependency problems with XSL filter and xsl:include #924
Comments
Nanoc indeed currently doesn’t handle dependencies Marking as a bug, although it’s arguably perhaps a lacking feature. |
As a workaround, you can delete the |
Ohh, I got this wrong. The problem is that there is not even a dependency from the item on the layout. A fix is coming up. |
#996 has a fix for this issue. |
Ack, nevermind—I’ve discovered a related issue, but the |
Make DocumentViewMixin#raw_content generate dependency
Accidentally automatically closed via a Git commit, sorry! |
This issue is still relevant, but I believe that there is no way to fix this in a nice way. I have two ideas:
A proper solution might not be possible with Nokogiri (Nanoc would have to be able to generate the dependency graph of |
I have a fix in #1127. This fix marks the The fix will be in Nanoc 4.7.1. |
Fixing this also closed the last known open issue in Nanoc! |
Hi,
When using an XSL layout, nanoc does not seem to recognize included stylesheets as dependencies, and will not rebuild output files when the included stylesheets change.
I'd be happy with listing dependencies manually but as far as I can tell there is no way to do this; actually, I can't find anything in the documentation about how nanoc decides whether or not to rebuild a particular output file.
Attached example site. Build the site with nanoc, which generates output/index.xhtml. Then edit layouts/snippet.xsl (for example, change the page title). Expected behaviour is that rebuilding the site will update output/index.xhtml, but this does not happen.
Cheers,
Nick
xsltdemo.tar.gz: https://github.com/nanoc/nanoc/files/397694/xsltdemo.tar.gz
The text was updated successfully, but these errors were encountered: