Skip to content

Commit

Permalink
Fix issues with docs website
Browse files Browse the repository at this point in the history
Closes #732
Closes #797

These issues come from the fact that we have custom code for the sidebar
This custom code adds a logo (I moved that to the header) + algolia search (not very useful IMO, just search the github repo)
  • Loading branch information
julienduchesne committed Jun 6, 2023
1 parent 709b149 commit 9dc94fe
Show file tree
Hide file tree
Showing 10 changed files with 1,797 additions and 1,738 deletions.
6 changes: 0 additions & 6 deletions docs/algolia.json

This file was deleted.

5 changes: 0 additions & 5 deletions docs/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,5 @@ module.exports = {
precachePages: [`/`, `/install`, `/tutorial/overview`],
},
},

{
resolve: `gatsby-plugin-algolia-docsearch`,
options: require("./algolia.json"),
},
],
}
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"docz": "^2.4.0",
"gatsby": "^2.0.0",
"gatsby-image": "^3.11.0",
"gatsby-plugin-algolia-docsearch": "^1.0.5",
"gatsby-plugin-catch-links": "^2.1.21",
"gatsby-plugin-manifest": "^2.2.34",
"gatsby-plugin-offline": "^3.0.30",
Expand Down
74 changes: 0 additions & 74 deletions docs/src/gatsby-theme-docz/base/Layout.js

This file was deleted.

68 changes: 0 additions & 68 deletions docs/src/gatsby-theme-docz/components/Header/index.js

This file was deleted.

38 changes: 21 additions & 17 deletions docs/src/gatsby-theme-docz/components/Logo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,27 @@ import * as styles from "gatsby-theme-docz/src/components/Logo/styles"
/** @jsx jsx */
import { Flex, jsx } from "theme-ui"
import { Link, useConfig } from "docz"
import logo from '../../../../img/logo.svg'

export const Logo = () => {
const config = useConfig()
return (
<Flex alignItems="center" sx={styles.logo} data-testid="logo">
<Link
to="/"
sx={{
...styles.link,
display: "flex",
flexDirection: "column",
lineHeight: "1.2",
}}
>
<span>Grafana Tanka</span>
<span sx={{ fontSize: "0.7em" }}>{config.description}</span>
</Link>
</Flex>
)
const config = useConfig()
return (
<Flex alignItems="center" sx={styles.logo} data-testid="logo">
<Link
to="/"
sx={{
...styles.link,
display: "flex",
flexDirection: "column",
lineHeight: "1.2",
}}
>
<div sx={{ display: 'inline-block' }}>
<img src={logo} alt="That's my logo" sx={{ maxHeight: "1.2em", marginRight: '0.2em', display: 'inline-block', float: 'left' }} />
<span sx={{ display: 'inline-block' }}>Grafana Tanka</span>
<span sx={{ fontSize: "0.7em", display: 'block' }}>{config.description}</span>
</div>
</Link>
</Flex>
)
}
43 changes: 0 additions & 43 deletions docs/src/gatsby-theme-docz/components/Sidebar/algolia.js

This file was deleted.

74 changes: 0 additions & 74 deletions docs/src/gatsby-theme-docz/components/Sidebar/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions docs/src/gatsby-theme-docz/components/Sidebar/styles.js

This file was deleted.

Loading

0 comments on commit 9dc94fe

Please sign in to comment.