Skip to content

Commit 561d7b5

Browse files
JV0812kimsauce
andauthored
Mobile view optimization (#5667)
* Mobile view optimization * Temp remove github icon from header, disable respectPrefersColorScheme * revert Docusaurus Webpack cache --------- Co-authored-by: Kim Pohas <[email protected]> Co-authored-by: Kim (Sumo Logic) <[email protected]>
1 parent e211a97 commit 561d7b5

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

.github/workflows/pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ jobs:
2727
with:
2828
node-version: '20.x'
2929
cache: 'yarn'
30+
- name: Docusaurus Webpack cache
31+
uses: actions/cache@v3
32+
with:
33+
path: node_modules/.cache
34+
key: ${{ runner.os }}-webpack-cache-${{ hashFiles('yarn.lock') }}
3035
- name: Install dependencies
3136
run: yarn install --frozen-lockfile
32-
- name: Clean Docusaurus cache
33-
run: rm -rf .docusaurus build
3437
- name: Build the Docusaurus site
3538
run: yarn build
3639
# --- Disallowed character checks for Pantheon ---

docusaurus.config.js

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ module.exports = {
274274
colorMode: {
275275
defaultMode: 'light',
276276
disableSwitch: false,
277-
respectPrefersColorScheme: true,
278277
},
279278
algolia: {
280279
appId: '2SJPGMLW1Q',
@@ -406,23 +405,8 @@ module.exports = {
406405
to: '/docs/release-notes',
407406
},
408407
{
409-
type: 'search',
408+
label: 'Support',
410409
position: 'left',
411-
},
412-
{
413-
type: 'html',
414-
position: 'right',
415-
value: 'google_translate',
416-
},
417-
{
418-
to: 'https://www.sumologic.com/sign-up',
419-
position: 'right',
420-
className: 'header-trial',
421-
alt: 'Sign up for a Sumo Logic free trial',
422-
},
423-
{
424-
position: 'right',
425-
className: 'support-menu-trigger',
426410
to: '#',
427411
type: 'dropdown',
428412
items: [
@@ -449,10 +433,25 @@ module.exports = {
449433
],
450434
},
451435
{
452-
className: 'header-github-link',
453-
to: 'https://github.com/SumoLogic/sumologic-documentation',
436+
type: 'html',
437+
position: 'right',
438+
value: 'google_translate',
439+
},
440+
{
441+
to: 'https://www.sumologic.com/sign-up',
442+
position: 'right',
443+
className: 'header-trial',
444+
alt: 'Sign up for a Sumo Logic free trial',
445+
},
446+
//{
447+
//className: 'header-github-link',
448+
//to: 'https://github.com/SumoLogic/sumologic-documentation',
449+
//position: 'right',
450+
//alt: 'Link to Sumo Logic Docs GitHub repository',
451+
//},
452+
{
453+
type: 'search',
454454
position: 'right',
455-
alt: 'Link to Sumo Logic Docs GitHub repository',
456455
},
457456
],
458457
},

0 commit comments

Comments
 (0)