Skip to content

Commit

Permalink
document, please ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
npmstudy committed Sep 27, 2023
1 parent 3b65805 commit b4d7f61
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

header {
padding: 24px 0;
border-bottom: 1px solid;
border-bottom: 0px solid;
}

header nav {
Expand All @@ -19,7 +19,7 @@ footer {

main {
min-height: 500px;
padding: 24px 0;
padding: 2px 0;
}

time {
Expand Down
1 change: 0 additions & 1 deletion docs/layouts/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<head></head>

<body>
2323
{{{ contents }}}
</body>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b4d7f61

Please sign in to comment.