From b4d7f612381b8c3101fe494548c05b6698223f68 Mon Sep 17 00:00:00 2001 From: npmstudy Date: Wed, 27 Sep 2023 14:12:04 +0800 Subject: [PATCH] document, please ignore --- docs/build.js | 8 ++++---- docs/css/style.css | 4 ++-- docs/layouts/default.hbs | 1 - package.json | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/build.js b/docs/build.js index 20f43d2..91a97ff 100644 --- a/docs/build.js +++ b/docs/build.js @@ -12,8 +12,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url)); const t1 = performance.now(); Metalsmith(__dirname) // parent directory of this file - .source("./docs/") // source directory - .destination("./dist/docs") // destination directory + .source("./") // source directory + .destination("../dist/docs") // destination directory .clean(true) // clean destination before .env({ // pass NODE_ENV & other environment variables @@ -42,7 +42,7 @@ Metalsmith(__dirname) // parent directory of this file }) .use( collections({ - apis: "docs/api/*.md", + apis: "api/*.md", }) ) // use `collections.posts` in layouts .use(markdown()) // transpile all md into html @@ -55,7 +55,7 @@ Metalsmith(__dirname) // parent directory of this file .use( layouts({ default: "layout.hbs", - directory: "./docs/layouts", + directory: "./layouts", engineOptions: { helpers: { formattedDate: function (date) { diff --git a/docs/css/style.css b/docs/css/style.css index cfe9038..58ca656 100644 --- a/docs/css/style.css +++ b/docs/css/style.css @@ -5,7 +5,7 @@ header { padding: 24px 0; - border-bottom: 1px solid; + border-bottom: 0px solid; } header nav { @@ -19,7 +19,7 @@ footer { main { min-height: 500px; - padding: 24px 0; + padding: 2px 0; } time { diff --git a/docs/layouts/default.hbs b/docs/layouts/default.hbs index af9485b..7b1b8ef 100644 --- a/docs/layouts/default.hbs +++ b/docs/layouts/default.hbs @@ -4,7 +4,6 @@ - 2323 {{{ contents }}} diff --git a/package.json b/package.json index b936b9b..517e54f 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test:coverage": "c8 tsx --test test/*.ts", "build": "tsup src", "debug": "tsx --inspect-brk src.main.ts", - "doc": "npx api-extractor run --local && api-documenter markdown -i temp -o docs/api && node docs/build.js && serve dist/docs" + "doc": "npx api-extractor run --local && api-documenter markdown -i temp -o docs/api && node docs/build.js &&" }, "keywords": [], "author": "npmstudy",