You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Quarto vignette titles are broken with quarto 1.6.x #2823
With the pre-release version of quarto the page title has a glitch, it's in a different div <header id="title-block-header" class="quarto-title-block">) instead of the previous <div class="page-header">. This causes the Source link to be placed above the title:
release version on gh-pages:
same version rendered with quarto 1.6.37:
The page-header div is still there with the logo and the source code link, but the title is missing: <h1></h1>
It's not clear from the comments whether the change in quarto-dev/quarto-cli#11224 will be permanent. Perhaps we should clarify before updating pkgdown to process the changed HTML.
I'm assuming we don't want to be supporting multiple versions of quarto, so if we update to process the new HTML, we'd need to bump the required quarto version to 1.6.33.
It's not clear from the comments whether the change in quarto-dev/quarto-cli#11224 will be permanent. Perhaps we should clarify before updating pkgdown to process the changed HTML.
should I open an issue for quarto?
I'm assuming we don't want to be supporting multiple versions of quarto, so if we update to process the new HTML, we'd need to bump the required quarto version to 1.6.33.
this might be an issue for some time since 1.6.x is still pre-release
It took me some time to understand the problem and this is indeed quarto-dev/quarto-cli#11224 having side effect on the custom processing that pkgdown is doing
Within pkgdown, quarto render is called with a custom template, that create a div structure with some information
I don't know exactly why pkgdown does this title processing with specific custom template, but this is indeed a Quarto issue in the sense that it should not probably apply this eagerly
Can we make pkgdown work either way? This is causing pkgdown to fail on CRAN and it's likely easier to submit an updated pkgdown than get CRAN to update their quarto.
Activity
banfai commentedon Nov 26, 2024
I believe it's caused by this:
quarto-dev/quarto-cli#10567
quarto-dev/quarto-cli#11224
jayhesselberth commentedon Nov 26, 2024
Quarto tests are also failing with the new release, this appears to be the same problem:
Use older quarto version so tests pass
jayhesselberth commentedon Dec 2, 2024
It's not clear from the comments whether the change in quarto-dev/quarto-cli#11224 will be permanent. Perhaps we should clarify before updating pkgdown to process the changed HTML.
I'm assuming we don't want to be supporting multiple versions of quarto, so if we update to process the new HTML, we'd need to bump the required quarto version to 1.6.33.
banfai commentedon Dec 2, 2024
should I open an issue for quarto?
this might be an issue for some time since 1.6.x is still pre-release
cderv commentedon Dec 2, 2024
It took me some time to understand the problem and this is indeed quarto-dev/quarto-cli#11224 having side effect on the custom processing that pkgdown is doing
Within pkgdown,
quarto renderis called with a custom template, that create adivstructure with some informationpkgdown/inst/quarto/template.html
Lines 25 to 48 in dfa28be
The custom template is applying which leads to this in the HTML before Quarto postprocessing
However, as the custom template does not use
title-block.htmlpartial, it will trigger the post processing introduced by PR quarto-dev/quarto-cli#11224 as if the document had no title.https://github.com/quarto-dev/quarto-cli/blob/39baf4081f184fe090974295b48d1beab32cd1e4/src/format/html/format-html-title.ts#L205
and a title block will be created anyway by this new post-processing. The
h1from the custom template is caughthttps://github.com/quarto-dev/quarto-cli/blob/39baf4081f184fe090974295b48d1beab32cd1e4/src/format/html/format-html-title.ts#L210
and the
h1that pkgdown expect will be movedhttps://github.com/quarto-dev/quarto-cli/blob/39baf4081f184fe090974295b48d1beab32cd1e4/src/format/html/format-html-title.ts#L238
I don't know exactly why pkgdown does this title processing with specific custom template, but this is indeed a Quarto issue in the sense that it should not probably apply this eagerly
@banfai
I'll do it
Quarto 1.6 is the latest release since last week.
banfai commentedon Dec 2, 2024
thanks!
oops, I missed that
hadley commentedon Dec 5, 2024
Can we make pkgdown work either way? This is causing pkgdown to fail on CRAN and it's likely easier to submit an updated pkgdown than get CRAN to update their quarto.
jayhesselberth commentedon Dec 5, 2024
@hadley We could fix this to work with quarto 1.6, but may then have to revert if this is "fixed" on the quarto CLI side.
And if we want to fix, should we be supporting quarto 1.5 (where this test passes) as well as quarto 1.6?
jayhesselberth commentedon Dec 5, 2024
I am also not clear what specific quarto version that CRAN is installing in their systems for checks. Is that documented somewhere?
jayhesselberth commentedon Dec 6, 2024
Quarto devs are planning for a quick fix quarto-dev/quarto-cli#11224 (comment) so maybe we sit tight.
cderv commentedon Dec 6, 2024
Yes we have a fix that should sove the problem for pkgdown. We'll do a patch release.
Though I am like you and I don't know for sure if CRAN update Quarto at each stable release we do
cderv commentedon Dec 10, 2024
FYI we merge a fix in Quarto, including for a patch release. So next 1.6 and 1.7 will not have the problem that impact pkgdown.
jayhesselberth commentedon Dec 10, 2024
Thanks @cderv for the quick fix! Will leave this open until we confirm it's fixed in the next patch release of quarto.
jayhesselberth commentedon Jan 3, 2025
This should be fixed now with the release of 1.6.40, see #2828
Use current quarto version
cderv commentedon Jan 6, 2025
Glad it works ok now. I don't know if CRAN will update their version, but if they do follow release then they may do it. We'll see.