@docubook/flame 1.5.3 → 1.6.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 (37) hide show
  1. package/.docu/lib/build.deno.js +4 -4
  2. package/.docu/lib/build.impl-N2MBT3CM.js +12 -0
  3. package/.docu/lib/build.node.js +4 -4
  4. package/.docu/lib/{chunk-J5NMYSBJ.js → chunk-4IQXHHPF.js} +5 -2
  5. package/.docu/lib/{chunk-YI76L7LB.js → chunk-IJFMQFWW.js} +69 -25
  6. package/.docu/lib/{chunk-YENO4SVR.js → chunk-JTH4JBBS.js} +38 -5
  7. package/.docu/lib/chunk-TI6M4643.js +204 -0
  8. package/.docu/lib/{chunk-EIKBL7SD.js → chunk-UUS45SUC.js} +2 -2
  9. package/.docu/lib/{chunk-WCMRAAWH.js → chunk-Y2TAEAUQ.js} +2 -2
  10. package/.docu/lib/{chunk-VX4HLVHE.js → chunk-ZA5QB5UK.js} +4 -4
  11. package/.docu/lib/clean.js +2 -2
  12. package/.docu/lib/deploy.deno.js +2 -2
  13. package/.docu/lib/deploy.node.js +2 -2
  14. package/.docu/lib/preview.deno.js +3 -3
  15. package/.docu/lib/preview.node.js +3 -3
  16. package/.docu/lib/server.deno.js +4 -4
  17. package/.docu/lib/server.node.js +4 -4
  18. package/.docu/node/build.impl.ts +15 -3
  19. package/.docu/node/build.ts +6 -0
  20. package/.docu/node/client.ts +38 -13
  21. package/.docu/node/deploy.shared.ts +147 -12
  22. package/.docu/node/deploy.ts +141 -30
  23. package/.docu/node/html.shared.ts +19 -0
  24. package/.docu/node/html.ts +17 -23
  25. package/.docu/node/hydrate.node.ts +74 -39
  26. package/.docu/node/hydrate.ts +74 -48
  27. package/.docu/node/paths.ts +7 -5
  28. package/.docu/node/seo.ts +42 -0
  29. package/.docu/node/server-routes.ts +2 -1
  30. package/.docu/node/types.ts +2 -0
  31. package/bin/cli.js +19 -6
  32. package/docu.schema.json +5 -1
  33. package/package.json +4 -4
  34. package/template/docs/assets/images/og.png +0 -0
  35. package/template/docu.json +2 -1
  36. package/.docu/lib/build.impl-O3Z5XIGM.js +0 -12
  37. package/.docu/lib/chunk-7VXEOH7X.js +0 -79
@@ -1,79 +0,0 @@
1
- import {
2
- DIST_DIR,
3
- PROJECT_ROOT
4
- } from "./chunk-J5NMYSBJ.js";
5
-
6
- // .docu/node/deploy.shared.ts
7
- import { writeFile, mkdir } from "node:fs/promises";
8
- import { existsSync } from "node:fs";
9
- import { join } from "node:path";
10
- var WORKFLOW_DIR = join(PROJECT_ROOT, ".github/workflows");
11
- var WORKFLOW_FILE = join(WORKFLOW_DIR, "deploy.yml");
12
- async function runDeploy() {
13
- console.log("\u{1F4E6} Building for production...\n");
14
- process.env.NODE_ENV = "production";
15
- const { runBuildCli } = await import("./build.impl-O3Z5XIGM.js");
16
- await runBuildCli();
17
- await writeFile(join(DIST_DIR, ".nojekyll"), "");
18
- if (!existsSync(WORKFLOW_FILE)) {
19
- await mkdir(WORKFLOW_DIR, { recursive: true });
20
- await writeFile(WORKFLOW_FILE, GITHUB_ACTIONS_WORKFLOW);
21
- console.log("\n\u{1F4C4} Created .github/workflows/deploy.yml");
22
- }
23
- console.log("\n\u2705 Ready to deploy!");
24
- console.log(" Output: .docu/dist/");
25
- console.log(" Push to GitHub and enable Pages (Settings \u2192 Pages \u2192 Source: GitHub Actions)");
26
- }
27
- var GITHUB_ACTIONS_WORKFLOW = `name: Deploy to GitHub Pages
28
-
29
- on:
30
- push:
31
- branches: [main]
32
- workflow_dispatch:
33
-
34
- permissions:
35
- contents: read
36
- pages: write
37
- id-token: write
38
-
39
- concurrency:
40
- group: "pages"
41
- cancel-in-progress: false
42
-
43
- jobs:
44
- build:
45
- runs-on: ubuntu-latest
46
- steps:
47
- - uses: actions/checkout@v4
48
- with:
49
- fetch-depth: 0
50
-
51
- - uses: actions/setup-node@v4
52
- with:
53
- node-version: 22
54
-
55
- - run: npm install
56
-
57
- - run: npm run build
58
-
59
- - name: Add .nojekyll
60
- run: touch .docu/dist/.nojekyll
61
-
62
- - uses: actions/upload-pages-artifact@v3
63
- with:
64
- path: .docu/dist
65
-
66
- deploy:
67
- environment:
68
- name: github-pages
69
- url: \${{ steps.deployment.outputs.page_url }}
70
- runs-on: ubuntu-latest
71
- needs: build
72
- steps:
73
- - id: deployment
74
- uses: actions/deploy-pages@v4
75
- `;
76
-
77
- export {
78
- runDeploy
79
- };