refactor: change documents location

This commit is contained in:
oat_dev 2024-06-28 17:18:08 +07:00
parent 3c18e0526a
commit 4da2f9cf69
70 changed files with 1157 additions and 1258 deletions

View file

@ -59,7 +59,7 @@ onMounted(async () => {
window.addEventListener("resize", onResize);
if (typeof route.params.name === "string") {
const res = await fetch(`/${route.params.name}.md`);
const res = await fetch(`/documents/${route.params.name}.md`);
if (res && res.ok) {
const pattern = /chapter-(\d+)/;
const match = pattern.exec(route.params.name);