-
Notifications
You must be signed in to change notification settings - Fork 101
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
Quarto plugin #482
base: master
Are you sure you want to change the base?
Quarto plugin #482
Conversation
…new Julia engine since v1.5
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #482 +/- ##
==========================================
- Coverage 94.33% 88.13% -6.21%
==========================================
Files 24 25 +1
Lines 742 784 +42
==========================================
- Hits 700 691 -9
- Misses 42 93 +51 ☔ View full report in Codecov by Sentry. |
|
||
Arguments | ||
* `--help` - print this help and exit without rendering the documentation | ||
* `--prettyurls` – toggle the prettyurls part to true (which is otherwise only true on CI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this option is currently not realised? For the rest – one should maybe also make sure the make-jl is excusable for this to work.
But cool, that you found this idea so useful to even provide it here as a template!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeh I think you're right about the option and will either remove it or make sure it's realized. As for make.jl being executable, there's this line here and I think this is already working.
I'm going to hold on before doing more work on this due to #478 and also the discussion here #483, but thank you for the review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I did not see that line, that of course makes sure this works as a script.
This adds a new
Quarto
plugin that can be used to generate package documentation with Quarto and Documenter.jl. I've closely followed the steps outlined by @kellertuer in this blog post and also during our joint JuliaCon presentation earlier this year.Additions
src/plugins/ci.jl
(l. 79) gets aHAS_QUARTO
field to be used in templates. TheHAS_DOCUMENTER
field is adjusted.src/plugins/quarto.jl
adds the plugin, which 1) inherits its view from theReadme
andDocumenter
plugins; 2) generates aREADME.qmd
,docs/src/index.qmd
, a custom executablemake.jl
(includes steps for remote rendering) and a_quarto.yml
(configs for Quarto).templates/github/workflows/CI.yml
ensure that docs are rendered through Quarto if he plugin is used.templates/quarto/
for theREADME.qmd
,index.qmd
,_quarto.yml
andmake.jl
.All other changes are due to running
JuliaFormatter.format("src")
.Doubts and other notes
CondaPkg
and caching), because I'd expect that most users will use QuartoNotebookRunner.jl in the future.fixup
function (continuing from this stale PR) and accidentally merged some of this here initially (should be all reverted in 3910fe6)@kellertuer might you be able to have a quick look at this and see if you spot any missing pieces?