Skip to content

Commit c7bbdb2

Browse files
committed
cleanup roadmap, update cover/banner, add blog & docs to navbar
1 parent 1c4c27e commit c7bbdb2

17 files changed

+435
-338
lines changed

blog/2022-02-06.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Example Blog 1
3+
description: This is an example of how to use blogs.
4+
slug: example-blog1
5+
authors:
6+
- name: TJ
7+
title: Habitat Team
8+
url: https://github.com/tjvsx
9+
image_url: https://github.com/tjvsx.png
10+
tags: [example, blog]
11+
image: https://i.imgur.com/mErPwqL.png
12+
hide_table_of_contents: false
13+
---
14+
15+
This is an example. Blog will have to be formatted in markdown.
16+
17+
<!--truncate-->
18+
19+
This is my first post on Docusaurus 2.
20+
21+
A whole bunch of exploration to follow.

blog/2022-02-07.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Example Blog 2
3+
description: This is an example of how to use blogs.
4+
slug: example-blog2
5+
authors:
6+
- name: TJ
7+
title: Habitat Team
8+
url: https://github.com/tjvsx
9+
image_url: https://github.com/tjvsx.png
10+
tags: [example, blog]
11+
image: https://i.imgur.com/mErPwqL.png
12+
hide_table_of_contents: false
13+
---
14+
15+
This is an example. Blog will have to be formatted in markdown.
16+
17+
<!--truncate-->
18+
19+
This is my first post on Docusaurus 2.
20+
21+
A whole bunch of exploration to follow.

blog/2022-02-08.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Example Blog 3
3+
description: This is an example of how to use blogs.
4+
slug: example-blog3
5+
authors:
6+
- name: TJ
7+
title: Habitat Team
8+
url: https://github.com/tjvsx
9+
image_url: https://github.com/tjvsx.png
10+
tags: [example, blog]
11+
image: https://i.imgur.com/mErPwqL.png
12+
hide_table_of_contents: false
13+
---
14+
15+
This is an example. Blog will have to be formatted in markdown.
16+
17+
<!--truncate-->
18+
19+
This is my first post on Docusaurus 2.
20+
21+
A whole bunch of exploration to follow.

blog/2022-02-09.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Example Blog 4
3+
description: This is an example of how to use blogs.
4+
slug: example-blog4
5+
authors:
6+
- name: TJ
7+
title: Habitat Team
8+
url: https://github.com/tjvsx
9+
image_url: https://github.com/tjvsx.png
10+
tags: [example, blog]
11+
image: https://i.imgur.com/mErPwqL.png
12+
hide_table_of_contents: false
13+
---
14+
15+
This is an example. Blog will have to be formatted in markdown.
16+
17+
<!--truncate-->
18+
19+
This is my first post on Docusaurus 2.
20+
21+
A whole bunch of exploration to follow.

blog/2022-02-10.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Example Blog 5
3+
description: This is an example of how to use blogs.
4+
slug: example-blog5
5+
authors:
6+
- name: TJ
7+
title: Habitat Team
8+
url: https://github.com/tjvsx
9+
image_url: https://github.com/tjvsx.png
10+
tags: [example, blog]
11+
image: https://i.imgur.com/mErPwqL.png
12+
hide_table_of_contents: false
13+
---
14+
15+
This is an example. Blog will have to be formatted in markdown.
16+
17+
<!--truncate-->
18+
19+
This is my first post on Docusaurus 2.
20+
21+
A whole bunch of exploration to follow.

blog/2022-02-11.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Community Update 26 - Backlog Update
3+
description: v2 is funded, frontend in progress & learn about the gemcutter framework.
4+
slug: community-update-26
5+
authors:
6+
- name: Vic
7+
title: Habitat Team
8+
url: https://github.com/vic-id
9+
image_url: https://github.com/vic-id.png
10+
- name: Max
11+
title: Habitat Team
12+
url: https://github.com/MaxKaay
13+
image_url: https://github.com/MaxKaay.png
14+
tags: [habitat, v2, community-update, gemcutter]
15+
image: https://i.imgur.com/mErPwqL.png
16+
hide_table_of_contents: false
17+
---
18+
19+
This is an example. Blog will have to be formatted in markdown.
20+
21+
<!--truncate-->
22+
23+
This is my first post on Docusaurus 2.
24+
25+
A whole bunch of exploration to follow.

docusaurus.config.js

Lines changed: 40 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
66

