@pretextbook/pretext-html 0.17.0 → 0.18.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/dist/assets.d.ts CHANGED
@@ -1,15 +1,19 @@
1
1
  /**
2
2
  * Retargeting the asset URLs PreTeXt emits.
3
3
  *
4
- * A portable build inlines `latex-image` and `prefigure` SVGs directly into
5
- * the page (pretext-html.xsl, mode="svg-embedded"), so those need nothing from
6
- * us — they are read at transform time through the fetch shim. Everything else
7
- * — author-supplied images and media, sageplot, asymptote — is emitted as a
8
- * *runtime* URL under one of two fixed prefixes:
4
+ * Every asset a preview shows — author-supplied images and media, and
5
+ * everything `pretext generate` makes (latex-image, PreFigure, sageplot,
6
+ * asymptote) — is emitted as a *runtime* URL under one of two fixed prefixes:
9
7
  *
10
8
  * <img src="external/kitten.png">
9
+ * <img src="generated/latex-image/diagram.svg">
11
10
  * <img src="generated/sageplot/plot.svg">
12
11
  *
12
+ * (A portable build would instead inline the latex-image and PreFigure SVGs,
13
+ * reading them during the transform. The preview no longer builds portable,
14
+ * so those images reach the host here like the rest, and nothing has to read
15
+ * image files while rendering. See publication.ts.)
16
+ *
13
17
  * Those prefixes (`$external-directory` / `$generated-directory` in
14
18
  * publisher-variables.xsl) name directories a real build populates by copying
15
19
  * files next to the output HTML. The preview has no output directory, so the
package/dist/banner.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Dismissible "this is a live preview" warning banner.
3
3
  *
4
- * The preview forces `<html><platform portable="yes"/></html>` (see
5
- * {@link forcePortablePublication}) and skips the asset-generation step
4
+ * The preview forces a few publication settings of its own (see
5
+ * {@link forcePreviewPublication}) and skips the asset-generation step
6
6
  * entirely, so what an author sees while editing can genuinely differ from a
7
7
  * real build — different chunking, no locally generated images, etc. The
8
8
  * banner exists to say so, once, without nagging: it renders across the top