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,
|
||||
};
|
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,17 @@
|
||||
---
|
||||
sidebarDepth: 2
|
||||
footer: Thanks to James Su, Lakshy Gupta, and Vincent Guo for providing supplementary data for accuracy and conciseness.
|
||||
---
|
||||
|
||||
# Home
|
||||
|
||||
This website is intended to be primarily for personal use, but is available publicly online.
|
||||
|
||||
Testing math rendering: $a^2+b^2=c^2$
|
||||
|
||||
| Tables | too! |
|
||||
| --- | --- |
|
||||
| yeet | no yeet |
|
||||
| Tables | too! |
|
||||
| ------ | ------- |
|
||||
| yeet | no yeet |
|
||||
|
||||
## Contact
|
||||
|
||||
@@ -17,5 +22,3 @@ If you would like to contribute by submitting fixes, requesting pages, and/or co
|
||||
The source for Eifueo is available [here](https://git.eggworld.tk/eggy/eifueo).
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
Thanks to James Su, Lakshy Gupta, and Vincent Guo for providing supplementary data for accuracy and conciseness.
|
||||
|
Reference in New Issue
Block a user