Move the quarto-tiers shortcode into the theme
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- lua, scss
- Domain
- documentation
Research direction
Read _extension.yml and compare its current contributes entries with the existing quarto-tiers.lua and quarto-tiers.css in the extension. Check how Quarto resolves the shortcode when both the theme and _extensions/quarto-tiers/ copy are installed, then test a site using project: type: posit-docs. Done means the shortcode loads from the theme, existing names and configuration still work, and the precedence behavior is confirmed.
Written by the indexing model from the issue text.
Description
The tier shortcode lives in a separate extension, posit-dev/quarto-tiers. Each change to badge styles needs a release in that repo and a separate update in each doc repo that uses it. Theme updates do not include it.
The two repos are separate because quarto-tiers existed before this theme. There is no technical reason to keep them apart. A Quarto extension can contribute a project type and shortcodes from the same _extension.yml.
Current state
Five doc repos install quarto-tiers. Three of them use an old version and do not have the dark mode and color contrast fixes from v3 and v4:
| Repo | quarto-tiers version |
|---|---|
| rstudio-pro | 4.0.1 |
| partnership-docs | 4.0.1 |
| connect | 2.0.1 |
| package-manager | 2.0.2 |
| shiny-server-pro | 2.0.2 |
Proposal
- Move
quarto-tiers.luaandquarto-tiers.cssinto_extensions/posit-docs/. - Add
shortcodes: [quarto-tiers.lua]undercontributesin_extension.yml. - Keep the
tiershortcode name and thequarto-tiers:YAML key, so that existing pages and site configuration continue to work. - Test that the shortcode loads in a site that uses
project: type: posit-docs. - Release the change in a theme version.
Sites that do not use the shortcode are not affected. The shortcode does not run unless a page calls it.
Migration
This has the same problem as the page actions move in #201. Each repo in the table above has a local copy in _extensions/quarto-tiers/, and a theme update does not remove it. Someone must manually delete that directory in each repo when the repo moves to the new theme version.
Before release, confirm what happens when a site has both the theme shortcode and the old _extensions/quarto-tiers/ copy installed. If the old copy takes priority, a site that updates the theme but keeps the old directory will continue to show the old badge styles.
Related: #178 (move content-switcher styles into the theme).
- Dominant language
- SCSS
- Stars
- 6
- Forks
- 5
- Avg merge
- 8h 10m
- Merged PRs (30d)
- 8
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/product-doc-theme
-
accessibility bug CSS - Styles
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
posit-dev/product-doc-theme#216 ·
Maintainers usually reply within 1 day
-
accessibility bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
posit-dev/product-doc-theme#214 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
posit-dev/product-doc-theme#194 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
posit-dev/product-doc-theme#193 ·
Maintainers usually reply within 1 day
-
Fix WCAG AA contrast failures and brand deviations in the themePossibly taken @sarahsdao claimed this 16 days ago. Open
posit-dev/product-doc-theme#211 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in posit-dev/product-doc-theme
Similar issues
-
external integration integration-submission
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
langchain-ai/docs#8426 ·
Maintainers usually reply within 1 day
-
[Benchmark] RX 6900 XT (gfx1030): Linux rx6000 package runs Qwen4-35B-A3B Balanced, 60 tok/s decodeOpen
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 3 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
keyxmakerx/Chronicle#3048 ·
Maintainers usually reply within 1 day
-
marketing
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day