gethtmlpress 0.4.2 → 0.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gethtmlpress",
3
- "version": "0.4.2",
3
+ "version": "0.5.1",
4
4
  "description": "Turn a folder of HTML pages into a site: one layout, one theme, live reload, made for agents",
5
5
  "keywords": [
6
6
  "agents",
@@ -30,11 +30,11 @@
30
30
  "node": ">=20"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@htmlpress/linux-x64": "0.4.2",
34
- "@htmlpress/linux-arm64": "0.4.2",
35
- "@htmlpress/darwin-x64": "0.4.2",
36
- "@htmlpress/darwin-arm64": "0.4.2",
37
- "@htmlpress/win32-x64": "0.4.2",
38
- "@htmlpress/win32-arm64": "0.4.2"
33
+ "@htmlpress/linux-x64": "0.5.1",
34
+ "@htmlpress/linux-arm64": "0.5.1",
35
+ "@htmlpress/darwin-x64": "0.5.1",
36
+ "@htmlpress/darwin-arm64": "0.5.1",
37
+ "@htmlpress/win32-x64": "0.5.1",
38
+ "@htmlpress/win32-arm64": "0.5.1"
39
39
  }
40
40
  }
@@ -74,6 +74,7 @@ file with `<meta name="language" content="<code>">`. It pairs with the original
74
74
  language prefix, so a renamed one needs the same `<meta name="path">`. Untranslated pages stay
75
75
  listed in every language with a badge and link to the original. Without a translated home,
76
76
  `/<code>/` redirects to the language's first page.
77
+ The same holds for the default language without an `index.html`.
77
78
 
78
79
  ## Headings
79
80
 
@@ -161,7 +162,7 @@ component, not bare text.
161
162
 
162
163
  ```sh
163
164
  htmlpress build <root> --json # {"output": "...", "pages": N, "files": N}; errors on stderr
164
- htmlpress start <root> # http://localhost:8000 (or the next free port to 8009); --host for the network
165
+ htmlpress start <root> # http://localhost:8000 (or the next free port to 8009), --host for the network, --open [path] in the browser
165
166
  htmlpress start <root> --json # {"url": "...", "network": []} on one line once serving
166
167
  htmlpress --llms # every command's input and output schema
167
168
  ```
@@ -26,7 +26,8 @@ htmlpress clear # removes .htmlpress/build
26
26
 
27
27
  The output is `.htmlpress/build/`: an `index.html` per page in its own folder
28
28
  (`guides/build.html` at `guides/build/index.html`), `404.html`,
29
- `robots.txt`, `_headers`, a Markdown copy of each page and `llms.txt` for agents, the skills
29
+ `robots.txt`, `_headers`, `_redirects` (when a language has no home page, its prefix to
30
+ its first page, which Cloudflare and Netlify answer on the server), a Markdown copy of each page and `llms.txt` for agents, the skills
30
31
  under `.well-known/agent-skills/`, the theme under `_htmlpress/`, and every other project file.
31
32
  With `site` set it adds `sitemap.xml`. Never edit the output: every build replaces it.
32
33