zudoku 0.74.2 → 0.74.3
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/cli/cli.js
CHANGED
|
@@ -3813,7 +3813,7 @@ import {
|
|
|
3813
3813
|
// package.json
|
|
3814
3814
|
var package_default = {
|
|
3815
3815
|
name: "zudoku",
|
|
3816
|
-
version: "0.74.
|
|
3816
|
+
version: "0.74.2",
|
|
3817
3817
|
type: "module",
|
|
3818
3818
|
sideEffects: [
|
|
3819
3819
|
"**/*.css",
|
|
@@ -6730,6 +6730,7 @@ var viteDocsPlugin = () => {
|
|
|
6730
6730
|
` basePath: "${config2.basePath ?? ""}",`,
|
|
6731
6731
|
` fileImports,`,
|
|
6732
6732
|
` defaultOptions: ${JSON.stringify(docsConfig.defaultOptions)},`,
|
|
6733
|
+
` publishMarkdown: ${JSON.stringify(docsConfig.publishMarkdown)},`,
|
|
6733
6734
|
`});`
|
|
6734
6735
|
);
|
|
6735
6736
|
await writePluginDebugCode(config2.__meta.rootDir, "docs-plugin", code);
|
|
@@ -7,8 +7,9 @@ declare global {
|
|
|
7
7
|
}) => string[] | undefined;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare const MdxPage: ({ mdxComponent: MdxComponent, basePath, frontmatter, defaultOptions, __filepath, tableOfContents, excerpt, }: PropsWithChildren<Omit<MDXImport, "default"> & {
|
|
10
|
+
export declare const MdxPage: ({ mdxComponent: MdxComponent, basePath, frontmatter, defaultOptions, publishMarkdown, __filepath, tableOfContents, excerpt, }: PropsWithChildren<Omit<MDXImport, "default"> & {
|
|
11
11
|
basePath: string;
|
|
12
12
|
mdxComponent: MDXImport["default"];
|
|
13
13
|
defaultOptions?: MarkdownPluginDefaultOptions;
|
|
14
|
+
publishMarkdown?: boolean;
|
|
14
15
|
}>) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -62,6 +62,7 @@ export const MdxPage = ({
|
|
|
62
62
|
basePath,
|
|
63
63
|
frontmatter = {},
|
|
64
64
|
defaultOptions,
|
|
65
|
+
publishMarkdown,
|
|
65
66
|
__filepath,
|
|
66
67
|
tableOfContents,
|
|
67
68
|
excerpt,
|
|
@@ -70,6 +71,7 @@ export const MdxPage = ({
|
|
|
70
71
|
basePath: string;
|
|
71
72
|
mdxComponent: MDXImport["default"];
|
|
72
73
|
defaultOptions?: MarkdownPluginDefaultOptions;
|
|
74
|
+
publishMarkdown?: boolean;
|
|
73
75
|
}
|
|
74
76
|
>) => {
|
|
75
77
|
const categoryTitle = useCurrentItem()?.categoryLabel;
|
|
@@ -154,6 +156,9 @@ export const MdxPage = ({
|
|
|
154
156
|
<Helmet>
|
|
155
157
|
<title>{pageTitle}</title>
|
|
156
158
|
{description && <meta name="description" content={description} />}
|
|
159
|
+
{publishMarkdown && (
|
|
160
|
+
<link rel="alternate" type="text/markdown" href={markdownUrl} />
|
|
161
|
+
)}
|
|
157
162
|
</Helmet>
|
|
158
163
|
|
|
159
164
|
<Typography className="max-w-full xl:w-full xl:max-w-3xl flex-1 shrink pt-(--padding-content-top)">
|
package/src/vite/plugin-docs.ts
CHANGED
|
@@ -189,6 +189,7 @@ const viteDocsPlugin = (): Plugin => {
|
|
|
189
189
|
` basePath: "${config.basePath ?? ""}",`,
|
|
190
190
|
` fileImports,`,
|
|
191
191
|
` defaultOptions: ${JSON.stringify(docsConfig.defaultOptions)},`,
|
|
192
|
+
` publishMarkdown: ${JSON.stringify(docsConfig.publishMarkdown)},`,
|
|
192
193
|
`});`,
|
|
193
194
|
);
|
|
194
195
|
|