@pagenary/publisher 2026.6.5 → 2026.6.7

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/README.md CHANGED
@@ -361,6 +361,7 @@ The full documentation site is published at **[docs.pagenary.com](https://docs.p
361
361
 
362
362
  - [Getting Started](docs/GETTING-STARTED.md) — **start here**: zero to a published site with the npm package
363
363
  - [Quick Start Guide](docs/QUICKSTART.md) — step-by-step tenant creation
364
+ - [Publish with GitHub/Gitea Actions](docs/PUBLISHING.md) — make any docs repo Pagenary-ready: copy-paste CI workflows + auto-discovery
364
365
  - [Tenant Configuration](docs/TENANT-CONFIG.md) — all config options (branding, theme, SEO)
365
366
  - [Architecture](docs/ARCHITECTURE.md) — system design
366
367
  - [API Reference](docs/API.md) — module documentation
@@ -0,0 +1,14 @@
1
+ # Pagenary publishing examples
2
+
3
+ Copy-paste starting points for making any docs repo "Pagenary ready". See
4
+ [`../docs/PUBLISHING.md`](../docs/PUBLISHING.md) for the full walkthrough.
5
+
6
+ - `tenants.json` — the minimal registry: point Pagenary at your `docs/` folder.
7
+ No `manifest.json` needed; navigation and titles are auto-discovered.
8
+ - `github-pages.yml` — drop into `.github/workflows/` to build + deploy to
9
+ GitHub Pages.
10
+ - `gitea-pages.yml` — drop into `.gitea/workflows/` to build + publish to a
11
+ `pages` branch.
12
+
13
+ `@pagenary/publisher` is published to the Gitea registry; the workflows install
14
+ with `--registry=https://git.integrolabs.net/api/packages/pagenary/npm/`.
@@ -0,0 +1,33 @@
1
+ # Pagenary → Gitea Pages
2
+ # Copy to .gitea/workflows/docs.yml in your docs repo. Gitea Pages serves a
3
+ # branch (commonly "pages"); this builds the site and force-pushes it there.
4
+ # Set a PAGES_TOKEN secret (a token with repo write). See ../docs/PUBLISHING.md.
5
+ name: Publish docs
6
+
7
+ on:
8
+ push:
9
+ branches: [main]
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ build-and-publish:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: actions/setup-node@v4
18
+ with:
19
+ node-version: '20'
20
+ - name: Build the docs site
21
+ run: |
22
+ npm install --no-save @pagenary/publisher \
23
+ --registry=https://git.integrolabs.net/api/packages/pagenary/npm/
24
+ npx pagenary build:tenants mydocs --target ./_site
25
+ - name: Publish to the pages branch
26
+ env:
27
+ GIT_TOKEN: ${{ secrets.PAGES_TOKEN }}
28
+ run: |
29
+ cd ./_site/mydocs
30
+ touch .nojekyll
31
+ git init -q && git add -A
32
+ git -c user.name=ci -c user.email=ci@local commit -qm "docs build"
33
+ git push -f "https://oauth2:${GIT_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" HEAD:pages
@@ -0,0 +1,46 @@
1
+ # Pagenary → GitHub Pages
2
+ # Copy to .github/workflows/docs.yml in your docs repo, then enable Pages
3
+ # (Settings → Pages → Source: GitHub Actions). Adjust the tenant id ("mydocs")
4
+ # and the source path in tenants.json. See ../docs/PUBLISHING.md.
5
+ name: Publish docs
6
+
7
+ on:
8
+ push:
9
+ branches: [main]
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+ pages: write
15
+ id-token: write
16
+
17
+ concurrency:
18
+ group: pages
19
+ cancel-in-progress: true
20
+
21
+ jobs:
22
+ build:
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: actions/setup-node@v4
27
+ with:
28
+ node-version: '20'
29
+ - name: Build the docs site
30
+ run: |
31
+ npm install --no-save @pagenary/publisher \
32
+ --registry=https://git.integrolabs.net/api/packages/pagenary/npm/
33
+ npx pagenary build:tenants mydocs --target ./_site
34
+ - uses: actions/upload-pages-artifact@v3
35
+ with:
36
+ path: ./_site/mydocs
37
+
38
+ deploy:
39
+ needs: build
40
+ runs-on: ubuntu-latest
41
+ environment:
42
+ name: github-pages
43
+ url: ${{ steps.deployment.outputs.page_url }}
44
+ steps:
45
+ - id: deployment
46
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,9 @@
1
+ {
2
+ "tenants": [
3
+ {
4
+ "id": "mydocs",
5
+ "source": { "type": "local", "path": "./docs" },
6
+ "config": { "title": "My Project Docs", "brandMark": "My", "brandSub": "Docs" }
7
+ }
8
+ ]
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagenary/publisher",
3
- "version": "2026.6.5",
3
+ "version": "2026.6.7",
4
4
  "type": "module",
5
5
  "description": "Multi-tenant static publishing component for Pagenary platform.",
6
6
  "license": "AGPL-3.0-or-later",
@@ -20,6 +20,7 @@
20
20
  "src/",
21
21
  "scripts/",
22
22
  "site/",
23
+ "examples/",
23
24
  "build.config.json",
24
25
  "tenants.schema.json",
25
26
  "tenants.json.example",
package/site/index.html CHANGED
@@ -21,7 +21,7 @@
21
21
  </script>
22
22
  <link rel="icon" type="image/png" href="./favicon.png" />
23
23
  <link rel="stylesheet" href="./styles.css" />
24
- <meta name="x-build" content="2026-06-15T21:46:01.346Z" />
24
+ <meta name="x-build" content="2026-06-15T22:05:17.343Z" />
25
25
  </head>
26
26
  <body>
27
27
  <a class="skip-link" href="#app">Skip to content</a>
package/site/robots.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  # Pagenary Docs
2
- # Generated: 2026-06-15T21:46:01.946Z
2
+ # Generated: 2026-06-15T22:05:17.919Z
3
3
 
4
4
  User-agent: *
5
5
  Allow: /