Skip to content

Commit 3648882

Browse files
authored
Merge pull request #175 from spicecodecli/docs-improvements
Docs improvements
2 parents 7dac345 + f37237f commit 3648882

3 files changed

Lines changed: 43 additions & 36 deletions

File tree

docs/docusaurus.config.js

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {themes as prismThemes} from 'prism-react-renderer';
1010

1111
/** @type {import('@docusaurus/types').Config} */
1212
const config = {
13-
title: 'SpiceCode Documentation',
14-
tagline: 'Comprehensive Code Analysis Tool',
15-
favicon: 'img/favicon.ico', // Assuming a favicon will be added later or use a default
13+
title: 'SpiceCode | Documentation',
14+
tagline: 'The next generation of code analysis.',
15+
favicon: 'img/spicecode_logo_nobg.png',
1616

1717
// Set the production url of your site here
1818
url: 'https://spicecodecli.github.io', // Assuming deployment to GitHub Pages
@@ -22,14 +22,15 @@ const config = {
2222

2323
// GitHub pages deployment config.
2424
organizationName: 'spicecodecli', // Your GitHub org/user name.
25-
projectName: 'spicecode-docs', // Usually your repo name for the docs site.
25+
projectName: 'spicecode', // Usually your repo name for the docs site. (im guessing since we dont have a docs repo we can just use the regular repo here?)
2626

2727
onBrokenLinks: 'throw',
2828
onBrokenMarkdownLinks: 'warn',
2929

3030
// Even if you don't use internationalization, you can use this field to set
3131
// useful metadata like html lang. For example, if your site is Chinese, you
3232
// may want to replace "en" with "zh-Hans".
33+
// my site is not chinese. but thank you for the heads up
3334
i18n: {
3435
defaultLocale: 'en',
3536
locales: ['en'],
@@ -44,9 +45,9 @@ const config = {
4445
sidebarPath: './sidebars.js',
4546
// Point to the actual SpiceCode repo for edits
4647
editUrl:
47-
'https://github.com/spicecodecli/spicecode/tree/main/', // Link to the source repo, assuming docs might live there eventually or for context
48+
'https://github.com/spicecodecli/spicecode/tree/main/docs', // Link to the source repo, assuming docs might live there eventually or for context
4849
},
49-
blog: false, // Disabling blog as it wasn't requested
50+
blog: false, // Disabling blog as it wasn't requested // WAIT WE CAN HAVE A BLOG HERE??????????????? // TODO: RESEARCH BLOG POSSIBILITIES
5051
// blog: {
5152
// showReadingTime: true,
5253
// feedOptions: {
@@ -72,13 +73,13 @@ const config = {
7273
themeConfig:
7374
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
7475
({
75-
// Replace with your project's social card
76-
image: 'img/spicecode-social-card.jpg', // Placeholder social card
76+
// Replace with your project's social card // what even is a social card?
77+
image: 'img/spicecode_wallpaper.png', // Placeholder social card
7778
navbar: {
7879
title: 'SpiceCode',
7980
logo: {
8081
alt: 'SpiceCode Logo',
81-
src: 'img/logo.svg', // Assuming a logo will be added later
82+
src: 'img/spicecode_logo_nobg.png', // Assuming a logo will be added later
8283
},
8384
items: [
8485
{
@@ -131,6 +132,10 @@ const config = {
131132
label: 'Report an Issue',
132133
href: 'https://github.com/spicecodecli/spicecode/issues',
133134
},
135+
{
136+
label: 'GitHub Discussions',
137+
href: 'https://github.com/orgs/spicecodecli/discussions',
138+
},
134139
],
135140
},
136141
{
@@ -145,7 +150,7 @@ const config = {
145150
},
146151
],
147152
// Update copyright notice
148-
copyright: `Copyright © ${new Date().getFullYear()} SpiceCode Project. Built with Docusaurus.`,
153+
copyright: `Copyright © ${new Date().getFullYear()} SpiceCode CLI. Built with Docusaurus.`,
149154
},
150155
prism: {
151156
theme: prismThemes.github,

docs/src/css/custom.css

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
1-
/**
2-
* Any CSS included here will be global. The classic template
3-
* bundles Infima by default. Infima is a CSS framework designed to
4-
* work well for content-centric websites.
5-
*/
6-
7-
/* You can override the default Infima variables here. */
81
: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;
2+
/* Primary brand colors - Spicy red-orange palette */
3+
--ifm-color-primary: #e65100; /* Deep spice orange */
4+
--ifm-color-primary-dark: #bf360c;
5+
--ifm-color-primary-darker: #a12900;
6+
--ifm-color-primary-darkest: #7f1f00;
7+
--ifm-color-primary-light: #ff6d00;
8+
--ifm-color-primary-lighter: #ff8f00;
9+
--ifm-color-primary-lightest: #ffb300;
10+
1611
--ifm-code-font-size: 95%;
17-
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
12+
--docusaurus-highlighted-code-line-bg: rgba(230, 81, 0, 0.1); /* translucent spice */
13+
14+
/* Optional spice-themed accent */
15+
--ifm-link-color: #ff5722;
16+
--ifm-link-hover-color: #ff7043;
1817
}
1918

20-
/* For readability concerns, you should choose a lighter palette in dark mode. */
19+
/* Dark mode variant */
2120
[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+
--ifm-color-primary: #ff8a50;
22+
--ifm-color-primary-dark: #ff7043;
23+
--ifm-color-primary-darker: #f4511e;
24+
--ifm-color-primary-darkest: #bf360c;
25+
--ifm-color-primary-light: #ffa270;
26+
--ifm-color-primary-lighter: #ffb792;
27+
--ifm-color-primary-lightest: #ffd2b3;
28+
29+
--docusaurus-highlighted-code-line-bg: rgba(255, 138, 80, 0.2);
30+
--ifm-link-color: #ffab91;
31+
--ifm-link-hover-color: #ffccbc;
3032
}

docs/src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function HomepageHeader() {
2020
<Link
2121
className="button button--secondary button--lg"
2222
to="/docs/intro">
23-
Docusaurus Tutorial - 5min ⏱️
23+
SpiceCode Tutorial - 5min ⏱️
2424
</Link>
2525
</div>
2626
</div>
@@ -32,7 +32,7 @@ export default function Home() {
3232
const {siteConfig} = useDocusaurusContext();
3333
return (
3434
<Layout
35-
title={`Hello from ${siteConfig.title}`}
35+
title={`${siteConfig.title}`}
3636
description="Description will go into a meta tag in <head />">
3737
<HomepageHeader />
3838
<main>

0 commit comments

Comments
 (0)