Skip to content

Commit 6721520

Browse files
committed
WIP
1 parent 0d74e4f commit 6721520

File tree

5 files changed

+44
-6
lines changed

5 files changed

+44
-6
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: 'light-plus',
17+
dark: 'dark-plus'
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/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)