Skip to content

Commit

Permalink
Merge branch 'main' into DOP-4967
Browse files Browse the repository at this point in the history
  • Loading branch information
mayaraman19 authored Sep 20, 2024
2 parents 7a5fa17 + 754027e commit c95f893
Show file tree
Hide file tree
Showing 88 changed files with 4,773 additions and 4,810 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
- "main"
pull_request:
types: ["opened", "synchronize"]
# REVERT BEFORE MERGE
branches:
- main
- "DOP-4616"

name: Run and Upload Lighthouse Reports
jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- main
- DOP-4616

jobs:
test:
Expand Down
Binary file added AWSCLIV2.pkg
Binary file not shown.
30 changes: 29 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [v0.17.5](https://github.com/mongodb/snooty/compare/v0.17.4...v0.17.5)
## [v0.18.2](https://github.com/mongodb/snooty/compare/v0.18.1...v0.18.2)

### Merged

- Universal Search fast follow - update env reading [`#1245`](https://github.com/mongodb/snooty/pull/1245)

## [v0.18.1](https://github.com/mongodb/snooty/compare/v0.18.0...v0.18.1) - 2024-09-18

### Merged

- DOP-4908: remove search icon from top nav [`#1244`](https://github.com/mongodb/snooty/pull/1244)
- 0px if not browser [`#1242`](https://github.com/mongodb/snooty/pull/1242)

## [v0.18.0](https://github.com/mongodb/snooty/compare/v0.17.5...v0.18.0) - 2024-09-18

### Merged

- DOP-4996: Table initiates in dark/light mode [`#1241`](https://github.com/mongodb/snooty/pull/1241)
- [DOP-4691]: unused component filtering affecting guides [`#1235`](https://github.com/mongodb/snooty/pull/1235)
- DOP-4991: Dark Mode Guide Cue (announcement) [`#1232`](https://github.com/mongodb/snooty/pull/1232)
- DOP-4616: Search on every page [`#1189`](https://github.com/mongodb/snooty/pull/1189)
- DOP-4941: Allow fonts for hidden languages to work without feature flag [`#1239`](https://github.com/mongodb/snooty/pull/1239)
- DOP-4973: Allow tabs/language selector to be added directly to the content [`#1228`](https://github.com/mongodb/snooty/pull/1228)
- DOP-4689: Implement multi-page tutorials [`#1225`](https://github.com/mongodb/snooty/pull/1225)
- DOP-4992: Remove Delighted [`#1234`](https://github.com/mongodb/snooty/pull/1234)
- DOP-4983: allow content within collapsibles to be linked [`#1231`](https://github.com/mongodb/snooty/pull/1231)
- DOP-4995: Dark Mode UAT: always on scroll, version selector hover flash, clear all filters flash [`#1226`](https://github.com/mongodb/snooty/pull/1226)

## [v0.17.5](https://github.com/mongodb/snooty/compare/v0.17.4...v0.17.5) - 2024-09-11

### Merged

Expand Down
10 changes: 7 additions & 3 deletions component-factory-transformer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ pub fn process_transform(program: Program, metadata: TransformPluginProgramMetad
includes: includes_set.clone(),
component_names: HashSet::from_iter(
// Default values that we want to keep.
vec!["LAZY_COMPONENTS".to_string(), "Admonition".to_string()]
.iter()
.cloned(),
vec![
"LAZY_COMPONENTS".to_string(),
"Admonition".to_string(),
"Card".to_string(),
]
.iter()
.cloned(),
),
};

Expand Down
7 changes: 6 additions & 1 deletion gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import { renderToString } from 'react-dom/server';
import { theme } from './src/theme/docsTheme';
import EuclidCircularASemiBold from './src/styles/fonts/EuclidCircularA-Semibold-WebXL.woff';
import redirectBasedOnLang from './src/utils/head-scripts/redirect-based-on-lang';
import { getHtmlLangFormat } from './src/utils/locale';

export const onRenderBody = ({ setHeadComponents }) => {
export const onRenderBody = ({ setHeadComponents, setHtmlAttributes }) => {
const headComponents = [
// GTM Pathway
<script
Expand Down Expand Up @@ -84,6 +85,10 @@ export const onRenderBody = ({ setHeadComponents }) => {
/>
);
}
setHtmlAttributes({
// Help work with translated content locally; Smartling should handle rewriting the lang
lang: process.env.GATSBY_LOCALE ? getHtmlLangFormat(process.env.GATSBY_LOCALE) : 'en',
});
setHeadComponents(headComponents);
};

Expand Down
Loading

0 comments on commit c95f893

Please sign in to comment.