diff --git a/docs/.vitepress/config.mjs b/docs/.vitepress/config.mjs index 475bcfe..f4707fb 100644 --- a/docs/.vitepress/config.mjs +++ b/docs/.vitepress/config.mjs @@ -126,7 +126,7 @@ export default defineConfig({ ], }, { text: "Benchmark", link: "/guide/benchmark.md" }, - { text: "Demo", link: "https://cap-starter.glitch.me/" }, + { text: "Demo", link: "/guide/demo.md" } ], socialLinks: [ diff --git a/docs/.vitepress/theme/components/Benchmark.vue b/docs/.vitepress/theme/components/Benchmark.vue index 6be5b6a..05d19bd 100644 --- a/docs/.vitepress/theme/components/Benchmark.vue +++ b/docs/.vitepress/theme/components/Benchmark.vue @@ -43,7 +43,7 @@ async function runBenchmark() { .slice(0, difficulty.value), ]), token: "", - expires: 1745328572815, + expires: (new Date().getTime()) + (6000*100), }), { status: 200, diff --git a/docs/.vitepress/theme/components/Demo.vue b/docs/.vitepress/theme/components/Demo.vue new file mode 100644 index 0000000..5a298cd --- /dev/null +++ b/docs/.vitepress/theme/components/Demo.vue @@ -0,0 +1,56 @@ + + + diff --git a/docs/.vitepress/theme/index.js b/docs/.vitepress/theme/index.js index a6ca46e..2209aa3 100644 --- a/docs/.vitepress/theme/index.js +++ b/docs/.vitepress/theme/index.js @@ -1,5 +1,6 @@ // https://vitepress.dev/guide/custom-theme import Benchmark from "./components/Benchmark.vue"; +import Demo from "./components/Demo.vue"; import { h } from "vue"; import DefaultTheme from "vitepress/theme"; import "./style.css"; @@ -14,5 +15,6 @@ export default { }, enhanceApp({ app }) { app.component("Benchmark", Benchmark); + app.component("Demo", Demo); }, }; diff --git a/docs/guide/demo.md b/docs/guide/demo.md new file mode 100644 index 0000000..ccc5fe9 --- /dev/null +++ b/docs/guide/demo.md @@ -0,0 +1,18 @@ +# Demo + +### Default widget + + +### Custom widget +
+ +
\ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 85465e4..df56cf2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -15,7 +15,7 @@ hero: link: /guide - theme: alt text: Demo - link: https://cap-starter.glitch.me/ + link: /guide/demo.md - theme: alt text: GitHub link: https://github.com/tiagorangel1/cap