Skip to content

Commit

Permalink
CSS heading/dl tweaks for the reference index (#2608)
Browse files Browse the repository at this point in the history
Attempting to make the each section feel more like a cohesive "block"
  • Loading branch information
hadley authored May 30, 2024
1 parent 2e0b212 commit 11e1a8f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 15 deletions.
13 changes: 10 additions & 3 deletions inst/BS5/assets/pkgdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,16 @@ body {
}

// spacing tweaks
dd {
padding-left: 1.5rem;
}

// Use an indent for defintions rather than horitzonal space
dl {margin-bottom: 0;}
dd {padding-left: 1.5rem; margin-bottom: 0.25rem}

// Use margins rather than size to distinguish headings
h2, .h2 { font-size: 1.75rem; margin-top: 1.5rem;}
h3, .h3 { font-size: 1.25rem; margin-top: 1rem; font-weight: bold;}
h4, .h4 { font-size: 1.1rem; font-weight: bold;}
h5, .h5 { font-size: 1rem; font-weight: bold;}

summary {
margin-bottom: 0.5rem;
Expand Down
32 changes: 20 additions & 12 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,32 +52,40 @@ articles:

reference:
- title: Build
desc: Build a complete site or one of its components.

- subtitle: Build the complete site
contents:
- build_site
- clean_site
- preview_site
- pkgdown_sitrep

- subtitle: Build part of a site
desc: These functions are useful for rapid iteration when you're working on a
specific part of your site.
contents:
- starts_with("build_")
- -build_site
- -build_site_github_pages
- init_site
- preview_site
- pkgdown_sitrep

- title: Deployment
- subtitle: Customisation
contents:
- starts_with("deploy_")
- build_site_github_pages
- check_pkgdown
- template_navbar

- title: For expert use

- title: Templates
- subtitle: Deployment
contents:
- template_navbar
- render_page
- starts_with("deploy_")
- build_site_github_pages

- title: Helpers
- subtitle: Other helpers
contents:
- clean_site
- rd2html
- as_pkgdown
- in_pkgdown
- render_page

- title: Regression tests
contents:
Expand Down

0 comments on commit 11e1a8f

Please sign in to comment.