-
Notifications
You must be signed in to change notification settings - Fork 1
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
Automation #2
Comments
Have a render toc-less version that doesn't have TOC. We need both copies (so we can put the iframe in coursera/leanpub). |
Easiest way to remove TOC and sidebar is to add this field inside
|
@cansavvy what is the rendering approach that the original OTTR_Template takes? From https://quarto.org/docs/publishing/ci.html#rendering-for-ci The first option places minimal requirements on software that needs to be present on the CI server, the second option seems really simple to do with Quarto's ability to freeze computational output, and the third option doesn't seem feasible since each user of ottr will have different dependencies and we can't capture all these dependencies on a CI server. I just want to stay consistent with what the original OTTR does. |
OTTR renders everything through CI - that's what we use GitHub actions for. Folks can render it locally but honestly it's unnecessary and just makes things muddier. |
So, does the second option, Local Execution with CI Rendering, work? |
Unlike what is described here we don't use renv to handle our dependencies we use docker to handle our computing environments so everything is pretty tightly enforced. |
Are you saying that we can go with the third option but, instead of renv, we can use Docker to handle dependencies? |
I'm a bit confused by your question. Most of the automation you'll need as far as basic quarto rendering should be ready to go by just copying what I have set up for quarto rendering here: https://github.com/fhdsl/OTTR_Quarto/blob/766b7e6ed3166216e611724124354c2b7feacce2/.github/workflows/render-site.yml#L56 But if this doesn't clear things up we should chat so we can figure out what's needed. |
Quarto has custom GitHub Actions here: https://github.com/quarto-dev/quarto-actions that I want to use. I'll setup a time to chat and talk over things. |
Sounds good! Let's chat. Meanwhile, what features from the quarto actions are what you want to use with OTTR? |
I was thinking of these two actions:
|
Can you describe what these actions are doing that makes them something we want to use with OTTR? |
@howardbaek We figured out a more concrete (but still somewhat amorphous) strategy on our call. Chunk 1) Go to OTTR_template and make render_type a new option in the config_automation.yml as well as the render-all.yml file. File a pull request here. We want the options to be "quarto" or "rmd" at this point. See file I sent you with the highlighted areas of the render-all.yml file that need changing. Chunk 2) We'll need to have these changes carried through to the ottrpal package in the |
Here's that branch @howardbaek https://github.com/jhudsl/ottrpal/tree/cansavvy/quarto Feel free to bug me (or schedule time with me) about any of this that isn't clear because I know we had to wrap up our call before we really got it figured out. |
This has turned out to be a trickier thing than I originally thought! |
Thank you for documenting this. I will bug you if I have a question! |
I found a very simple way to get rid of TOC and the sidebar (the bar on the left):
|
Love it! Very clean!! |
@howardbaek To start getting this repo truly OTTRized we'll need to transfer the files from https://github.com/fhdsl/OTTR_Quarto/tree/main/.github to here.
Then we'll need to go through the workflows and adapt the steps but before I can help you do that I have two questions:
quarto render
re-render this site or would it be a different command?The text was updated successfully, but these errors were encountered: