@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.
- package/CHANGELOG.md +22 -0
- package/README.md +1 -0
- package/assets/styles/content-base.css +45 -0
- package/ci/check-banners.mjs +183 -0
- package/ci/ci-steps.mjs +21 -11
- package/docs/authoring/assets.md +15 -0
- package/docs/authoring/links-and-markup.md +69 -2
- package/docs/commands.md +18 -19
- package/docs/configuration.md +2 -6
- package/docs/content-format.md +9 -0
- package/docs/guides/module-project.md +2 -2
- package/docs/guides/site.md +41 -0
- package/docs/project-setup.md +4 -4
- package/docs/reference/format-details.md +3 -3
- package/docs/reference/theme-pages.md +496 -0
- package/engine/art-slots.mjs +2 -1
- package/engine/content-blocks.mjs +83 -14
- package/engine/content-figures.mjs +18 -3
- package/engine/content-poetry.mjs +61 -0
- package/engine/foreign-catalog.mjs +2 -1
- package/engine/helpers.mjs +5 -3
- package/engine/note-vocabulary.mjs +2 -1
- package/engine/pdf-build.mjs +1 -1
- package/engine/pdf-render.mjs +32 -2
- package/engine/rank-ladder.mjs +32 -0
- package/engine/site-config.mjs +19 -24
- package/hugo-theme/data/banners.yaml +69 -0
- package/hugo-theme/layouts/404.html +85 -0
- package/hugo-theme/layouts/_default/baseof.html +64 -0
- package/hugo-theme/layouts/_default/list.html +139 -0
- package/hugo-theme/layouts/_default/single.html +4 -0
- package/hugo-theme/layouts/blog/list.html +54 -0
- package/hugo-theme/layouts/blog-post/single.html +36 -0
- package/hugo-theme/layouts/index.html +75 -0
- package/hugo-theme/layouts/partials/banner-url.html +117 -0
- package/hugo-theme/layouts/partials/cdn-url.html +36 -0
- package/hugo-theme/layouts/partials/draft-notice.html +41 -0
- package/hugo-theme/layouts/partials/draft-state.html +26 -0
- package/hugo-theme/layouts/partials/footer.html +29 -0
- package/hugo-theme/layouts/partials/header.html +35 -0
- package/hugo-theme/layouts/partials/hero-banner.html +86 -0
- package/hugo-theme/layouts/partials/holdings/entry.html +21 -0
- package/hugo-theme/layouts/partials/holdings/kind-groups.html +71 -0
- package/hugo-theme/layouts/partials/holdings.html +61 -0
- package/hugo-theme/layouts/partials/infobox/entry.html +15 -0
- package/hugo-theme/layouts/partials/infobox/items.html +26 -0
- package/hugo-theme/layouts/partials/infobox/section.html +56 -0
- package/hugo-theme/layouts/partials/infobox/value.html +43 -0
- package/hugo-theme/layouts/partials/infobox.html +57 -0
- package/hugo-theme/layouts/partials/page-body.html +154 -0
- package/hugo-theme/layouts/partials/place-map.html +9 -0
- package/hugo-theme/layouts/partials/related.html +121 -0
- package/hugo-theme/layouts/partials/search.html +84 -0
- package/hugo-theme/layouts/partials/site-url.html +32 -0
- package/hugo-theme/layouts/partials/tags.html +30 -0
- package/hugo-theme/layouts/partials/toc.html +28 -0
- package/hugo-theme/layouts/partials/warn-missing-banner.html +3 -0
- package/hugo-theme/layouts/shortcodes/cartouche.html +64 -0
- package/hugo-theme/layouts/shortcodes/exturl.html +12 -0
- package/hugo-theme/layouts/shortcodes/glyph.html +43 -0
- package/hugo-theme/layouts/shortcodes/pagelist.html +63 -0
- package/hugo-theme/static/css/sohl-icons.css +57 -0
- package/hugo-theme/static/css/style.css +2982 -0
- package/hugo-theme/static/fonts/game-icons-kb.woff2 +0 -0
- package/hugo-theme/static/img/banners/takheperu-hieroglyphs.svg +1 -0
- package/hugo-theme/static/img/cartouches/takheperu.svg +1 -0
- package/hugo-theme/theme.toml +11 -0
- package/package.json +5 -2
- package/types/engine/art-slots.d.mts +2 -1
- package/types/engine/content-figures.d.mts +1 -0
- package/types/engine/content-poetry.d.mts +19 -0
- package/types/engine/helpers.d.mts +5 -3
- package/types/engine/rank-ladder.d.mts +8 -0
- 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
|
|
68
|
+
* directory holding the theme.
|
|
69
69
|
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
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
|
|
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";
|