Skip to content
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

DM-41917: Improvements to the technote UI design #203

Merged
merged 13 commits into from
Dec 5, 2023
Merged

Conversation

jonathansick
Copy link
Member

@jonathansick jonathansick commented Dec 1, 2023

  • Adopt the Source Sans 3 variable font (and ship it with technotes) to match branding also provide flexibility in typography. For example, the headings now use my more weights to reflect the heading hierarchy.
  • Include links to the LTD editions dashboard
  • Fix extra spaces in the author listing
  • Improve typography on mobile (make section titles more compact)
  • Style prompt directives to look like code blocks

This provides some design improvements for technotes.
Add a change edition link to the source sidebar; add a custom source
sidebar component to do so.
Make both the version and date updated link to other versions. I hope
that it's implied that a link on information related to a version will
let you find other versions; but we'll find out through user feedback if
this proves not to be clear.
The variable font (in .ttf.woff2 format) is obtained from
https://github.com/adobe-fonts/source-sans/tree/release/WOFF2/VF

These are version 3.052

Webpack takes responsibility for loading the webfont and then ensuring
that the CSS points to the right URL for it. In the course of doing
this, it also renames the font assets with a hash. To accomodate this,
I've added added extend_static_paths_with_asset_extension to the config
utilities functions. This helper function lets us glob the paths in
assets/ with a matching extension. This is needed because webpack
generates hashed filenames for the webfont assets.

Also, to ensure the relative paths work I've also changed to webpack
settings so that the rubin-technote.css is output to the root of
assets/, which is where webpack also deposits the font files.
This lets us make the title slightly bold. And also let the headings get
bolder as their size becomes smaller.
- Use a 600 weight for the section headings to give them a subtle
  distinction from regular text; also turn into uppercase
- Increase weight of the version and date links in the article header,
  also to provide slight emphasis against the labels.
These take styles that are slightly different than code blocks.
@jonathansick jonathansick merged commit 995d627 into main Dec 5, 2023
@jonathansick jonathansick deleted the tickets/DM-41917 branch December 5, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant