Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Plaindown

[![npm version](https://img.shields.io/npm/v/@itznotabug/plaindown.svg?logo=npm&logoColor=white)](https://www.npmjs.com/package/@itznotabug/plaindown)
[![License](https://img.shields.io/npm/l/%40itznotabug%2Fplaindown?logo=apache&logoColor=white&color=blue)](https://github.com/ItzNotABug/plaindown/blob/main/LICENSE)
[![License](https://img.shields.io/npm/l/%40itznotabug%2Fplaindown?logo=apache&logoColor=white&color=blue)](https://github.com/ItzNotABug/plaindown/blob/main/LICENSE.md)
[![CI](https://img.shields.io/github/actions/workflow/status/ItzNotABug/plaindown/ci.yml?logo=github&label=CI)](https://github.com/ItzNotABug/plaindown/actions/workflows/ci.yml)
[![Previews](https://img.shields.io/badge/Previews-pkg.vc-blueviolet)](https://pkg.vc/)
[![Vite](https://img.shields.io/badge/Vite-5.x%20|%206.x%20-646CFF.svg?logo=vite&logoColor=white)](https://vite.dev/)
Expand Down
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,18 @@
"keywords": [
"vite",
"vitepress",
"vite-plugin",
"vitepress-plugin",
"markdown",
"plugin",
"bun"
"bun",
"markdown-endpoint",
"markdown-api",
"ai-seo",
"geo",
"llm",
"content-syndication",
"documentation",
"frontmatter"
],
"author": "itznotabug",
"license": "Apache-2.0",
Expand Down
12 changes: 9 additions & 3 deletions src/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ export function plaindown(userOptions: PlaindownOptions = {}): Plugin {
`indexed ${cachedFileCount} markdown ${cachedFileCount === 1 ? "entry" : "entries"} (${cachedChunkCount} ${cachedChunkCount === 1 ? "chunk" : "chunks"})`,
);
} else {
Logger.success(`indexed ${cachedFileCount} markdown ${cachedFileCount === 1 ? "entry" : "entries"}`);
Logger.success(
`indexed ${cachedFileCount} markdown ${cachedFileCount === 1 ? "entry" : "entries"}`,
);
}
}
},
Expand Down Expand Up @@ -282,7 +284,9 @@ export const chunks = undefined;`;
const bundleSizeKB = (bundleSize / 1024).toFixed(2);

if (bundleSize > 512000) {
Logger.warn(`Large bundle: ${bundleSizeKB}KB (consider emit: true or experimental.chunks)`);
Logger.warn(
`Large bundle: ${bundleSizeKB}KB (consider emit: true or experimental.chunks)`,
);
}

return code;
Expand All @@ -309,7 +313,9 @@ export const chunks = undefined;`;
`indexed ${cachedFileCount} markdown ${cachedFileCount === 1 ? "entry" : "entries"} (${cachedChunkCount} ${cachedChunkCount === 1 ? "chunk" : "chunks"})`,
);
} else {
Logger.success(`indexed ${cachedFileCount} markdown ${cachedFileCount === 1 ? "entry" : "entries"}`);
Logger.success(
`indexed ${cachedFileCount} markdown ${cachedFileCount === 1 ? "entry" : "entries"}`,
);
}

server.middlewares.use(createPlaindownMiddleware(config, () => manifest, options));
Expand Down
Loading