-
Notifications
You must be signed in to change notification settings - Fork 9
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
Adding quarto extensions? #253
Comments
Hi, I don't think it's possible for now but @vincentarelbundock is the one who added support for the Quarto website (and uses it more than me) so he might have more info. Just out of curiosity, why do you want to modify the intermediary qmd files? |
@etiennebacher thanks for the quick reply! I'm interested in being able to stylize and modify different parts of the Quarto document before the final rendering. To add the styling, I need to register certain markup values that can be interpreted by a Quarto extension. I'm specifically interested in being able to have a "tabbed" section between rendered output and interactive output under the P.S. Great to know that it was @vincentarelbundock who added it and is even using it for the famed |
Hi @coatless What you could try is to circumvent the altdoc automatic man creation altogether:
This is obviously more "manual", but the hard part is to convert Rd to qmd anyway, and that part is automated. The rest is relatively trivial. |
@vincentarelbundock thanks for the quick feedback. I'll try to work on something this weekend or early next week. If I can achieve what I set out to, would there be any desire to incorporate it as a feature into the package? |
Yeah, I think that might be useful. Not sure what a clean and general user interface would be. (With new features, I always try to think "could solving my one specific problem help me do other things?") Once you know what is involved, feel free to post again and make a proposal. Ultimately it'll be @etiennebacher 's call, of course. (Warning: I can review a PR, but I don't think either me or Etienne will have much---if any---time to write actual code.) |
@vincentarelbundock awesome! I should clarify: I'm not looking for any coding support; more of a home for the feature once I get it working. 😄 |
The thing I want to avoid is adding code that could have side effects on other websites (I'm already spending way too much time on the docs of
Then hosting it in the I'm curious to see what this will look like, feel free to add a link here when you have something working |
@coatless you can use a Quarto
|
An update of sorts a bit later than next weekend ;) First, thanks @kylebutts for mentioning the From there, I installed the extensions I needed to the To register the extensions and the
Lastly, I needed to modified the GitHub Action worker to include a second part... But, overall, I'm really happy with the outcome! Source: https://github.com/coatless-r-n-d/quarto-webr-in-altdoc Live Demo: https://rd.thecoatlessprofessor.com/quarto-webr-in-altdoc/man/in_webr.html And a screenshot in case the live demo goes down while I'm still toying around 😉 |
That looks good, nice job! Is this something you would see integrated in the package? I'm thinking it might be easier to write a vignette on this so that we don't make the internals more complex. Small aside: it looks like the native pipe doesn't work across lines, e.g: mtcars |> arrange(drat) works but not mtcars |>
arrange(drat) No clue if this is due to |
@etiennebacher wrote a brief vignette on the repo itself. I'd like to tweak at least the line I highlighted since it shouldn't be setting things with rmarkdown style options. re: are you on windows? we've had odd eol issues. or were you trying cntrl + enter instead of shift + enter? (cntrl + enter sends only the first line; whereas shift+ enter sends the code cell.) We can save this story for another day. |
Ah I see, doing shift + enter works indeed, thanks! |
👋 Hi
I'm interested in having
altdocs
generate a Quarto website that uses a few Quarto extensions.After reading through the documentation on customization, I'm under the impression that any resource in
altdoc
will be copied entirely to_quarto
before the website is rendered. So, if we placealtdocs/_extensions
, then any extension will be copied into_quarto
for the render phase.What I'm unsure about is whether I can write a script that modifies an intermediary generated when going from
Rd
toQmd
ormd
. Is this possible?The text was updated successfully, but these errors were encountered: