Skip to content

Commit

Permalink
config: update the gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
cccoding365 committed Oct 18, 2023
1 parent 0ff0636 commit 9bf5d57
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 16 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config.mts → docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig({
description: "A develop document.",
head: [["link", { rel: "icon", href: "/ccdevdocs/favicon.svg" }]],
themeConfig: {
lastUpdated: true,
search: {
provider: "local",
},
Expand Down
7 changes: 7 additions & 0 deletions docs/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- .vitepress/theme/Layout.vue -->
<template>
<h1>Custom Layout!</h1>

<!-- this is where markdown content will be rendered -->
<Content />
</template>
18 changes: 18 additions & 0 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// https://vitepress.dev/guide/custom-theme
import { h } from "vue";
import Theme from "vitepress/theme";
import "./style.css";

import Layout from "./Layout.vue";

export default {
extends: Theme,
Layout: () => {
return h(Theme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
});
},
enhanceApp({ app, router, siteData }) {
// ...
},
};
16 changes: 0 additions & 16 deletions docs/.vitepress/theme/index.ts

This file was deleted.

0 comments on commit 9bf5d57

Please sign in to comment.