You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`task public:preview`| no |the site as it will be published|
25
25
26
-
`zensical serve` rebuilds into `site/` on every change, which would overwrite whatever the
27
-
post-build steps produce - so its preview has no tag listings and still loads `glightbox`
28
-
from a CDN. `task preview` builds once with every post-build step and serves the result on
29
-
port 8001 (override with `PORT=…`). Use `serve` while writing prose, `preview` before you
30
-
trust what you see.
26
+
Use `serve` while writing prose. It rebuilds into `site/` on every change, which overwrites
27
+
what the post-build steps produced, so it loads `glightbox` and the ResizeObserver polyfill
28
+
from a CDN instead of from the vendored copies - invisible on screen, and nothing
29
+
downstream trusts a `site/` left behind that way.
30
+
31
+
`task public:preview` is the one to run before publishing: it deploys into a throwaway copy
32
+
of the `published` branch, serves that on port 8002 (override with `PORT=…`), and deletes
33
+
the branch again when you stop it. Because it is `public:deploy` pointed at a scratch
34
+
branch, what it serves is what publishing produces - versioned URLs, the version selector,
35
+
the outdated-version banner and the root redirect included.
31
36
32
37
Two Material for MkDocs features are **not yet implemented by Zensical** and are
33
38
therefore missing from the output. They are tracked in `tools/check_zensical_output.py`,
@@ -45,10 +50,29 @@ check** - the build fails if any of it regresses:
45
50
| Feature | Replaced by |
46
51
| :------ | :---------- |
47
52
| Self-hosted fonts |`docs/assets/fonts.css` plus `theme.font: false`|
48
-
|`tablesort`, `glightbox`| vendored under `docs/assets/`; `tools/localize_bundle_assets.py` rewrites the CDN URLs Zensical bakes into its JS bundle |
53
+
|`tablesort`, `glightbox`, `resize-observer-polyfill`| vendored under `docs/assets/`; `tools/localize_bundle_assets.py` rewrites the CDN URLs Zensical bakes into its JS bundle |
0 commit comments