Skip to content

Commit a84c0f0

Browse files
committed
First draft of making the top nav consistent with the rest of the site. The responsive aspects still don't work right and the navbar items aren't centered as they are on the main site.
Also removed the otterhelm image since this is not an Otterize OSS repo.
1 parent bdada7f commit a84c0f0

File tree

5 files changed

+78
-7
lines changed

5 files changed

+78
-7
lines changed

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Otterize Docs
22

3-
![Otter Manning Helm](./otterhelm.png)
4-
5-
63
![build](https://github.com/otterize/docs/actions/workflows/deploy.yml/badge.svg)
74
[![community](https://img.shields.io/badge/slack-Otterize_Slack-purple.svg?logo=slack)](https://joinslack.otterize.com/)
85

docusaurus.config.js

+49-4
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,65 @@ const config = {
7979
alt: 'Otterize',
8080
src: 'img/otterize-logo-dark.svg',
8181
srcDark: 'img/otterize-logo-light.svg',
82+
href: 'https://otterize.com',
83+
target: '_self',
8284
},
8385
items: [
86+
{
87+
href: 'https://otterize.com/open-source',
88+
label: 'Open source',
89+
position: 'right',
90+
target: '_self',
91+
},
92+
{
93+
href: 'https://otterize.com/product',
94+
label: 'Product',
95+
position: 'right',
96+
target: '_self',
97+
},
98+
{
99+
href: 'https://otterize.com/ibac',
100+
label: 'IBAC',
101+
position: 'right',
102+
target: '_self',
103+
},
84104
{
85105
type: 'doc',
86106
docId: 'getting-started/README',
87-
position: 'left',
88-
label: 'Documentation',
107+
position: 'right',
108+
label: 'Docs',
109+
},
110+
{
111+
href: 'https://otterize.com/pricing',
112+
label: 'Pricing',
113+
position: 'right',
114+
target: '_self',
115+
},
116+
{
117+
href: 'https://otterize.com/team',
118+
label: 'Team',
119+
position: 'right',
120+
target: '_self',
121+
},
122+
{
123+
href: 'https://otterize.com/blog',
124+
label: 'Blog',
125+
position: 'right',
126+
target: '_self',
89127
},
90128
{
91129
href: 'https://github.com/otterize',
92-
label: 'GitHub',
130+
html: '<img src="/img/github-round-logo.svg" />',
93131
position: 'right',
132+
class: 'navbar_external_logo_first',
94133
},
95-
],
134+
{
135+
href: 'https://otterizecommunity.slack.com',
136+
html: '<img src="/img/slack-logo-no-border.svg" />',
137+
position: 'right',
138+
class: 'navbar_external_logo',
139+
},
140+
],
96141
},
97142
footer: {
98143
style: 'dark',

src/css/custom.css

+16
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,19 @@
5555
pre.prism-code {
5656
white-space : pre-wrap;
5757
}
58+
59+
/* Remove icon for external link */
60+
.navbar__item>svg {
61+
display: none;
62+
}
63+
64+
.navbar_external_logo_first {
65+
width: 2rem;
66+
margin-right: .5rem;
67+
margin-left: 5rem;
68+
}
69+
.navbar_external_logo {
70+
width: 2rem;
71+
margin-right: .5rem;
72+
margin-left: .5rem;
73+
}

static/img/github-round-logo.svg

+3
Loading

static/img/slack-logo-no-border.svg

+10
Loading

0 commit comments

Comments
 (0)