Skip to content

Commit 3764848

Browse files
committed
docs: update documentation
1 parent 156e30c commit 3764848

File tree

4 files changed

+8
-24
lines changed

4 files changed

+8
-24
lines changed

src/gatsby-theme-docz/components/Header/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const Header = (props) => {
3939
viewBox="0 0 16 16"
4040
>
4141
<path
42-
fill-rule="evenodd"
42+
fillRule="evenodd"
4343
d="M2.5 11.5A.5.5 0 0 1 3 11h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 3h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"
4444
></path>
4545
</svg>
Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/** @jsx jsx */
22
import { useRef, useState } from 'react'
33
import { jsx, Layout as BaseLayout, Main } from 'theme-ui'
4+
import Helmet from 'react-helmet'
45
import { Global } from '@emotion/react'
56

67
import global from '~theme/global'
@@ -16,33 +17,16 @@ export const Layout = ({ children }) => {
1617

1718
return (
1819
<div className="d-flex">
19-
<Sidebar
20-
ref={nav}
21-
show={show}
22-
/>
20+
<Sidebar ref={nav} show={show} />
2321
<div className="wrapper flex-grow-1" data-coreui-reliant="sidebar">
24-
<Header onShow={() => setShow(s => !s)} />
22+
<Header onShow={() => setShow((s) => !s)} />
2523
<div className="container-lg my-md-4 flex-grow-1">
2624
<MainContainer data-testid="main-container">{children}</MainContainer>
2725
</div>
28-
2926
</div>
27+
<Helmet>
28+
<script src="https://media.ethicalads.io/media/client/ethicalads.min.js"/>
29+
</Helmet>
3030
</div>
31-
// <BaseLayout sx={{ '& > div': { flex: '1 1 auto' } }} data-testid="layout">
32-
// {/* <Global styles={global} /> */}
33-
// <Main sx={styles.main}>
34-
// {/* <Header onOpen={() => setOpen(s => !s)} /> */}
35-
// <div sx={styles.wrapper}>
36-
// <Sidebar
37-
// ref={nav}
38-
// open={open}
39-
// onFocus={() => setOpen(true)}
40-
// onBlur={() => setOpen(false)}
41-
// onClick={() => setOpen(false)}
42-
// />
43-
// <MainContainer data-testid="main-container">{children}</MainContainer>
44-
// </div>
45-
// </Main>
46-
// </BaseLayout>
4731
)
4832
}

src/gatsby-theme-docz/components/MainContainer/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const MainContainer = ({ children, ...rest }) => {
3030
<div className="docs-intro ps-lg-4" style={{ gridArea: 'intro' }}>
3131
<h1>{current.name}</h1>
3232
<p>{current.description}</p>
33+
<div data-ea-publisher="coreui-io" data-ea-type="image"></div>
3334
</div>
3435
<div
3536
className="docs-toc mt-4 mb-5 my-md-0 ps-xl-5 mb-lg-5 text-muted"

src/gatsby-theme-docz/components/NavGroup/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export const NavGroup = ({ item, sidebarRef }) => {
3737
sidebarRef.current.scrollTo(0, currentDocRef.current.offsetTop)
3838
}
3939
}, [])
40-
console.log(item)
4140
return (
4241
<div className="nav-item nav-group show" data-testid="nav-group">
4342
<div className="nav-link nav-group-toggle" dangerouslySetInnerHTML={{__html: `${icons[item.name]} ${item.name}`}}onClick={toggleSubheadings}>

0 commit comments

Comments
 (0)