@ahmedrowaihi/8n 6.0.38 → 6.0.40
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/index.mjs +8 -5
- package/package.json +1 -1
- package/starter/package.json +1 -1
- package/starter/src/lib/mdx-plugins.js +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3736,7 +3736,7 @@ async function checkSelfUpdate() {
|
|
|
3736
3736
|
});
|
|
3737
3737
|
if (!res.ok) return;
|
|
3738
3738
|
const { version: latest } = await res.json();
|
|
3739
|
-
const current = "6.0.
|
|
3739
|
+
const current = "6.0.40";
|
|
3740
3740
|
if (latest !== current) console.log(pc.yellow("⚠") + pc.dim(` new version available: `) + pc.cyan(latest) + pc.dim(` (current: ${current}) — run `) + pc.cyan("npm i -g @ahmedrowaihi/8n") + pc.dim(" to update"));
|
|
3741
3741
|
} catch {}
|
|
3742
3742
|
}
|
|
@@ -3798,13 +3798,16 @@ function buildEnv({ config, contentDir, staticExport = false }) {
|
|
|
3798
3798
|
const ghRepo = process.env.GITHUB_REPOSITORY;
|
|
3799
3799
|
const ghServer = process.env.GITHUB_SERVER_URL ?? "https://github.com";
|
|
3800
3800
|
const ghPagesUrl = ghRepo ? `${ghServer}/${ghRepo}` : void 0;
|
|
3801
|
+
const vercelOwner = process.env.VERCEL_GIT_REPO_OWNER;
|
|
3802
|
+
const vercelSlug = process.env.VERCEL_GIT_REPO_SLUG;
|
|
3803
|
+
const vercelGithubUrl = vercelOwner && vercelSlug && process.env.VERCEL_GIT_PROVIDER === "github" ? `https://github.com/${vercelOwner}/${vercelSlug}` : void 0;
|
|
3801
3804
|
const ghPagesBasePath = ghRepo ? `/${ghRepo.split("/")[1]}` : void 0;
|
|
3802
3805
|
return {
|
|
3803
3806
|
...process.env,
|
|
3804
3807
|
CONTENT_DIR: contentDir,
|
|
3805
3808
|
LOCALES: (config.locales ?? ["en"]).join(","),
|
|
3806
3809
|
NEXT_PUBLIC_SITE_NAME: config.siteName ?? "Docs",
|
|
3807
|
-
NEXT_PUBLIC_GITHUB_REPO: config.github?.repo ?? process.env.NEXT_PUBLIC_GITHUB_REPO ?? ghPagesUrl,
|
|
3810
|
+
NEXT_PUBLIC_GITHUB_REPO: config.github?.repo ?? process.env.NEXT_PUBLIC_GITHUB_REPO ?? ghPagesUrl ?? vercelGithubUrl,
|
|
3808
3811
|
SECTIONS: JSON.stringify(config.sections ?? {}),
|
|
3809
3812
|
NEXT_PUBLIC_NAV_LINKS: JSON.stringify(config.nav?.links ?? []),
|
|
3810
3813
|
NEXT_PUBLIC_ANIMATIONS: config.animations === false ? "false" : "true",
|
|
@@ -3846,7 +3849,7 @@ async function dev() {
|
|
|
3846
3849
|
async function build({ server = false } = {}) {
|
|
3847
3850
|
const { config, contentDir } = await resolveProject();
|
|
3848
3851
|
const projectDir = process.cwd();
|
|
3849
|
-
console.log(pc.cyan("8n") + pc.dim(` v6.0.
|
|
3852
|
+
console.log(pc.cyan("8n") + pc.dim(` v6.0.40 build → ${contentDir}`));
|
|
3850
3853
|
if (server) await runNextFlat(projectDir, "build", buildEnv({
|
|
3851
3854
|
config,
|
|
3852
3855
|
contentDir,
|
|
@@ -4164,7 +4167,7 @@ async function mcp() {
|
|
|
4164
4167
|
const mcpDir = join(getStarterDir(), "content", "mcp", "en");
|
|
4165
4168
|
const server = new McpServer({
|
|
4166
4169
|
name: "8n",
|
|
4167
|
-
version: "6.0.
|
|
4170
|
+
version: "6.0.40"
|
|
4168
4171
|
});
|
|
4169
4172
|
server.registerTool("read_me", {
|
|
4170
4173
|
description: "Returns how to use the 8n MCP tools. Call this BEFORE documenting anything with 8n.",
|
|
@@ -4305,7 +4308,7 @@ Example: get_component({ name: "components" }) returns all available MDX compone
|
|
|
4305
4308
|
|
|
4306
4309
|
//#endregion
|
|
4307
4310
|
//#region src/index.ts
|
|
4308
|
-
const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.
|
|
4311
|
+
const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.40").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
|
|
4309
4312
|
if (cmd.opts().debug) process.env.DEBUG_8N = "1";
|
|
4310
4313
|
});
|
|
4311
4314
|
program.command("init").description("Scaffold a new docs project in the current directory").action(init);
|
package/package.json
CHANGED
package/starter/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{rehypeCodeDefaultOptions as r}from"fumadocs-core/mdx-plugins/rehype-code";import{remarkMdxMermaid as e}from"fumadocs-core/mdx-plugins/remark-mdx-mermaid";import t from"remark-math";import m from"rehype-katex";export const codeOptions={themes:{light:"catppuccin-latte",dark:"vesper"},langs:["js","jsx","ts","tsx","css","html","bash","sh","json","yaml","mdx","md"
|
|
1
|
+
import{rehypeCodeDefaultOptions as r}from"fumadocs-core/mdx-plugins/rehype-code";import{remarkMdxMermaid as e}from"fumadocs-core/mdx-plugins/remark-mdx-mermaid";import t from"remark-math";import m from"rehype-katex";export const codeOptions={themes:{light:"catppuccin-latte",dark:"vesper"},langs:["js","jsx","ts","tsx","css","html","bash","sh","json","yaml","mdx","md"],transformers:[...r.transformers??[],{name:"rtl-spans",span(r){let e=r.children.map(r=>"text"===r.type?r.value:"").join("");/[\u0600-\u06FF]/.test(e)&&/^\s*(?:\/\/|#|--|%|;)/.test(e)&&(r.properties.dir="rtl")}}]};export{e as remarkMdxMermaid,t as remarkMath,m as rehypeKatex};
|