Skip to content

Commit d0b3a2c

Browse files
committed
Add landing page
Moved to astro
1 parent 099650f commit d0b3a2c

26 files changed

Lines changed: 11712 additions & 13 deletions

.idea/.gitignore

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

.idea/misc.xml

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

.idea/vcs.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# CoreControl Docs Website
2+
3+
## Commands (Run this locally)
4+
5+
All commands are run from the root of the project, from a terminal:
6+
7+
| Command | Action |
8+
|:--------------------------|:-------------------------------------------------|
9+
| `npm install` | Installs dependencies |
10+
| `npm run dev` | Starts local dev server at `localhost:4321` |
11+
| `npm run build` | Build your production site to `./dist/` |
12+
| `npm run preview` | Preview your build locally, before deploying |
13+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
14+
| `npm run astro -- --help` | Get help using the Astro CLI |

astro.config.mjs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
import starlight from '@astrojs/starlight';
4+
import starlightThemeBlack from 'starlight-theme-black';
5+
6+
7+
// https://astro.build/config
8+
export default defineConfig({
9+
10+
site: 'https://corecontrollib.github.io',
11+
12+
integrations: [
13+
starlight({
14+
customCss: [
15+
'./src/styles/corecontrol.css',
16+
],
17+
18+
title: 'CoreControl Docs',
19+
logo: {
20+
light: './src/assets/logoLight.svg',
21+
dark: './src/assets/logoDark.svg',
22+
alt: '',
23+
replacesTitle: true,
24+
},
25+
head: [],
26+
favicon: '/favicon.png',
27+
social: [
28+
{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' },
29+
{ icon : 'instagram', label: 'Instagram', href: 'https://www.instagram.com/corecontrollib/' }
30+
],
31+
sidebar: [
32+
{
33+
label: 'Guides',
34+
items: [
35+
{ label: 'Example Guide', slug: 'guides/example' },
36+
],
37+
},
38+
{
39+
label: 'Reference',
40+
autogenerate: { directory: 'reference' },
41+
},
42+
],
43+
}),
44+
],
45+
redirects: {
46+
'/beta': 'https://forms.gle/VNxmV2XXtBc7Vuac9',
47+
},
48+
});

0 commit comments

Comments
 (0)