forked from eggy/eifueo
Migrate to VitePress
This commit is contained in:
31
docs/.vitepress/config.ts
Normal file
31
docs/.vitepress/config.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import { defineConfig } from "vitepress";
|
||||
|
||||
export default defineConfig({
|
||||
title: "Eifueo",
|
||||
description: "Rewritten notes!",
|
||||
lang: "en-US",
|
||||
lastUpdated: true,
|
||||
themeConfig: {
|
||||
nav: [{ text: "HL Chemistry 2", link: "/sch4uz.html" }],
|
||||
sidebar: getSidebar(),
|
||||
repo: "https://git.eggworld.tk/eggy/eifueo",
|
||||
docsDir: "docs",
|
||||
},
|
||||
markdown: {
|
||||
config: (md) => {
|
||||
md.use(require("markdown-it-mathjax3"), {
|
||||
loader: { load: ["[tex]/mhchem"] },
|
||||
tex: { packages: { "[+]": ["mhchem"] } },
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
function getSidebar() {
|
||||
return [
|
||||
{
|
||||
text: "Grade 12 IB",
|
||||
children: [{ text: "HL Chemistry 3", link: "/g12/snc4mz" }],
|
||||
},
|
||||
];
|
||||
}
|
15
docs/.vitepress/theme/Layout.vue
Normal file
15
docs/.vitepress/theme/Layout.vue
Normal file
@@ -0,0 +1,15 @@
|
||||
<script setup>
|
||||
import DefaultTheme from "vitepress/theme";
|
||||
const { Layout } = DefaultTheme;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Layout></Layout>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
main > .container {
|
||||
/* love that */
|
||||
max-width: 54rem !important;
|
||||
}
|
||||
</style>
|
7
docs/.vitepress/theme/index.ts
Normal file
7
docs/.vitepress/theme/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import DefaultTheme from "vitepress/theme";
|
||||
import Layout from "./Layout.vue";
|
||||
|
||||
export default {
|
||||
...DefaultTheme,
|
||||
Layout,
|
||||
};
|
Reference in New Issue
Block a user