@heroiclands/package-build 22.23.0 → 22.25.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.
Files changed (74) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +1 -0
  3. package/assets/styles/content-base.css +45 -0
  4. package/ci/check-banners.mjs +183 -0
  5. package/ci/ci-steps.mjs +21 -11
  6. package/docs/authoring/assets.md +15 -0
  7. package/docs/authoring/links-and-markup.md +69 -2
  8. package/docs/commands.md +18 -19
  9. package/docs/configuration.md +2 -6
  10. package/docs/content-format.md +9 -0
  11. package/docs/guides/module-project.md +2 -2
  12. package/docs/guides/site.md +41 -0
  13. package/docs/project-setup.md +4 -4
  14. package/docs/reference/format-details.md +3 -3
  15. package/docs/reference/theme-pages.md +496 -0
  16. package/engine/art-slots.mjs +2 -1
  17. package/engine/content-blocks.mjs +83 -14
  18. package/engine/content-figures.mjs +18 -3
  19. package/engine/content-poetry.mjs +61 -0
  20. package/engine/foreign-catalog.mjs +2 -1
  21. package/engine/helpers.mjs +5 -3
  22. package/engine/note-vocabulary.mjs +2 -1
  23. package/engine/pdf-build.mjs +1 -1
  24. package/engine/pdf-render.mjs +32 -2
  25. package/engine/rank-ladder.mjs +32 -0
  26. package/engine/site-config.mjs +19 -24
  27. package/hugo-theme/data/banners.yaml +69 -0
  28. package/hugo-theme/layouts/404.html +85 -0
  29. package/hugo-theme/layouts/_default/baseof.html +64 -0
  30. package/hugo-theme/layouts/_default/list.html +139 -0
  31. package/hugo-theme/layouts/_default/single.html +4 -0
  32. package/hugo-theme/layouts/blog/list.html +54 -0
  33. package/hugo-theme/layouts/blog-post/single.html +36 -0
  34. package/hugo-theme/layouts/index.html +75 -0
  35. package/hugo-theme/layouts/partials/banner-url.html +117 -0
  36. package/hugo-theme/layouts/partials/cdn-url.html +36 -0
  37. package/hugo-theme/layouts/partials/draft-notice.html +41 -0
  38. package/hugo-theme/layouts/partials/draft-state.html +26 -0
  39. package/hugo-theme/layouts/partials/footer.html +29 -0
  40. package/hugo-theme/layouts/partials/header.html +35 -0
  41. package/hugo-theme/layouts/partials/hero-banner.html +86 -0
  42. package/hugo-theme/layouts/partials/holdings/entry.html +21 -0
  43. package/hugo-theme/layouts/partials/holdings/kind-groups.html +71 -0
  44. package/hugo-theme/layouts/partials/holdings.html +61 -0
  45. package/hugo-theme/layouts/partials/infobox/entry.html +15 -0
  46. package/hugo-theme/layouts/partials/infobox/items.html +26 -0
  47. package/hugo-theme/layouts/partials/infobox/section.html +56 -0
  48. package/hugo-theme/layouts/partials/infobox/value.html +43 -0
  49. package/hugo-theme/layouts/partials/infobox.html +57 -0
  50. package/hugo-theme/layouts/partials/page-body.html +154 -0
  51. package/hugo-theme/layouts/partials/place-map.html +9 -0
  52. package/hugo-theme/layouts/partials/related.html +121 -0
  53. package/hugo-theme/layouts/partials/search.html +84 -0
  54. package/hugo-theme/layouts/partials/site-url.html +32 -0
  55. package/hugo-theme/layouts/partials/tags.html +30 -0
  56. package/hugo-theme/layouts/partials/toc.html +28 -0
  57. package/hugo-theme/layouts/partials/warn-missing-banner.html +3 -0
  58. package/hugo-theme/layouts/shortcodes/cartouche.html +64 -0
  59. package/hugo-theme/layouts/shortcodes/exturl.html +12 -0
  60. package/hugo-theme/layouts/shortcodes/glyph.html +43 -0
  61. package/hugo-theme/layouts/shortcodes/pagelist.html +63 -0
  62. package/hugo-theme/static/css/sohl-icons.css +57 -0
  63. package/hugo-theme/static/css/style.css +2982 -0
  64. package/hugo-theme/static/fonts/game-icons-kb.woff2 +0 -0
  65. package/hugo-theme/static/img/banners/takheperu-hieroglyphs.svg +1 -0
  66. package/hugo-theme/static/img/cartouches/takheperu.svg +1 -0
  67. package/hugo-theme/theme.toml +11 -0
  68. package/package.json +5 -2
  69. package/types/engine/art-slots.d.mts +2 -1
  70. package/types/engine/content-figures.d.mts +1 -0
  71. package/types/engine/content-poetry.d.mts +19 -0
  72. package/types/engine/helpers.d.mts +5 -3
  73. package/types/engine/rank-ladder.d.mts +8 -0
  74. package/types/engine/site-config.d.mts +9 -9
@@ -65,16 +65,18 @@ export function fetchNavigation(config: object, { url, fetch }?: {
65
65
  }): Promise<string>;
66
66
  /**
67
67
  * The `themesDir` for a repository, as the path from `build/hugo/` to the
68
- * directory holding the installed theme.
68
+ * directory holding the theme.
69
69
  *
70
- * Resolved the way Node resolves a package — `node_modules/` in the
71
- * repository root, then in each parent — and written as a path rather than
72
- * assumed, so a worktree that resolves its parent's install says so in the
73
- * generated file.
70
+ * The theme ships inside this package at `hugo-theme/`, so the directory Hugo
71
+ * reads themes from is {@link PACKAGE_ROOT}. `theme` stays {@link THEME}, so
72
+ * Hugo opens `<themesDir>/hugo-theme/layouts`.
73
+ *
74
+ * Written as a path rather than assumed: `build/hugo/` and the installed
75
+ * package sit at whatever distance the install put them, and a worktree
76
+ * resolving its parent's install says so in the generated file.
74
77
  *
75
78
  * @param {string} rootDir - The repository root.
76
79
  * @returns {string} The relative path, POSIX-separated.
77
- * @throws {Error} When the theme is installed nowhere above the root.
78
80
  */
79
81
  export function resolveThemesDir(rootDir: string): string;
80
82
  /**
@@ -142,9 +144,7 @@ export const HUGO_CONTENT: "build/hugo/content";
142
144
  * site-root` writes `_headers` beside it and the search index inside it.
143
145
  */
144
146
  export const DEPLOY_ROOT: "build/site";
145
- /** The npm package the shared theme arrives as. */
146
- export const THEME_PACKAGE: "@heroiclands/hugo-theme";
147
- /** The theme's name under `themesDir`, which is the package's unscoped name. */
147
+ /** The theme's directory name under `themesDir`. */
148
148
  export const THEME: "hugo-theme";
149
149
  /** The locale every site renders in. */
150
150
  export const LOCALE: "en-us";