File tree Expand file tree Collapse file tree 16 files changed +120
-111
lines changed Expand file tree Collapse file tree 16 files changed +120
-111
lines changed Original file line number Diff line number Diff line change 13
13
with :
14
14
repository : datawire/getambassador.io-blc2
15
15
path : blc
16
- - run : yarn install
16
+ - run : yarn
17
17
working-directory : site
18
- - run : yarn run gatsby build
18
+ - run : yarn build
19
19
working-directory : site
20
20
- run : npm install
21
21
working-directory : blc
24
24
set -o pipefail
25
25
(TARGET=../site PRODUCT=telepresenceio make -C . > blc.log) || ! (grep 'has a broken' blc.log)
26
26
working-directory : blc
27
- - uses : actions/upload-artifact@v2
27
+ - uses : actions/upload-artifact@v4
28
28
with :
29
29
name : blc.log
30
30
path : blc/blc.log
Original file line number Diff line number Diff line change 6
6
steps :
7
7
- uses : actions/setup-node@v4
8
8
- uses : actions/checkout@v4
9
- - run : yarn install
10
- - name : " yarn run gatsby build"
9
+ - run : yarn
10
+ - name : " yarn build"
11
11
run : |
12
- # The sed part of this command removes terminal escape codes.
13
- NODE_ENV=development yarn run gatsby build
12
+ yarn build
14
13
- name : " Dirty check"
15
14
run : |
16
15
git add .
Original file line number Diff line number Diff line change 6
6
/.cache /
7
7
/public /
8
8
9
+ # Docusaurus
10
+ /.docusaurus /
11
+ /build /
12
+
9
13
# gatsby-plugin-extract-schema
10
14
/schema.graphql
11
15
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ const config: Config = {
37
37
'classic' ,
38
38
{
39
39
docs : {
40
- sidebarPath : './sidebars.ts' ,
41
40
// Please change this to your repo.
42
41
// Remove this to remove the "edit this page" links.
43
42
editUrl : ( { docPath} ) => {
@@ -47,15 +46,15 @@ const config: Config = {
47
46
includeCurrentVersion : false ,
48
47
beforeDefaultRemarkPlugins : [ remarkGithubAdmonitionsToDirectives ] ,
49
48
async sidebarItemsGenerator ( args ) {
50
- const { docs, version : { versionName, contentPath} } = args ;
49
+ const { docs, version : { versionName, contentPath} } = args ;
51
50
type LinkItem = {
52
51
link ?: string ,
53
52
title : string ,
54
53
items ?: LinkItem [ ]
55
54
}
56
55
const idSet = new Set < string > ( docs . map ( doc => doc . id ) )
57
56
const linkToItem = ( ( linkItem : LinkItem ) => {
58
- if ( linkItem . link ) {
57
+ if ( linkItem . link ) {
59
58
idSet . delete ( linkItem . link ) ;
60
59
return {
61
60
type : 'doc' ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import React , { useState , useEffect } from 'react'
2
+
3
+ function ClientOnly ( { children, ...delegated } ) {
4
+ const [ hasMounted , setHasMounted ] = useState ( false ) ;
5
+
6
+ useEffect ( ( ) => {
7
+ setHasMounted ( true ) ;
8
+ } , [ ] ) ;
9
+ if ( ! hasMounted ) {
10
+ return ( < div > Loading...</ div > ) ;
11
+ }
12
+ return (
13
+ < div { ...delegated } >
14
+ { children }
15
+ </ div >
16
+ ) ;
17
+ }
18
+
19
+ export default ClientOnly
Original file line number Diff line number Diff line change @@ -65,14 +65,12 @@ function Provider({children}: Props) {
65
65
doAutoDetect : true ,
66
66
} ) ;
67
67
if ( ! state . setTab ) {
68
- console . log ( "Setting setState function" )
69
68
state . setTab = ( newTab : string ) => {
70
69
window . history . replaceState (
71
70
null ,
72
71
'' ,
73
72
`?os=${ newTab } ${ window . location . hash } ` ,
74
73
) ;
75
- console . log ( "Setting state to " + newTab )
76
74
setState ( {
77
75
curTab : newTab ,
78
76
setTab : null ,
@@ -85,11 +83,9 @@ function Provider({children}: Props) {
85
83
const query = new URLSearchParams ( window . location . search ) ;
86
84
let os = query . get ( 'os' ) ;
87
85
if ( os === null ) {
88
- console . log ( "Query for 'os' returned null" )
89
86
os = detectUserOS ( window ) ;
90
87
}
91
88
if ( publicTabs ( ) . map ( ( cls ) => cls . slug ) . includes ( os ) ) {
92
- console . log ( "OS " + os + " is included" )
93
89
if ( state . doAutoDetect || state . curTab !== os ) {
94
90
setState ( {
95
91
curTab : os ,
Original file line number Diff line number Diff line change
1
+ import * as React from "react" ;
2
+ import styled from "@mui/material/styles/styled" ;
3
+
4
+ const GoogleSearch = styled ( 'div' ) ( ( ) => ( {
5
+ table : {
6
+ padding : 0 ,
7
+ margin : 0 ,
8
+ border : 0 ,
9
+ } ,
10
+ tr : {
11
+ color : "var(--ifm-navbar-color)" ,
12
+ border : 0 ,
13
+ } ,
14
+ td : {
15
+ padding : 0 ,
16
+ margin : 0 ,
17
+ border : 0 ,
18
+ lineHeight : 1.2 ,
19
+ } ,
20
+ '.gsc-control-cse' : {
21
+ padding : 0 ,
22
+ margin : 0 ,
23
+ } ,
24
+ '.gsc' : {
25
+ backgroundColor : "var(--ifm-navbar-background-color)" ,
26
+ borderColor : "var(--ifm-navbar-background-color)" ,
27
+ '&-control' : {
28
+ '&-cse' : {
29
+ backgroundColor : "var(--ifm-navbar-background-color)" ,
30
+ borderColor : "var(--ifm-navbar-background-color)" ,
31
+ overflow : 'hidden' ,
32
+ }
33
+ } ,
34
+ '&-input' : {
35
+ backgroundColor : "var(--ifm-navbar-background-color)" ,
36
+ '.gsib_a' : {
37
+ padding : '5px 1px 5px 8px' ,
38
+ } ,
39
+ '&-box' : {
40
+ borderRadius : '8px' ,
41
+ overflow : 'hidden' ,
42
+ }
43
+ } ,
44
+ '&-search-button' : {
45
+ margin : '0 0' ,
46
+ '&-v2' : {
47
+ padding : '7px 7px' ,
48
+ borderRadius : '50%' ,
49
+ } ,
50
+ } ,
51
+ }
52
+ } ) ) ;
53
+
54
+ // Search must be combined with a script tag in head that points to the
55
+ // Google search engine declaration. Our is added in ./Root/index.tsx
56
+ //
57
+ // See https://programmablesearchengine.google.com/ for more info.
58
+ function Search ( ) {
59
+ return (
60
+ < GoogleSearch > < div className = "gcse-search" /> </ GoogleSearch >
61
+ )
62
+ }
63
+ export default Search ;
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export default function ColorModeToggleWrapper(props: Props): JSX.Element {
15
15
16
16
// Whenever the theme changes in docusaurus, trigger the change in MUI
17
17
useEffect ( ( ) => {
18
- console . log ( "setColorScheme: " + value )
19
18
setMode ( value ) ;
20
19
} ) ;
21
20
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ export default function MetadataWrapper(props: Props): JSX.Element {
13
13
const { pathname } = useLocation ( ) ;
14
14
const canonical = `${ customFields [ 'canonicalBaseUrl' ] } ${ pathname } `
15
15
16
- console . log ( "canonical: " + canonical ) ;
17
16
return (
18
17
< >
19
18
< Metadata { ...props } />
You can’t perform that action at this time.
0 commit comments