Skip to content

Commit 49fcd19

Browse files
committed
WIP
1 parent 0d74e4f commit 49fcd19

File tree

6 files changed

+74
-13
lines changed

6 files changed

+74
-13
lines changed

.vitepress/config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from 'vitepress'
2-
import { witLang } from '../grammar/dist/index.js'
2+
import { witLang } from '../build/grammar/index.js'
33

44
// https://vitepress.dev/reference/site-config
55
export default defineConfig({
@@ -11,7 +11,11 @@ export default defineConfig({
1111
markdown: {
1212
languages: [
1313
witLang()
14-
]
14+
],
15+
theme: {
16+
light: 'github-light',
17+
dark: 'github-dark'
18+
}
1519
},
1620

1721
themeConfig: {

.vitepress/theme/Layout.vue

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<script setup lang="ts">
2+
import DefaultTheme from 'vitepress/theme'
3+
import { useRoute } from 'vitepress'
4+
5+
const { Layout } = DefaultTheme
6+
const route = useRoute()
7+
8+
// Don't show banner on home page since it has its own
9+
const showBanner = route.path !== '/'
10+
</script>
11+
12+
<template>
13+
<Layout>
14+
<template #doc-before>
15+
<div v-if="showBanner" class="construction-banner">
16+
<div class="custom-block warning">
17+
<p class="custom-block-title">⚠️ DOCUMENTATION UNDER CONSTRUCTION ⚠️</p>
18+
<p><strong>This documentation is being written from scratch.</strong> What you see here is essentially placeholder content and should not be trusted as accurate. Expect significant changes and updates.</p>
19+
</div>
20+
</div>
21+
</template>
22+
</Layout>
23+
</template>
24+
25+
<style scoped>
26+
.construction-banner {
27+
margin-bottom: 2rem;
28+
}
29+
</style>

.vitepress/theme/custom.css

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,40 @@
44
*/
55

66
/**
7-
* Colors - Orange Brand
7+
* Colors - VS Code Modern Theme
88
* -------------------------------------------------------------------------- */
99

1010
:root {
11-
--vp-c-brand-1: #c26518;
12-
--vp-c-brand-2: #d97616;
13-
--vp-c-brand-3: #a54f12;
11+
/* Brand colors inspired by VS Code Modern */
12+
--vp-c-brand-1: #005fb8;
13+
--vp-c-brand-2: #0078d4;
14+
--vp-c-brand-3: #106ebe;
15+
16+
/* Background colors - Light Modern */
17+
--vp-c-bg: #ffffff;
18+
--vp-c-bg-soft: #f8f8f8;
19+
--vp-c-bg-alt: #f5f5f5;
20+
21+
/* Text colors */
22+
--vp-c-text-1: #1e1e1e;
23+
--vp-c-text-2: #383838;
24+
--vp-c-text-3: #6a6a6a;
1425
}
1526

1627
.dark {
17-
--vp-c-brand-1: #d97616;
18-
--vp-c-brand-2: #c26518;
19-
--vp-c-brand-3: #a54f12;
28+
/* Brand colors for dark mode */
29+
--vp-c-brand-1: #4fc3f7;
30+
--vp-c-brand-2: #29b6f6;
31+
--vp-c-brand-3: #0288d1;
32+
33+
/* Background colors - Dark Modern */
34+
--vp-c-bg: #1e1e1e;
35+
--vp-c-bg-soft: #252526;
36+
--vp-c-bg-alt: #2d2d30;
37+
--vp-c-bg-elv: #2d2d30;
38+
39+
/* Text colors */
40+
--vp-c-text-1: #cccccc;
41+
--vp-c-text-2: #b0b0b0;
42+
--vp-c-text-3: #808080;
2043
}

.vitepress/theme/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import DefaultTheme from 'vitepress/theme'
22
import './custom.css'
3+
import Layout from './Layout.vue'
34

4-
export default DefaultTheme
5+
export default {
6+
extends: DefaultTheme,
7+
Layout
8+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This repository provides a header-only C++20 implementation of the WebAssembly C
1919

2020
## Official Documentation, Issues, and Discussions
2121

22+
⚠️ 🚧 DOCUMENTATION UNDER CONSTRUCTION 🚧 ⚠️
2223
* [Official Documentation](https://GordonSmith.github.io/component-model-cpp/)
2324
* [GitHub Issues](https://github.com/GordonSmith/component-model-cpp/issues)
2425
* [GitHub Discussions](https://github.com/GordonSmith/component-model-cpp/discussions)

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"clean": "rimraf .vitepress/cache .vitepress/dist grammar/dist",
7-
"grammar:build": "tsup grammar/index.ts --format esm --dts --clean --out-dir grammar/dist",
8-
"grammar:dev": "tsup grammar/index.ts --format esm --dts --watch --out-dir grammar/dist",
6+
"clean": "rimraf .vitepress/cache .vitepress/dist build/grammar",
7+
"grammar:build": "tsup grammar/index.ts --format esm --dts --clean --out-dir build/grammar",
8+
"grammar:dev": "tsup grammar/index.ts --format esm --dts --watch --out-dir build/grammar",
99
"dev": "npm run grammar:build && vitepress dev",
1010
"build": "npm run grammar:build && vitepress build",
1111
"preview": "vitepress preview",

0 commit comments

Comments
 (0)