@ahmedrowaihi/8n 0.3.0 → 0.4.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.
Files changed (2) hide show
  1. package/dist/index.mjs +19 -7
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -15070,10 +15070,7 @@ const pipelineType = ZodPipeline.create;
15070
15070
  const configSchema = objectType({
15071
15071
  content: stringType().default("./content"),
15072
15072
  locales: arrayType(stringType()).min(1).default(["en"]),
15073
- github: objectType({
15074
- repo: stringType(),
15075
- branch: stringType().default("main")
15076
- }).optional(),
15073
+ github: objectType({ repo: stringType() }).optional(),
15077
15074
  siteName: stringType().optional(),
15078
15075
  version: stringType().optional(),
15079
15076
  sections: recordType(unionType([literalType(false), objectType({
@@ -15084,7 +15081,8 @@ const configSchema = objectType({
15084
15081
  nav: objectType({ links: arrayType(objectType({
15085
15082
  text: stringType(),
15086
15083
  url: stringType()
15087
- })).default([]) }).default({})
15084
+ })).default([]) }).default({}),
15085
+ animations: booleanType().default(true)
15088
15086
  });
15089
15087
 
15090
15088
  //#endregion
@@ -37053,9 +37051,10 @@ function buildEnv(config, contentDir) {
37053
37051
  CONTENT_DIR: contentDir,
37054
37052
  LOCALES: (config.locales ?? ["en"]).join(","),
37055
37053
  NEXT_PUBLIC_SITE_NAME: config.siteName ?? "Docs",
37056
- GITHUB_REPO: config.github?.repo,
37054
+ NEXT_PUBLIC_GITHUB_REPO: config.github?.repo,
37057
37055
  SECTIONS: JSON.stringify(config.sections ?? {}),
37058
- NAV_LINKS: JSON.stringify(config.nav?.links ?? [])
37056
+ NEXT_PUBLIC_NAV_LINKS: JSON.stringify(config.nav?.links ?? []),
37057
+ NEXT_PUBLIC_ANIMATIONS: config.animations === false ? "false" : "true"
37059
37058
  };
37060
37059
  }
37061
37060
 
@@ -37159,6 +37158,19 @@ description: How to install and set up the project.
37159
37158
  ## Installation
37160
37159
 
37161
37160
  Add your installation steps here.
37161
+ `,
37162
+ ["content/home/en/index.mdx"]: `---
37163
+ title: Home
37164
+ ---
37165
+
37166
+ <div className="flex flex-col items-center justify-center text-center flex-1 gap-6 px-6 py-24">
37167
+ <h1 className="text-4xl sm:text-5xl md:text-6xl font-bold leading-tight tracking-tight max-w-2xl">
37168
+ Welcome to your docs.
37169
+ </h1>
37170
+ <p className="text-muted-foreground text-lg max-w-md leading-relaxed">
37171
+ Edit \`content/home/en/index.mdx\` to customize this page.
37172
+ </p>
37173
+ </div>
37162
37174
  `,
37163
37175
  ["content/changelog/en/meta.json"]: JSON.stringify({ title: "Changelog" }, null, 2) + "\n",
37164
37176
  ["content/changelog/en/v1.0.0.mdx"]: `---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahmedrowaihi/8n",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Thmanyah Docs — run your docs site from your content directory",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,7 +24,7 @@
24
24
  "picocolors": "^1.1.0",
25
25
  "tinyexec": "^1.0.0",
26
26
  "tsdown": "^0.20.0",
27
- "@ahmedrowaihi/8n-core": "0.1.0"
27
+ "@ahmedrowaihi/8n-core": "0.2.0"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "tsdown",