77
/** @type {import('@docusaurus/types').Config} */
88
const config = {
9-
title: 'Build and Scale your DAO',
9+
title: 'Habitat',
1010
tagline: 'Start your organization on Optimism',
11-
url: 'https://github.com/0xHabitat/docs',
11+
url: 'https://0xhabitat.org',
1212
baseUrl: '/',
1313
onBrokenLinks: 'throw',
1414
onBrokenMarkdownLinks: 'warn',
@@ -39,7 +39,12 @@ const config = {
3939
routeBasePath: '/docs', // /docs landingpage controller
4040
sidebarPath: require.resolve('./sidebars.js'),
4141
// Please change this to your repo.
42-
editUrl: 'https://github.com/0xHabitat/docs',
42+
editUrl: 'https://github.com/0xHabitat/docs/tree/main',
43+
},
44+
blog: {
45+
blogTitle: 'Habitat Blog',
46+
blogDescription: 'Community updates and more!',
47+
postsPerPage: 'ALL',
4348
},
4449
theme: {
4550
customCss: require.resolve('./src/css/custom.css'),
@@ -58,7 +63,7 @@ const config = {
5863
switchConfig: {
5964
darkIcon: ' ',
6065
darkIconStyle: {
61-
marginLeft: '2px',
66+
marginLeft: '1px',
6267
},
6368
lightIcon: ' ',
6469
lightIconStyle: {
@@ -67,7 +72,7 @@ const config = {
6772
},
6873
},
6974
navbar: {
70-
hideOnScroll: false,
75+
hideOnScroll: true,
7176
logo: {
7277
alt: '🌱 Habitat',
7378
src: 'img/v2-logo-full.svg',
@@ -78,73 +83,62 @@ const config = {
7883
height: 32,
7984
},
8085
items: [
86+
{
87+
type: 'doc',
88+
position: 'left',
89+
docId: 'intro',
90+
label: 'Docs',
91+
className: 'navbar_item',
92+
},
93+
{
94+
to: 'blog',
95+
label: 'Blog',
96+
position: 'left',
97+
className: 'navbar_item',
98+
},
99+
// {
100+
// type: 'docSidebar',
101+
// position: 'left',
102+
// sidebarId: 'intro',
103+
// label: 'intro',
104+
// },
81105
// {
82106
// type: 'search',
83107
// position: 'right',
84108
// },
85109
{
86110
href: 'https://github.com/0xHabitat',
87111
// label: 'GitHub',
88-
className: 'header-github-link',
112+
className: 'navbar_github',
89113
'aria-label': 'GitHub repository',
90114
position: 'right'
91115
},
92116
{
93117
href: 'https://twitter.com/0xhabitat',
94118
// label: 'Twitter',
95-
className: 'header-twitter-link',
119+
className: 'navbar_twitter',
96120
'aria-label': 'Twitter posts',
97121
position: 'right'
98122
},
99123
{
100124
href: 'https://discord.com/invite/Pqdj73UTt6',
101125
// label: 'Discord',
102-
className: 'header-discord-link',
126+
className: 'navbar_discord',
103127
'aria-label': 'Discord community',
104128
position: 'right'
105129
},
106130

107131
],
108132
},
109133
footer: {
110-
links: [
111-
{
112-
title: 'Docs',
113-
items: [
114-
{
115-
label: 'Documentation',
116-
to: '/docs', //docs landingpage controller
117-
},
118-
],
119-
},
120-
{
121-
title: 'Community',
122-
items: [
123-
{
124-
label: 'Twitter',
125-
href: 'https://twitter.com/0xhabitat',
126-
},
127-
{
128-
label: 'Discord',
129-
href: 'https://discord.com/invite/Pqdj73UTt6',
130-
},
131-
{
132-
label: 'Telegram',
133-
href: 'https://t.me/habitat_official',
134-
},
135-
],
136-
},
137-
{
138-
title: 'More',
139-
items: [
140-
{
141-
label: 'GitHub',
142-
href: 'https://github.com/0xHabitat/habitat',
143-
},
144-
],
145-
},
146-
],
147-
copyright: `Copyright © ${new Date().getFullYear()} Habitat`,
134+
logo: {
135+
alt: '🌱 Habitat',
136+
src: 'img/v2-logo-full.svg',
137+
srcDark: 'img/v2-logo-full_dark.svg',
138+
href: '/',
139+
width: 200,
140+
height: 32,
141+
},
148142
},
149143
prism: {
150144
theme: lightCodeTheme,

sidebars.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ const sidebars = {
1717
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
1818

1919
// But you can create a sidebar manually
20-
/*
21-
tutorialSidebar: [
22-
{
23-
type: 'category',
24-
label: 'Tutorial',
25-
items: ['hello'],
26-
},
27-
],
28-
*/
20+
21+
// indexSidebar: [
22+
// {
23+
// type: 'category',
24+
// label: 'Tutorial',
25+
// items: ['hello'],
26+
// },
27+
// ],
28+
2929
};
3030

3131
module.exports = sidebars;

0 commit comments

Comments
 (0)