Skip to content

Update Docusaurus and Web Docs Styling + Workflow Fix #65

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

Merged
merged 10 commits into from
Mar 19, 2024
Merged

Conversation

alexjhawk
Copy link
Collaborator

No description provided.

Update the web docs font to match those
expected by the HMS communication guide
section on web design. This includes a
switch to 'Calibri' for the regular/body
font, and 'Lato' as the heading font.

HMS' own website uses a font called
Industry Book, but this is not publicly
accessible, and the HMS communication
guide acknowleges this and recommends
'Lato' as the first alternative.
Changed the primary color of the web docs to
'HMS Blue' (#043D5D). To best contrast in dark
mode, the primary color in dark mode is changed
to 'Accent Blue' (#1268B3).

There is no clear color palette for the theme
light/lighter/lightest options, so those values
have been set to 'HMS Light Grey' (#EFF0F1). The
theme dark/darker/darkest palette has been aligned
with dark as 'Accent Blue' (#1268B3), darker as
'Marine Grey' (#485F70), and darkest as 'HMS Blue'
(#043D5D).

Values which were common between light and dark
mode were eliminated from the specific dark mode
CSS block to simplify. An error regarding a
duplicate definition for 'ifm-color-primary-light'
in the default/light mode CSS was also corrected
to replace the missing 'ifm-color-primary-lightest'
definition.

Font color was updated to match the HMS standard
color 'Textbody' (#333333). In dark mode, this is
inverted to 'Light Grey' (#EFF0F1).
This defines SEO/crawler rules for the Docusaurus
websites. Generally, this allows all crawlers but
excludes the /docs/imported folder. This has been
excluded since its contents will be indexed with
the pages which import it. Separate indexing may
result in confusing indexed links which are not
separately useful or easily understood.
@alexjhawk alexjhawk self-assigned this Mar 4, 2024
@alexjhawk alexjhawk force-pushed the dev/docs branch 3 times, most recently from df982b9 to 7754db4 Compare March 4, 2024 22:03
Updated to the latest major version of the
Docusaurus platform, currently at v3.1.1.

A bug regarding imported docs was identified
and fixed, which caused an infinite webpack
refresh loop. The resolution disables any
runtime downloads of imported content, and
adds the download (and clear) steps to the
package.json processes.
Resolved a bug while running `yarn build` which
was caused by an example file name being parsed
as if it were a variable name. This has been
resolved by changing the encompassing quotes to
a code block.
Added metadata which is required by the
Open Graph protocol (for rich social
media and link previews).
Added support for SEO keyword customization via
the ScDocusaurusConfig.js file.
Updated the release (build outputs) workflow
to correct a bug which was causing releases
to not properly be marked as a release or
pre-release.

The header of the workflow file was also
updated accordingly.

fixes #59.
@alexjhawk alexjhawk changed the title Update Docusaurus and Web Docs Styling Update Docusaurus and Web Docs Styling + Workflow Fix Mar 18, 2024
@alexjhawk
Copy link
Collaborator Author

Updates to bring Docusaurus in line with the HMS communication guide styling, as well as upgrading to Docusaurus v3, adding support for PWA, and improved SEO.

A fix for the pre-release detection issue (#59) is also included.

@alexjhawk alexjhawk marked this pull request as ready for review March 18, 2024 16:30
@alexjhawk alexjhawk requested review from TomKimsey and it-hms March 18, 2024 16:30
Copy link
Contributor

@TomKimsey TomKimsey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the comment i messaged you about regarding moving HMS related images to common docs

@alexjhawk alexjhawk merged commit 3975f23 into main Mar 19, 2024
@alexjhawk alexjhawk deleted the dev/docs branch March 19, 2024 15:25
@alexjhawk
Copy link
Collaborator Author

Just the comment i messaged you about regarding moving HMS related images to common docs

Responding here for context: I plan on sweeping for candidate common docs across the starter project and related repositories to pull anything up in to the common docs repo soon.

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.

3 participants