Migrate to VitePress
This commit is contained in:
parent
247605c7ee
commit
fb37c5b4cd
153
.gitignore
vendored
153
.gitignore
vendored
@ -1,2 +1,151 @@
|
||||
site/
|
||||
docs/resources/
|
||||
docs/resources
|
||||
|
||||
# do not commit lockfiles
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# Typescript v1 declaration files
|
||||
typings/
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
.yarn/cache
|
||||
.yarn/unplugged
|
||||
.yarn/build-state.yml
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||
|
||||
# ignore server configuration
|
||||
env/development.js
|
||||
docker-compose.local.yml
|
||||
*.azcli
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
.parcel-cache
|
||||
|
||||
# compiled output
|
||||
/dist
|
||||
/tmp
|
||||
/out-tsc
|
||||
|
||||
# IDEs and editors
|
||||
/.idea
|
||||
.project
|
||||
.classpath
|
||||
.c9/
|
||||
*.launch
|
||||
.settings/
|
||||
*.sublime-workspace
|
||||
|
||||
# IDE - VSCode
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
.vscode-test
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
# misc
|
||||
/.sass-cache
|
||||
/connect.lock
|
||||
/coverage
|
||||
/libpeerconnection.log
|
||||
npm-debug.log
|
||||
testem.log
|
||||
/typings
|
||||
|
||||
# e2e
|
||||
/e2e/*.js
|
||||
/e2e/*.map
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# vitepress build output
|
||||
.vitepress/dist
|
||||
|
||||
# Next.js build output
|
||||
.next
|
||||
out
|
||||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# System Files
|
||||
.DS_Store
|
||||
/.DS_Store
|
||||
*/.DS_Store
|
||||
Thumbs.db
|
||||
|
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,3 +1,8 @@
|
||||
---
|
||||
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.
|
||||
@ -5,7 +10,7 @@ This website is intended to be primarily for personal use, but is available publ
|
||||
Testing math rendering: $a^2+b^2=c^2$
|
||||
|
||||
| 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.
|
||||
|
36
mkdocs.yml
36
mkdocs.yml
@ -1,36 +0,0 @@
|
||||
site_name: Eifueo
|
||||
site_url: "https://eggworld.tk"
|
||||
nav:
|
||||
- Home: index.md
|
||||
- SL Physics 1: sph3u7.md
|
||||
- SL Physics 2: sph4u7.md
|
||||
- SL Math - Analysis and Approaches 1: mhf4u7.md
|
||||
- SL Math - Analysis and Approaches 2: mcv4u7.md
|
||||
- SL French 1: fsf3u7.md
|
||||
- SL French 2: fsf3uz.md
|
||||
- HL Chemistry 1: sch3uz.md
|
||||
- HL Chemistry 2: sch4uz.md
|
||||
- HL Chemistry 3: snc4mz.md
|
||||
- HL English 1: eng3uz.md
|
||||
- HL English 2: eng4uz.md
|
||||
- HL History 1: chw3mz.md
|
||||
- HL History 2: chy4uz.md
|
||||
- Theory of Knowledge: tok.md
|
||||
|
||||
theme:
|
||||
name: material
|
||||
|
||||
markdown_extensions:
|
||||
- mdx_math:
|
||||
add_preview: True
|
||||
enable_dollar_delimiter: True
|
||||
- admonition
|
||||
- pymdownx.details
|
||||
- pymdownx.superfences
|
||||
- toc:
|
||||
permalink: True
|
||||
|
||||
extra_javascript: [
|
||||
'https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js',
|
||||
'mathjax-config.js'
|
||||
]
|
30
package.json
Normal file
30
package.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "eifueo",
|
||||
"version": "0.1.0",
|
||||
"description": "A VitePress version of the Eifueo project",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"docs:dev": "vitepress dev docs",
|
||||
"docs:build": "vitepress build docs",
|
||||
"docs:serve": "vitepress serve docs",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://git.eggworld.tk/eggy/eifueo.git"
|
||||
},
|
||||
"author": "eggy",
|
||||
"license": "GPLv3",
|
||||
"bugs": {
|
||||
"url": "https://git.eggworld.tk/eggy/eifueo/issues"
|
||||
},
|
||||
"homepage": "https://git.eggworld.tk/eggy/eifueo",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"markdown-it-mathjax3": "^4.3.1",
|
||||
"pug": "^3.0.2",
|
||||
"pug-plain-loader": "^1.1.0",
|
||||
"sass": "^1.51.0",
|
||||
"vitepress": "^0.22.4"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user