-
Notifications
You must be signed in to change notification settings - Fork 343
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
Possible features in minimal
option, and a working example
#9305
Comments
minimal
option, and a working exampleminimal
option, and a working example
(In the future, please do make sure to fill out the entirety of the bug issue. We need to know, eg, which OS and version of Quarto you're running. That makes a difference)
I think we have an open issue to better document the features that are enabled and disabled with
Unfortunately, CSS rules are not easily factored out in a way that would let us selectively include only the bits of CSS that are needed to enable each feature independently of each other. The behavior might be unintuitive for you, but this is working as intended. The goal of We should improve our docs to make this clear. |
@cscheid was it this one?
At least documenting that |
I didn't remember that we decided to close it, but I agree with the reasoning for closing, so no action required there.
I also agree with this. |
Yes sorry, I have edited my initial report, added data in "Your Environment" section. |
Thanks for your answers. Quarto could be a great tool for generating low-tech static websites (example). Unfortunately, using Bootstrap produces a 460 KB file containing a lot of useless stuff (just in case I guess). By using The first load of a default Quarto page is ~1 MB. I'd just like to try to reduce this by 2 or 5 or even 10. I fully understand that many of the features need their corresponding CSS and/or JS stuff. As a first step, I think I'll try to use PurgeCSS to see if there are significant gains. (I'm sorry if this is off-topic, I'm going to switch to the "Discussions".) |
Great project !
Yes please open a discussion, we can then use it to exchange on your work if you have any question. And it will be a good place to feature your work on this. You probably need to experiment, but you can probably make a good custom format (https://quarto.org/docs/extensions/formats.html) by opting out Bootstrap and most of internal quarto stuff, even provide your own template for minimal rendering, and add feature you want using external low size JS tooling (Example for tabset feature without Bootstrap https://yihui.org/en/2023/10/section-tabsets/, or code copy button https://yihui.org/en/2023/09/copy-button/)
BTW if you only want bootstrap out, you can change the Some feature depending on bootstrap won't work either. Hope it helps |
Bug description
(This is my first feedback, so I want to start sharing that I find Quarto really awesome.)
In the documentation it is said that using the
minimal
option, When specifying minimal: true you can still selectively re-enable features you do want, for example:But:
code-copy: true
does not work well as the button is created by a CSS class (class="code-copy-button"
) and not by a regular UTF-8 char (such as 📋): the button appears very small, without any char, and it's very difficult to understand this is a button and its usageSteps to reproduce
Create a new .qmd document and add the following YAML plus some code. Eg.
Then render it.
Expected behavior
I would expect:
copy
buttonActual behavior
Your environment
Quarto 1.4.553
IDE: RStudio 2023.12.1 Build 402
OS: Garuda Linux (Arch based)
Quarto check output
The text was updated successfully, but these errors were encountered: