upcontent 0.1.2 → 0.1.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.
@@ -42,7 +42,6 @@
42
42
  "navigation": {
43
43
  "roots": [
44
44
  "index.md",
45
- "README.md",
46
45
  "getting-started",
47
46
  "guides",
48
47
  "customization",
@@ -73,7 +72,8 @@
73
72
  "AGENTS.md",
74
73
  "CLAUDE.md",
75
74
  "CONTEXT.md",
76
- "PRODUCT.md"
75
+ "PRODUCT.md",
76
+ "README.md"
77
77
  ]
78
78
  },
79
79
  "labelOverrides": {
package/README.md CHANGED
@@ -1,8 +1,3 @@
1
- ---
2
- heading: Upcontent
3
- description: Turn a documentation repository into a fast, searchable, customizable static portal.
4
- ---
5
-
6
1
  <div align="center">
7
2
 
8
3
  # Upcontent
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "upcontent",
3
3
  "type": "module",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "packageManager": "pnpm@10.20.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,13 +1,12 @@
1
- import { existsSync, readFileSync } from 'node:fs'
1
+ import { existsSync } from 'node:fs'
2
2
 
3
- const htmlPath = existsSync('dist/readme/index.html') ? 'dist/readme/index.html' : 'dist/index.html'
4
- const html = readFileSync(htmlPath, 'utf8')
3
+ const htmlPath = 'dist/index.html'
5
4
  const requiredAssets = ['assets/readme/portal-home.png', 'assets/readme/portal-showcase.png']
6
5
 
6
+ if (!existsSync(htmlPath)) throw new Error(`Golden build is missing: ${htmlPath}`)
7
+
7
8
  for (const asset of requiredAssets) {
8
9
  if (!existsSync(`dist/${asset}`)) throw new Error(`Golden build is missing: dist/${asset}`)
9
- if (existsSync('dist/readme/index.html') && !existsSync(`dist/readme/${asset}`)) {
10
- throw new Error(`Golden build is missing README route asset: dist/readme/${asset}`)
11
- }
12
- if (!html.includes(asset)) throw new Error(`Golden build does not reference: ${asset}`)
13
10
  }
11
+
12
+ if (existsSync('dist/readme/index.html')) throw new Error('Golden build unexpectedly published README as a portal route')