themekit-js 1.1.10 → 1.1.11
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/dist/node/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-
|
|
1
|
+
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-DOTF3XVC.js';
|
|
2
2
|
import { createLogger } from 'vite';
|
|
3
3
|
import 'path';
|
|
4
4
|
import 'shiki';
|
package/dist/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizePath } from 'vite';
|
|
2
2
|
export { loadEnv } from 'vite';
|
|
3
|
-
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-
|
|
4
|
-
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-
|
|
3
|
+
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-DOTF3XVC.js';
|
|
4
|
+
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-DOTF3XVC.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -37139,7 +37139,6 @@ const imagePlugin = (md, { lazyLoading } = {}, base) => {
|
|
|
37139
37139
|
md.renderer.rules.image = (tokens, idx, options, env, self) => {
|
|
37140
37140
|
const token = tokens[idx];
|
|
37141
37141
|
let url = token.attrGet("src");
|
|
37142
|
-
console.log(url);
|
|
37143
37142
|
const pattern = /[?&]([^=#]+)=([^&#]*)/g;
|
|
37144
37143
|
let match;
|
|
37145
37144
|
while ((match = pattern.exec(url == null ? "" : url)) !== null) {
|
|
@@ -46716,7 +46715,7 @@ function escapeHtml(string) {
|
|
|
46716
46715
|
|
|
46717
46716
|
var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
|
|
46718
46717
|
|
|
46719
|
-
var version = "1.1.
|
|
46718
|
+
var version = "1.1.11";
|
|
46720
46719
|
|
|
46721
46720
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46722
46721
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|
|
@@ -47030,6 +47029,7 @@ async function build(root, buildOptions = {}) {
|
|
|
47030
47029
|
if (fs$a.existsSync(checkFile)) {
|
|
47031
47030
|
const indexFile = path$q.resolve(siteConfig.outDir, path$q.dirname(page), "index.html");
|
|
47032
47031
|
if (!fs$a.existsSync(indexFile)) {
|
|
47032
|
+
console.log("copy:" + indexFile);
|
|
47033
47033
|
fs$a.writeFile(indexFile, fs$a.readFileSync(checkFile));
|
|
47034
47034
|
}
|
|
47035
47035
|
}
|