Ver Fonte

ref: move files up a directory

Sv443 há 4 meses atrás
pai
commit
18091d36cf

+ 1 - 1
src/routes/index.ts

@@ -19,7 +19,7 @@ export function initRouter(app: Application) {
     initRoute(router);
 
   // host docs files
-  router.use("/docs", express.static(resolve("./www/docs/.vuepress/dist")));
+  router.use("/docs", express.static(resolve("./www/.vuepress/dist")));
 
   // mount router
   app.use(`/v${verMajor}`, router);

+ 1 - 1
www/docs/.vuepress/config.mjs → www/.vuepress/config.mjs

@@ -3,7 +3,7 @@ import { defaultTheme } from "@vuepress/theme-default";
 import { viteBundler } from "@vuepress/bundler-vite";
 import { seoPlugin } from "@vuepress/plugin-seo";
 import { sitemapPlugin } from "@vuepress/plugin-sitemap";
-import rootPkgJson from "../../../package.json";
+import rootPkgJson from "../../package.json";
 
 const verMajor = Number(rootPkgJson.version.split(".")[0]);
 

+ 23 - 0
www/README.md

@@ -0,0 +1,23 @@
+---
+home: true
+title: Home
+heroImage: https://vuejs.press/images/hero.png
+actions:
+  - text: Documentation
+    link: /docs/
+    type: primary
+
+  - text: Manual search
+    link: /manual-search.html
+    type: secondary
+
+features:
+  - title: Format conversion
+    details: geniURL can convert the JSON data to XML if that is easier to use in your environment.
+  - title: Free and easy to use
+    details: The API is free to use and doesn't require authentication. You can use it for any purpose, even commercially. Note that rate limits apply.
+  - title: Open source
+    details: The source code for geniURL is available on GitHub. You can use it as a reference or contribute to the project.
+
+footer: "MIT License | Copyright © 2024 Sv443"
+---

+ 4 - 21
www/docs/README.md

@@ -1,23 +1,6 @@
----
-home: true
-title: Home
-heroImage: https://vuejs.press/images/hero.png
-actions:
-  - text: Documentation
-    link: /docs/
-    type: primary
+# geniURL Documentation
 
-  - text: Manual search
-    link: /manual-search.html
-    type: secondary
+<h3>
 
-features:
-  - title: Format conversion
-    details: geniURL can convert the JSON data to XML if that is easier to use in your environment.
-  - title: Free and easy to use
-    details: The API is free to use and doesn't require authentication. You can use it for any purpose, even commercially. Note that rate limits apply.
-  - title: Open source
-    details: The source code for geniURL is available on GitHub. You can use it as a reference or contribute to the project.
-
-footer: "MIT License | Copyright © 2024 Sv443"
----
+- [Routes](./routes)
+</h3>

+ 0 - 6
www/docs/docs/README.md

@@ -1,6 +0,0 @@
-# geniURL Documentation
-
-<h3>
-
-- [Routes](./routes)
-</h3>

+ 0 - 0
www/docs/docs/routes.md → www/docs/routes.md


+ 0 - 0
www/docs/get-started.md → www/get-started.md


+ 3 - 3
www/package.json

@@ -5,9 +5,9 @@
   "license": "MIT",
   "type": "module",
   "scripts": {
-    "build": "vuepress build docs",
-    "clean-dev": "vuepress dev docs --clean-cache",
-    "dev": "vuepress dev docs",
+    "build": "vuepress build .",
+    "clean-dev": "vuepress dev . --clean-cache",
+    "dev": "vuepress dev .",
     "update-package": "pnpm dlx vp-update"
   },
   "devDependencies": {