mdorigin 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/adapters/cloudflare.d.ts +40 -4
- package/dist/adapters/cloudflare.js +163 -7
- package/dist/adapters/node.js +2 -2
- package/dist/cli/build-cloudflare.js +27 -2
- package/dist/cli/help.js +5 -4
- package/dist/cli/init-cloudflare.js +7 -1
- package/dist/cli/main.js +5 -0
- package/dist/cli/sync-cloudflare-r2.d.ts +1 -0
- package/dist/cli/sync-cloudflare-r2.js +47 -0
- package/dist/cloudflare-runtime.d.ts +1 -1
- package/dist/cloudflare.d.ts +42 -6
- package/dist/cloudflare.js +246 -10
- package/dist/core/content-store.d.ts +1 -0
- package/dist/core/content-store.js +8 -1
- package/dist/core/extensions.d.ts +5 -9
- package/dist/core/markdown.js +32 -4
- package/dist/core/request-handler.js +46 -60
- package/dist/core/site-config.d.ts +4 -10
- package/dist/core/site-config.js +18 -10
- package/dist/html/template.d.ts +5 -9
- package/dist/html/template.js +33 -27
- package/dist/html/theme.d.ts +1 -2
- package/dist/html/theme.js +12 -628
- package/dist/index-builder.js +6 -4
- package/dist/search.js +3 -2
- package/package.json +4 -2
- package/dist/html/template-kind.d.ts +0 -1
- package/dist/html/template-kind.js +0 -1
package/dist/search.js
CHANGED
|
@@ -3,6 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
import { inferDirectoryContentType } from './core/content-type.js';
|
|
4
4
|
import { getDirectoryIndexCandidates } from './core/directory-index.js';
|
|
5
5
|
import { getDocumentSummary, getDocumentTitle, parseMarkdownDocument, } from './core/markdown.js';
|
|
6
|
+
import { isIgnoredContentName } from './core/content-store.js';
|
|
6
7
|
export async function buildSearchBundle(options) {
|
|
7
8
|
const buildModule = await loadIndexbindBuildModule();
|
|
8
9
|
const rootDir = path.resolve(options.rootDir);
|
|
@@ -102,7 +103,7 @@ async function walkDirectory(absoluteDirectoryPath, relativeDirectoryPath, visit
|
|
|
102
103
|
results.push(indexFile);
|
|
103
104
|
}
|
|
104
105
|
for (const entry of entries) {
|
|
105
|
-
if (entry.name
|
|
106
|
+
if (isIgnoredContentName(entry.name)) {
|
|
106
107
|
continue;
|
|
107
108
|
}
|
|
108
109
|
const absoluteEntryPath = path.join(absoluteDirectoryPath, entry.name);
|
|
@@ -160,7 +161,7 @@ async function inspectDirectoryShape(directoryPath) {
|
|
|
160
161
|
let hasExtraMarkdownFiles = false;
|
|
161
162
|
let hasAssetFiles = false;
|
|
162
163
|
for (const entry of entries) {
|
|
163
|
-
if (entry.name
|
|
164
|
+
if (isIgnoredContentName(entry.name)) {
|
|
164
165
|
continue;
|
|
165
166
|
}
|
|
166
167
|
const absoluteEntryPath = path.join(directoryPath, entry.name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdorigin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Markdown-first publishing for humans and agents.",
|
|
6
6
|
"repository": {
|
|
@@ -66,9 +66,11 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"gray-matter": "^4.0.3",
|
|
69
|
+
"rehype-raw": "^7.0.0",
|
|
70
|
+
"rehype-stringify": "^10.0.1",
|
|
69
71
|
"remark": "^15.0.1",
|
|
70
72
|
"remark-gfm": "^4.0.1",
|
|
71
|
-
"remark-
|
|
73
|
+
"remark-rehype": "^11.1.2",
|
|
72
74
|
"tsx": "^4.20.5"
|
|
73
75
|
},
|
|
74
76
|
"devDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type TemplateName = 'document' | 'catalog';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|