Skip to content

Commit cb37bab

Browse files
committed
Define layout and colors
1 parent 155a868 commit cb37bab

File tree

12 files changed

+31
-242
lines changed

12 files changed

+31
-242
lines changed

blog/2019-05-28-first-blog-post.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

blog/2019-05-29-long-blog-post.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

blog/2021-08-01-mdx-blog-post.mdx

Lines changed: 0 additions & 24 deletions
This file was deleted.
-93.9 KB
Binary file not shown.

blog/2021-08-26-welcome/index.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

blog/authors.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

blog/tags.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/intro.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
sidebar_position: 1
3+
slug: /
34
---
45

56
# Tutorial Intro

docusaurus.config.js

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {themes as prismThemes} from 'prism-react-renderer';
88

99
/** @type {import('@docusaurus/types').Config} */
1010
const config = {
11-
title: 'My Site',
11+
title: 'drawDB DOCS',
1212
tagline: 'Dinosaurs are cool',
1313
favicon: 'img/favicon.ico',
1414

@@ -20,8 +20,8 @@ const config = {
2020

2121
// GitHub pages deployment config.
2222
// If you aren't using GitHub pages, you don't need these.
23-
organizationName: 'facebook', // Usually your GitHub org/user name.
24-
projectName: 'docusaurus', // Usually your repo name.
23+
organizationName: 'drawdb-io', // Usually your GitHub org/user name.
24+
projectName: 'drawdb', // Usually your repo name.
2525

2626
onBrokenLinks: 'throw',
2727
onBrokenMarkdownLinks: 'warn',
@@ -43,24 +43,11 @@ const config = {
4343
sidebarPath: './sidebars.js',
4444
// Please change this to your repo.
4545
// Remove this to remove the "edit this page" links.
46+
routeBasePath: '/',
4647
editUrl:
4748
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
4849
},
49-
blog: {
50-
showReadingTime: true,
51-
feedOptions: {
52-
type: ['rss', 'atom'],
53-
xslt: true,
54-
},
55-
// Please change this to your repo.
56-
// Remove this to remove the "edit this page" links.
57-
editUrl:
58-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
59-
// Useful options to enforce blogging best practices
60-
onInlineTags: 'warn',
61-
onInlineAuthors: 'warn',
62-
onUntruncatedBlogPosts: 'warn',
63-
},
50+
blog: false,
6451
theme: {
6552
customCss: './src/css/custom.css',
6653
},
@@ -74,10 +61,10 @@ const config = {
7461
// Replace with your project's social card
7562
image: 'img/docusaurus-social-card.jpg',
7663
navbar: {
77-
title: 'My Site',
64+
title: 'drawDB',
7865
logo: {
79-
alt: 'My Site Logo',
80-
src: 'img/logo.svg',
66+
alt: 'drawDB logo',
67+
src: 'img/icon-dark.png',
8168
},
8269
items: [
8370
{
@@ -86,11 +73,14 @@ const config = {
8673
position: 'left',
8774
label: 'Tutorial',
8875
},
89-
{to: '/blog', label: 'Blog', position: 'left'},
9076
{
91-
href: 'https://github.com/facebook/docusaurus',
77+
href: 'https://github.com/drawdb-io/drawdb',
9278
label: 'GitHub',
9379
position: 'right',
80+
}, {
81+
href: 'https://x.com/drawdb_',
82+
label: 'Twitter',
83+
position: 'right',
9484
},
9585
],
9686
},
@@ -109,10 +99,6 @@ const config = {
10999
{
110100
title: 'Community',
111101
items: [
112-
{
113-
label: 'Stack Overflow',
114-
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
115-
},
116102
{
117103
label: 'Discord',
118104
href: 'https://discordapp.com/invite/docusaurus',
@@ -126,18 +112,14 @@ const config = {
126112
{
127113
title: 'More',
128114
items: [
129-
{
130-
label: 'Blog',
131-
to: '/blog',
132-
},
133115
{
134116
label: 'GitHub',
135117
href: 'https://github.com/facebook/docusaurus',
136118
},
137119
],
138120
},
139121
],
140-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
122+
copyright: `Copyright © ${new Date().getFullYear()} drawDB. Built with Docusaurus.`,
141123
},
142124
prism: {
143125
theme: prismThemes.github,

src/css/custom.css

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--ifm-color-primary: #2e8555;
10-
--ifm-color-primary-dark: #29784c;
11-
--ifm-color-primary-darker: #277148;
12-
--ifm-color-primary-darkest: #205d3b;
13-
--ifm-color-primary-light: #33925d;
14-
--ifm-color-primary-lighter: #359962;
15-
--ifm-color-primary-lightest: #3cad6e;
9+
--ifm-color-primary: #245b8f;
10+
--ifm-color-primary-dark: #205281;
11+
--ifm-color-primary-darker: #1f4d7a;
12+
--ifm-color-primary-darkest: #194064;
13+
--ifm-color-primary-light: #28649d;
14+
--ifm-color-primary-lighter: #2969a4;
15+
--ifm-color-primary-lightest: #2f76ba;
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1818
}
1919

2020
/* For readability concerns, you should choose a lighter palette in dark mode. */
21-
[data-theme='dark'] {
22-
--ifm-color-primary: #25c2a0;
23-
--ifm-color-primary-dark: #21af90;
24-
--ifm-color-primary-darker: #1fa588;
25-
--ifm-color-primary-darkest: #1a8870;
26-
--ifm-color-primary-light: #29d5b0;
27-
--ifm-color-primary-lighter: #32d8b4;
28-
--ifm-color-primary-lightest: #4fddbf;
29-
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
21+
[data-theme="dark"] {
22+
--ifm-color-primary: #6aa8e2;
23+
--ifm-color-primary-dark: #4e98dd;
24+
--ifm-color-primary-darker: #4090da;
25+
--ifm-color-primary-darkest: #2677c3;
26+
--ifm-color-primary-light: #86b8e7;
27+
--ifm-color-primary-lighter: #94c0ea;
28+
--ifm-color-primary-lightest: #bdd9f2;
29+
--ifm-background-color: #2c2d35;
3030
}

0 commit comments

Comments
 (0)