Skip to content

Commit 4da4596

Browse files
committed
Configuring website
1 parent 6f4e773 commit 4da4596

6 files changed

Lines changed: 192 additions & 27 deletions

File tree

docusaurus.config.ts

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@ import type * as Preset from '@docusaurus/preset-classic';
66

77
const config: Config = {
88
title: 'Context-Generic Programming',
9-
tagline: 'Dinosaurs are cool',
10-
favicon: 'img/favicon.ico',
9+
tagline: 'Modular programming paradigm for Rust',
10+
favicon: 'img/favicon.png',
1111

1212
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
1313
future: {
1414
v4: true, // Improve compatibility with the upcoming Docusaurus v4
1515
},
1616

1717
// Set the production url of your site here
18-
url: 'https://your-docusaurus-site.example.com',
18+
url: 'https://contextgeneric.dev',
1919
// Set the /<baseUrl>/ pathname under which your site is served
2020
// For GitHub pages deployment, it is often '/<projectName>/'
2121
baseUrl: '/',
2222

2323
// GitHub pages deployment config.
2424
// If you aren't using GitHub pages, you don't need these.
25-
organizationName: 'facebook', // Usually your GitHub org/user name.
26-
projectName: 'docusaurus', // Usually your repo name.
25+
organizationName: 'contextgeneric', // Usually your GitHub org/user name.
26+
projectName: 'contextgeneric.dev', // Usually your repo name.
2727

2828
onBrokenLinks: 'throw',
2929

@@ -44,7 +44,7 @@ const config: Config = {
4444
// Please change this to your repo.
4545
// Remove this to remove the "edit this page" links.
4646
editUrl:
47-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
47+
'https://github.com/contextgeneric/contextgeneric.dev/tree/main/',
4848
},
4949
blog: {
5050
showReadingTime: true,
@@ -55,7 +55,7 @@ const config: Config = {
5555
// Please change this to your repo.
5656
// Remove this to remove the "edit this page" links.
5757
editUrl:
58-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
58+
'https://github.com/contextgeneric/contextgeneric.dev/tree/main/',
5959
// Useful options to enforce blogging best practices
6060
onInlineTags: 'warn',
6161
onInlineAuthors: 'warn',
@@ -69,16 +69,15 @@ const config: Config = {
6969
],
7070

7171
themeConfig: {
72-
// Replace with your project's social card
73-
image: 'img/docusaurus-social-card.jpg',
72+
image: 'img/cgp-logo.png',
7473
colorMode: {
7574
respectPrefersColorScheme: true,
7675
},
7776
navbar: {
78-
title: 'My Site',
77+
title: 'Context-Generic Programming',
7978
logo: {
80-
alt: 'My Site Logo',
81-
src: 'img/logo.svg',
79+
alt: 'Context-Generic Programming Logo',
80+
src: 'img/cgp-logo.svg',
8281
},
8382
items: [
8483
{
@@ -89,7 +88,7 @@ const config: Config = {
8988
},
9089
{to: '/blog', label: 'Blog', position: 'left'},
9190
{
92-
href: 'https://github.com/facebook/docusaurus',
91+
href: 'https://github.com/contextgeneric/cgp',
9392
label: 'GitHub',
9493
position: 'right',
9594
},
@@ -111,16 +110,16 @@ const config: Config = {
111110
title: 'Community',
112111
items: [
113112
{
114-
label: 'Stack Overflow',
115-
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
113+
label: 'GitHub Discussions',
114+
href: 'https://github.com/orgs/contextgeneric/discussions',
116115
},
117116
{
118117
label: 'Discord',
119-
href: 'https://discordapp.com/invite/docusaurus',
118+
href: 'https://discord.gg/Hgk3rCw6pQ',
120119
},
121120
{
122-
label: 'X',
123-
href: 'https://x.com/docusaurus',
121+
label: 'Reddit',
122+
href: 'https://www.reddit.com/r/cgp/',
124123
},
125124
],
126125
},
@@ -133,12 +132,12 @@ const config: Config = {
133132
},
134133
{
135134
label: 'GitHub',
136-
href: 'https://github.com/facebook/docusaurus',
135+
href: 'https://github.com/contextgeneric/cgp',
137136
},
138137
],
139138
},
140139
],
141-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
140+
copyright: `Licensed by <a href="https://maybevoid.com">MaybeVoid</a> under a <a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.`,
142141
},
143142
prism: {
144143
theme: prismThemes.github,

src/css/custom.css

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@
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: #5D0705;
10+
--ifm-color-primary-dark: #5D0705;
11+
--ifm-color-primary-darker: #5D0705;
12+
--ifm-color-primary-darkest: #5D0705;
13+
--ifm-color-primary-light: #FCF7E9;
14+
--ifm-color-primary-lighter: #FCF7E9;
15+
--ifm-color-primary-lightest: #FCF7E9;
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1818
}
1919

20+
.footer {
21+
--ifm-footer-background-color: #5d4b1e;
22+
}
23+
2024
/* For readability concerns, you should choose a lighter palette in dark mode. */
2125
[data-theme='dark'] {
2226
--ifm-color-primary: #25c2a0;

static/img/cgp-logo.png

77.9 KB
Loading

static/img/cgp-logo.svg

Lines changed: 162 additions & 0 deletions
Loading

static/img/favicon.ico

-3.54 KB
Binary file not shown.

static/img/favicon.png

1.4 KB
Loading

0 commit comments

Comments
 (0)