gethtmlpress 0.5.0 → 0.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gethtmlpress",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
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.
|
|
34
|
-
"@htmlpress/linux-arm64": "0.
|
|
35
|
-
"@htmlpress/darwin-x64": "0.
|
|
36
|
-
"@htmlpress/darwin-arm64": "0.
|
|
37
|
-
"@htmlpress/win32-x64": "0.
|
|
38
|
-
"@htmlpress/win32-arm64": "0.
|
|
33
|
+
"@htmlpress/linux-x64": "0.6.0",
|
|
34
|
+
"@htmlpress/linux-arm64": "0.6.0",
|
|
35
|
+
"@htmlpress/darwin-x64": "0.6.0",
|
|
36
|
+
"@htmlpress/darwin-arm64": "0.6.0",
|
|
37
|
+
"@htmlpress/win32-x64": "0.6.0",
|
|
38
|
+
"@htmlpress/win32-arm64": "0.6.0"
|
|
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
|
|
|
@@ -68,7 +68,8 @@ upgrade it misses the new defaults: escape only what you change.
|
|
|
68
68
|
`<htmlpress-skip>` at build time, every string in the page's language. The interactive ones,
|
|
69
69
|
`<htmlpress-nav-toggle>`, `<htmlpress-search>`, `<htmlpress-theme-toggle>`, `<htmlpress-toc-bar>`
|
|
70
70
|
(the phone's contents bar), `<htmlpress-shortcuts>` (the keyboard shortcuts menu, listing every key and disabling the ones no
|
|
71
|
-
control on the page announces with `aria-keyshortcuts
|
|
71
|
+
control on the page announces with `aria-keyshortcuts`, and `H`/`L` without the head's `<link rel="prev">`/`rel="next"`, which
|
|
72
|
+
`scripts/keys.js` follows across sections, from the home page on) and `<htmlpress-back-to-top>`, run in the browser; the first three get their button at build time,
|
|
72
73
|
so the header is whole on its first frame. A head script sets `data-scripted` on `<html>`:
|
|
73
74
|
without it those buttons stay hidden, so style anything that needs scripts under
|
|
74
75
|
`:root[data-scripted]`. An element with nothing to show is removed. The theme toggle, the
|
|
@@ -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
|
|
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
|
|