-
Notifications
You must be signed in to change notification settings - Fork 342
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
skeptic setup #148
skeptic setup #148
Conversation
in ci:
|
Build failure is probably due to budziq/rust-skeptic#104 and our good old This means that we can already test all code snippets that don't use To be able to document everything we could either:
|
Added a few more tests. Writing the skeptic template is not fun but not hard either Report is ok.
Failure (I added an error):
It may get hard to identify source of failure if there are a lot. |
So I think in summary:
I think if we can solve (3) and (4) skeptic is probably "worth it" from my perspective. If we can use the same 1-2 templates for all examples (ex: by supporting "hidden code" in code blocks that skeptic executes but zola hides), that solves (4). Idk the best way to handle (3) short of committing to never use native dependencies (which feels hard to me). I wish skeptic supported "crate templates" that use cargo to compile the examples. Now that you have hands on experience, what would you recommend (both in the short and long term)? In the short term I'm sort of leaning toward "add anchor support to |
I'm very biased towards That said, including a block from a file that can be built by itself will always cover more cases. Snippets in doc are nice for small code snippets, but having to keep two different build systems to handle both is probably not a good idea. Having to write the template negates the simplicity of just writing the snippet in the It could get better if we get both Zola and skeptic to handle hidden lines (or maybe doable only in Zola: code would be close to what existing Short term, |
opened a discussion on Zola for hiding lines https://zola.discourse.group/t/hide-lines-from-code-block/898 |
getzola/zola#1453 has been merged which would allow us to use less templates with skeptic in next Zola version |
This should be revisited without skeptic:
|
Closing in favor of #150. |
integration with skeptic to validate book!
Everything for the integration seems to work fine (Zola not bothered by skeptic annotations, skeptic loading templates). Two notes:
rust
, notrs
that said, it fails on my computer because:
not sure how to move forward on that