Migrate to VitePress

This commit is contained in:
2022-05-27 23:00:55 -04:00
parent 247605c7ee
commit fb37c5b4cd
8 changed files with 662 additions and 355 deletions

31
docs/.vitepress/config.ts Normal file
View 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" }],
},
];
}

View 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>

View 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

View File

@@ -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.