jekyll-theme-modootoday 1.6.0 → 1.7.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +65 -1
- data/README.ja.md +150 -0
- data/README.ko.md +17 -16
- data/README.md +16 -15
- data/RULES.md +5 -1
- data/_includes/modootoday/assets/build.html +6 -0
- data/_includes/modootoday/assets/registry.html +14 -6
- data/_includes/modootoday/assets/scripts.html +2 -0
- data/_includes/modootoday/assets/sheets.html +6 -3
- data/_includes/modootoday/blog/subscribe.html +5 -0
- data/_includes/modootoday/brand/icon.html +2 -1
- data/_includes/modootoday/chrome/banner-text.html +16 -0
- data/_includes/modootoday/chrome/banner.html +5 -0
- data/_includes/modootoday/config.html +2 -1
- data/_includes/modootoday/detail/cta.html +1 -1
- data/_includes/modootoday/detail/facts.html +1 -0
- data/_includes/modootoday/detail/jsonld.html +6 -1
- data/_includes/modootoday/detail/page.html +1 -0
- data/_includes/modootoday/detail/tickets.html +6 -0
- data/_includes/modootoday/docs-extra/feed-entries.html +24 -0
- data/_includes/modootoday/docs-extra/head.html +7 -1
- data/_includes/modootoday/head-meta.html +17 -9
- data/_includes/modootoday/i18n/ar.html +1 -1
- data/_includes/modootoday/i18n/de.html +1 -1
- data/_includes/modootoday/i18n/el.html +1 -1
- data/_includes/modootoday/i18n/es.html +1 -1
- data/_includes/modootoday/i18n/fa.html +1 -1
- data/_includes/modootoday/i18n/fr.html +1 -1
- data/_includes/modootoday/i18n/id.html +1 -1
- data/_includes/modootoday/i18n/it.html +1 -1
- data/_includes/modootoday/i18n/ja.html +1 -1
- data/_includes/modootoday/i18n/ko.html +1 -1
- data/_includes/modootoday/i18n/ml.html +1 -1
- data/_includes/modootoday/i18n/pl.html +1 -1
- data/_includes/modootoday/i18n/pt-BR.html +1 -1
- data/_includes/modootoday/i18n/ro.html +1 -1
- data/_includes/modootoday/i18n/ru.html +1 -1
- data/_includes/modootoday/i18n/th.html +1 -1
- data/_includes/modootoday/i18n/tr.html +1 -1
- data/_includes/modootoday/i18n/uk.html +1 -1
- data/_includes/modootoday/i18n/ur-Latn.html +1 -1
- data/_includes/modootoday/i18n/vi.html +1 -1
- data/_includes/modootoday/i18n/zh-CN.html +1 -1
- data/_includes/modootoday/i18n/zh-TW.html +1 -1
- data/_includes/modootoday/i18n.html +176 -152
- data/_includes/modootoday/jsonld/graph.html +1 -1
- data/_includes/modootoday/markdown/anchors.html +26 -0
- data/_includes/modootoday/markdown/c/install.html +6 -0
- data/_includes/modootoday/markdown/figures/diagrams.html +3 -2
- data/_includes/modootoday/markdown/sections.html +9 -3
- data/_includes/modootoday/meta/feed-url.html +13 -0
- data/_includes/modootoday/meta/feedback.html +14 -0
- data/_includes/modootoday/meta/feeds.html +14 -0
- data/_includes/modootoday/meta/github.html +15 -0
- data/_includes/modootoday/meta/og-image.html +15 -0
- data/_includes/modootoday/meta/releases-feed.html +5 -0
- data/_includes/modootoday/page-meta.html +22 -4
- data/_includes/modootoday/pwa/head.html +7 -0
- data/_includes/modootoday/pwa/manifest.json +54 -0
- data/_includes/modootoday/pwa/offline-assets.html +10 -0
- data/_includes/modootoday/pwa/precache.html +21 -0
- data/_includes/modootoday/pwa/sw.js +36 -0
- data/_includes/modootoday/site/dir.html +5 -0
- data/_includes/modootoday/stylesheets.html +5 -1
- data/_includes/modootoday/t.html +1 -1
- data/_includes/modootoday/theme-color.html +1 -0
- data/_includes/modootoday/version.html +1 -1
- data/_layouts/archive.html +2 -1
- data/_layouts/author.html +1 -0
- data/_layouts/blog.html +1 -0
- data/_layouts/default.html +8 -8
- data/_layouts/doc.html +1 -0
- data/_layouts/feed.html +14 -5
- data/_layouts/pages/offline.html +14 -0
- data/_layouts/redirect.html +1 -2
- data/_sass/modootoday/components/content/_anchor.scss +9 -0
- data/_sass/modootoday/components/doc/_sidebar.scss +3 -1
- data/_sass/modootoday/components/doc/_toc.scss +4 -0
- data/_sass/modootoday/components/media/_diagram.scss +3 -1
- data/_sass/modootoday/components/section/showcase/_install.scss +14 -0
- data/_sass/modootoday/layout/_page-meta.scss +5 -1
- data/_sass/modootoday/print/_sheet.scss +17 -0
- data/_sass/modootoday/pwa/_toast.scss +16 -0
- data/_sass/modootoday.scss +1 -0
- data/assets/css/modootoday/chrome/print.scss +5 -0
- data/assets/css/modootoday/chrome/toast.scss +8 -0
- data/assets/css/modootoday/content/anchor.scss +7 -0
- data/assets/css/modootoday/showcase/install.scss +7 -0
- data/assets/js/modootoday/pwa/install.js +60 -0
- data/assets/js/modootoday/pwa/offline.js +33 -0
- data/assets/js/modootoday/pwa/register.js +79 -0
- data/assets/js/modootoday/pwa/update-toast.js +75 -0
- data/assets/js/modootoday/pwa/worker.js +150 -0
- data/assets/js/modootoday/structure/toc-spy.js +121 -0
- data/assets/modootoday/icon-192.png +0 -0
- data/assets/modootoday/icon-512.png +0 -0
- data/assets/modootoday/icon-maskable-512.png +0 -0
- data/i18n/ar.yml +19 -2
- data/i18n/de.yml +19 -2
- data/i18n/el.yml +19 -2
- data/i18n/en.yml +19 -2
- data/i18n/es.yml +19 -2
- data/i18n/fa.yml +19 -2
- data/i18n/fr.yml +19 -2
- data/i18n/glossary.yml +21 -3
- data/i18n/id.yml +19 -2
- data/i18n/it.yml +19 -2
- data/i18n/ja.yml +19 -2
- data/i18n/ko.yml +19 -2
- data/i18n/ml.yml +19 -2
- data/i18n/pl.yml +19 -2
- data/i18n/pt-BR.yml +19 -2
- data/i18n/ro.yml +19 -2
- data/i18n/ru.yml +19 -2
- data/i18n/th.yml +19 -2
- data/i18n/tr.yml +19 -2
- data/i18n/uk.yml +19 -2
- data/i18n/ur-Latn.yml +19 -2
- data/i18n/vi.yml +19 -2
- data/i18n/zh-CN.yml +19 -2
- data/i18n/zh-TW.yml +19 -2
- data/lib/modootoday/check/build/feeds.rb +63 -0
- data/lib/modootoday/check/build/links.rb +74 -0
- data/lib/modootoday/check/build/pwa/manifest.rb +61 -0
- data/lib/modootoday/check/build/pwa/precache.rb +38 -0
- data/lib/modootoday/check/build/pwa/worker.rb +55 -0
- data/lib/modootoday/check/build/pwa.rb +55 -0
- data/lib/modootoday/check/build/{aliases.rb → stubs/aliases.rb} +1 -1
- data/lib/modootoday/check/build/{records.rb → stubs/records.rb} +1 -1
- data/lib/modootoday/check/build/{twins.rb → stubs/twins.rb} +1 -1
- data/lib/modootoday/check/cli.rb +4 -3
- data/lib/modootoday/check/config/keys/appearance/brand.rb +28 -0
- data/lib/modootoday/check/config/keys/appearance/chrome.rb +11 -1
- data/lib/modootoday/check/config/keys/appearance/switches.rb +11 -1
- data/lib/modootoday/check/config/keys/figures/renderers.rb +10 -0
- data/lib/modootoday/check/config/keys/pages/blog.rb +11 -0
- data/lib/modootoday/check/config/keys/pages/content.rb +11 -0
- data/lib/modootoday/check/config/keys/pages/edit_url.rb +17 -2
- data/lib/modootoday/check/config/keys/pages/feedback.rb +24 -0
- data/lib/modootoday/check/config/keys/pages/languages.rb +2 -0
- data/lib/modootoday/check/config/keys/serving/pwa.rb +118 -0
- data/lib/modootoday/check/config/keys.rb +5 -0
- data/lib/modootoday/check/config/site_config.rb +2 -1
- data/lib/modootoday/check/config/validate.rb +4 -1
- data/lib/modootoday/check/layouts/detail.rb +24 -6
- data/lib/modootoday/check/layouts/directory.rb +1 -1
- data/lib/modootoday/check/page/a11y/new_window.rb +2 -1
- data/lib/modootoday/check/page/component_rules.rb +5 -1
- data/lib/modootoday/check/page/figures/diagrams.rb +10 -2
- data/lib/modootoday/check.rb +6 -3
- data/lib/modootoday/markdown.rb +3 -0
- data/lib/modootoday/stubs/cli.rb +5 -4
- data/lib/modootoday/stubs/pwa.rb +57 -0
- data/lib/modootoday/stubs.rb +3 -2
- metadata +56 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1380f1ced4482724714e67b71a6d07a46e61ca1ea104119a44980d6f91dfb5c3
|
|
4
|
+
data.tar.gz: ef81ee46161298d8fab393b99b9c57931c44edd2d5a3cea1dd3b0cba20876fdf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: acf961968d1c9c7ce5b403de76287e6c02ade4b5c3ebf5891342794ed1bec42029521a241f382dba0b25b831428451a1a3eb3fffaa43d77f24664026d7cb207f
|
|
7
|
+
data.tar.gz: 7690424a72dabd994280764fee4a86922cc4cdcce960725473526d83e04c05faeda1ef76600aef67a532a76fc0dd53bf9ed4401291773f0e28e3796b5d29a30f
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,69 @@ The content rules have their own version header (`md-components v1`) in [RULES.m
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.7.0] - 2026-11-13
|
|
10
|
+
|
|
11
|
+
Visual: the intended differences are the order of the Components page and the kitchen sinks, with a heading above each component group, and the recipes sidebar, where Math and diagrams, Charts and Widgets sit in a new Figures and widgets group. The docs cleanup adds the release list on the Changelog page, the rewritten Roadmap, a Requirements section at the top of the Install guide, a Layouts table on the Public API page, the new Command line page, the short sample lines and renamed headings of the kitchen sinks, the twins comparison at the top of the AI agents guide, and the new rows of the Configuration table; the map table moving from Brand tokens to Customize, the loader sections moving from Math and diagrams to the new Diagram and math loaders page, the showcase section moving from Configuration to the new Starter demo showcase page, and "color" for "colour" in the English pages; Tags and Categories leave the Reference sidebar, and the Layouts sidebar puts Docs extras after Blog and news. The Event demo's facts list gains a Price row that reads Free, and its last paragraph explains the tickets: map. The recipes sidebar lists the new Installable site recipe after Generated pages, the Configuration table gains a pwa row, and the CSP recipe ends with a web app manifest paragraph. The Installable site recipe gains the stub file table and the Offline reading, Caches, versions and shared origins, and Turn it off sections; the Performance table gains a pwa/register.js row. The Installable site recipe gains an Updates section; the Accessibility keyboard table gains the Esc row for the update notice; the Performance table gains the update notice row. The Components page and the kitchen sinks gain an Install section after the buttons (its text and the install hint; the button stays hidden while the docs site has the PWA off), the Installable site recipe gains an Installing section with a browser table, the Public API component table gains an Install row, and the Accessibility page gains a paragraph on the Install button. The Installable site recipe gains a Shortcuts and screenshots section and a manifest table row, and the Configuration table's pwa row names the two keys. Every docs page gains a manifest link and the register module, which draw nothing; new pages offline/ in en, ko and ja; the strict CSP demo gains an Install section (hint shown, button hidden). New page recipes/updates/ in en, ko and ja; the recipes sidebar and index gain it; one sentence at the end of the Installable site recipe's Updates section. The Performance guide gains a paragraph on the first frame and the Public API page shell row names body.mt-body-sidebar. Docs headings show a link icon at their end on hover and focus, always at 360 and 390 px; the kitchen sink and components pages gain a Heading anchors section. The Math and diagrams recipe draws its flowchart at least 48rem wide (it scrolls sideways at 360 and 390 px); its ko and ja pages and the ko and ja kitchen sinks show the flowchart with translated labels. The docs blog indexes, author pages and their ko and ja versions show a Subscribe (Atom) link under the intro or the author card. Every docs page with chrome gains a feedback row under the page footer line. The reference changelog and the changelog demo, in en, ko and ja, gain a Subscribe link and a GitHub releases link.
|
|
12
|
+
|
|
13
|
+
1.7.0 makes a site installable and readable offline (`modootoday.pwa`), with an update notice, an offline notice and an Install section, and adds the ways readers follow a site: Atom feeds for blogs, authors, archives and changelogs, GitHub release links and a release banner. Docs pages can show heading anchors, an On this page list that marks the section being read, an Edit this page link built from the repository, a feedback row and a print stylesheet; Open Graph images gain alt text and size, `modootoday-check --links` finds broken same-site links, and the documentation is reorganized by topic.
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- Publish docs, blog and landing as gitlinks and move wave 1
|
|
18
|
+
- List components in seven purpose groups, A-Z by id inside each
|
|
19
|
+
- Group the figure recipes under recipes/figures and keep their old URLs
|
|
20
|
+
- Published starters update themselves to each theme release: their Theme update workflow re-renders the starter and deploys its demo, with no token beyond the repository's own. (adr:modootoday/20261109225836)
|
|
21
|
+
- Event ticket prices: an event's `tickets:` also takes `{url, price, currency}` (`price` a number of 0 or more, `currency` an ISO 4217 code, both or neither). The facts list shows a Price row (Free for 0; new labels `layouts.price` and `layouts.free` in all 23 catalogs) and the event's JSON-LD offer gets `price` and `priceCurrency`, so an event needs no `schema.offers` to pass the nested-object check. `modootoday-check` reports a map of the wrong shape and warns when an event's offer will have no price and the page sets no `schema.offers`, naming the map. The string form is unchanged and builds the same bytes. (adr:modootoday/20261105122027) Upgrade: an event that gives `tickets:` as a URL gets a `modootoday-check` warning; write `tickets: {url, price, currency}` (or keep your own `schema.offers`) to give its offer a price.
|
|
22
|
+
- Installable sites: `modootoday.pwa` (off by default; `enabled`, `name`, `short_name`, `description`, `display`, `start_url`, `icons`, `background_color`) links a web app manifest built from what the site already sets: the title and description, the default language and its direction, `modootoday.theme_color`, the `baseurl` as the scope, and the brand mark or your own PNG icons. `modootoday-stubs --pwa` writes the one entry file, `manifest.webmanifest`, which renders the include `modootoday/pwa/manifest.json`; it is never pruned and never overwrites a site file. The gem adds `assets/modootoday/icon-192.png`, `icon-512.png` and `icon-maskable-512.png`. Chromium can install the site without a service worker. `modootoday-check` checks the keys and icons (a 192 and a 512 icon required, a maskable one and a short name of up to 12 characters recommended), the stub, the built manifest's fields and scope, each icon's PNG size, and the manifest link on every page. Sites without the key build the same HTML. (adr:modootoday/20261105130236)
|
|
23
|
+
- Offline reading: with `modootoday.pwa.enabled: true` a service worker keeps the theme files and the pages a reader visited (at most 50, plus 60 images and fonts) for reading offline. `modootoday-stubs --pwa` also writes `sw.js` and the offline pages (`offline.md`, and `offline.<lang>.md` for each `full_languages` entry; layout `pages/offline`). Pages are fetched from the network first and fall back to the kept copy, then to the offline page of their language; caches are named per site path (`mt:<baseurl>/:…`) and replaced on each deploy; `pwa.precache` and front matter `pwa: precache` add pages to keep. `enabled: kill` ships a worker that deletes the caches and removes itself, and `false` with `sw.js` still in place does the same. `modootoday-check` checks the worker, the offline pages and the precache list. Sites without the key build the same HTML. (adr:modootoday/20261110133153)
|
|
24
|
+
- When a deploy changes the theme's files, an installable site shows a notice with Reload and Later (the page never reloads by itself, and the notice never takes focus); a deploy that changes only pages takes effect without a notice. An open window checks for a new version when it is shown again after an hour. (adr:modootoday/20261110165219)
|
|
25
|
+
- An installable site shows a short notice when the browser loses the network, saying the pages the reader visited still open; it closes when the network is back. (adr:modootoday/20261110165219)
|
|
26
|
+
- The On this page list marks the section you are reading. (adr:modootoday/20261110172642)
|
|
27
|
+
- A `c: install` section shows an Install button when the browser offers to install the site (it never prompts by itself), with a hint for browsers that install from their own menu or share sheet; it hides in the installed app. (adr:modootoday/20261111002136)
|
|
28
|
+
- The web app manifest takes `modootoday.pwa.shortcuts` (the app icon's menu) and `modootoday.pwa.screenshots` (pictures for the install dialog), both off until listed; `modootoday-check` checks their pages, files and sizes. (adr:modootoday/20261111002632)
|
|
29
|
+
- Starter sites rebuild when a release is published, so release data from site.github is current; a weekly rebuild can be turned on in their pages.yml. (adr:modootoday/20261111011655)
|
|
30
|
+
- Heading anchor links: with `modootoday.heading_anchors: true` each `##` and `###` heading of a doc or post ends with a link to itself, shown on hover and focus and always on touch screens; no script. (adr:modootoday/20261111115521, adr:modootoday/20261109141321)
|
|
31
|
+
- Diagrams: a `diagrams:` entry takes `min_width` (24, 32, 40 or 48 rem), below which the figure scrolls sideways instead of shrinking; a translated page can list its own SVG pair drawn from a fence in its language. (adr:modootoday/20261111192610, adr:modootoday/20261109141321)
|
|
32
|
+
- `modootoday-check --links` reports same-site links to missing pages and `#` links to missing anchors in the built site. (adr:modootoday/20261111231457, adr:modootoday/20261109141321)
|
|
33
|
+
- Blog, author and archive pages link their Atom feed in the head and with a Subscribe link (front matter `feed:`); `layout: feed` takes `author:`. (adr:modootoday/20261112001116, adr:modootoday/20261109141321)
|
|
34
|
+
- `edit_url: auto` builds the Edit this page link from the repository GitHub Pages builds the site from; `build_link: true` links the commit the site was built from. (adr:modootoday/20261112023954, adr:modootoday/20261109141321)
|
|
35
|
+
- Page footers can link Report an issue, a two-link Was this page helpful?, and Discuss, each a prefilled GitHub URL (`modootoday.feedback`); no script and no request until a reader clicks. (adr:modootoday/20261112032809, adr:modootoday/20261109141321)
|
|
36
|
+
- `layout: feed` with `feed_source:` publishes a changelog as Atom, one entry per release; `releases_feed:` links GitHub's releases.atom from changelog and download pages. (adr:modootoday/20261112085718, adr:modootoday/20261109141321)
|
|
37
|
+
- `banner: {release: latest}` announces the repository's latest release, read when the site is built. (adr:modootoday/20261112112607, adr:modootoday/20261109141321)
|
|
38
|
+
- Open Graph adds the image's alt text and size, and falls back to the hero image or poster before `og_image`. (adr:modootoday/20261112132133, adr:modootoday/20261109141321)
|
|
39
|
+
- `modootoday.print: true` adds a print stylesheet (loaded for printing only) that hides the site chrome, the update notice and the install section, and prints link addresses. (adr:modootoday/20261112153723, adr:modootoday/20261109141321)
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- A public AGENTS.md for coding agents, imported by CLAUDE.md, with a drift test
|
|
44
|
+
- Generate the Changelog page, rewrite the Roadmap and list every layout in the Public API
|
|
45
|
+
- One page per topic, a Command line page and every config key registered
|
|
46
|
+
- One canonical page for the token bridge, the loaders and the showcase, and an English glossary lint
|
|
47
|
+
- Relative links, unique nav orders, explicit twins and current-behavior wording
|
|
48
|
+
- Merge the six site-type recipes into one Site types recipe
|
|
49
|
+
- One layout-doc pattern, keys in the group index and a demo per layout
|
|
50
|
+
- List install, configuration and upgrade first, topic guides after
|
|
51
|
+
- Publish RULES.md as the generated Markdown rules page
|
|
52
|
+
- Add README.ja.md and cover it in the README checks
|
|
53
|
+
- Callout rules, one glossary line per alert type and a lint
|
|
54
|
+
- Rewrite 174 page descriptions to 70-160 characters in every language
|
|
55
|
+
- Reorder front matter keys with script/docs-key-order and make R3 block
|
|
56
|
+
- For contributors: the CHANGELOG is generated from commit messages by git-cliff (cliff.toml), with the footers Changelog, Refs, Visual and Migration; script/commit-check checks them, bundle exec rake fix runs every generator, and script/release-prep and script/release-status make a release one command. (adr:modootoday/20261109225758, adr:modootoday/20261109225836)
|
|
57
|
+
- KaTeX 0.19.1 renders static math, and the loader recipe's CDN example names it. (adr:modootoday/20261105101229)
|
|
58
|
+
- The documentation site can be installed and read offline: it turns modootoday.pwa on. (adr:modootoday/20261111011654)
|
|
59
|
+
- A recipe, Tell readers about updates, covers feeds, GitHub release notifications, an email form and the app's update notice, why the theme ships no push, and rebuilding a site when a release is published. (adr:modootoday/20261111011655, adr:modootoday/20261109141321)
|
|
60
|
+
- The Korean and Japanese Changelog pages of the docs link the English release list instead of repeating it. (adr:modootoday/20261109204422)
|
|
61
|
+
|
|
62
|
+
### Fixed
|
|
63
|
+
|
|
64
|
+
- Each demo states its own url and baseurl; the four remaining layout previews
|
|
65
|
+
- The starter demo audit gives its page lists the shape the type budgets read
|
|
66
|
+
- Print badge prefixes as names on the generated Command line and Changelog pages
|
|
67
|
+
- Offline reading keeps the pages a reader visited across deploys that keep the theme files: the pages cache is now named by the theme files' version (`mt:<baseurl>/:pages:<version>`) and is replaced only with them; navigations to Markdown twins, `llms.txt`, feeds and the sitemap always go to the network. (adr:modootoday/20261110133153)
|
|
68
|
+
- The offline module loads only on the offline page, not on a page that names its attribute (adr:modootoday/20261110133153)
|
|
69
|
+
- The header is complete in the first frame when the theme's stylesheets are cached and the page arrives slowly (Chromium; doc pages with a sidebar also have their width from the first frame in every browser). A new body class, mt-body-sidebar, marks pages with the doc sidebar; a site that overrides _layouts/default.html keeps the wide doc shell as before and can print the class to get it in the first frame too. (adr:modootoday/20261111044513)
|
|
70
|
+
- `modootoday-check` no longer warns that `modootoday.feed: true` needs jekyll-feed when a page with `layout: feed` writes `/feed.xml`; the warning now names both ways to write the feed. (audit:modootoday/20261113044135)
|
|
71
|
+
|
|
9
72
|
## [1.6.0] - 2026-11-09
|
|
10
73
|
|
|
11
74
|
Visual: the intended differences from 1.5.0 are the new Charts and Widgets recipes, the chart, static diagram and static math figures on the recipe, components and kitchen-sink pages, the short dashed strokes that replace boxes as line and area chart legend keys, the line and dots of a timeline written as a list, the widget example on the Components page whose element fills only its result box, the admission price on the Event demo, the names of scroll regions, and figure scrollers that stop being tab stops when their content fits; core pages are otherwise unchanged.
|
|
@@ -462,7 +525,8 @@ Internal development milestones, never released. They are all part of 1.0.0.
|
|
|
462
525
|
- Example: `sass.silence_deprecations: [import]` for Dart Sass; `llms.txt` per language generated instead of hand-written.
|
|
463
526
|
- Raw `<name>.md` copies in `_site` on GitHub Pages: caused by content files without front matter (rendered by `jekyll-optional-front-matter` and also copied). Front matter is now required and checked.
|
|
464
527
|
|
|
465
|
-
[Unreleased]: https://github.com/modootoday/jekyll-theme-modootoday/compare/v1.
|
|
528
|
+
[Unreleased]: https://github.com/modootoday/jekyll-theme-modootoday/compare/v1.7.0...HEAD
|
|
529
|
+
[1.7.0]: https://github.com/modootoday/jekyll-theme-modootoday/releases/tag/v1.7.0
|
|
466
530
|
[1.6.0]: https://github.com/modootoday/jekyll-theme-modootoday/releases/tag/v1.6.0
|
|
467
531
|
[1.5.0]: https://github.com/modootoday/jekyll-theme-modootoday/releases/tag/v1.5.0
|
|
468
532
|
[1.4.1]: https://github.com/modootoday/jekyll-theme-modootoday/releases/tag/v1.4.1
|
data/README.ja.md
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# jekyll-theme-modootoday
|
|
2
|
+
|
|
3
|
+
ページ本文はふつうの GitHub Markdown のままにして、レイアウト、include、CSS で整える Jekyll テーマです。
|
|
4
|
+
|
|
5
|
+
[](https://github.com/modootoday/jekyll-theme-modootoday/actions/workflows/ci.yml)
|
|
6
|
+
[](https://rubygems.org/gems/jekyll-theme-modootoday)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
|
|
9
|
+
[ドキュメント](https://modootoday.github.io/jekyll-theme-modootoday/ja/) · [English](README.md) · [한국어](README.ko.md)
|
|
10
|
+
|
|
11
|
+
> [!NOTE]
|
|
12
|
+
> この文書は [README.md](README.md) の翻訳です。内容が異なる場合は英語版が優先されます。
|
|
13
|
+
|
|
14
|
+
## 特長
|
|
15
|
+
|
|
16
|
+
- **ページには標準の Markdown だけ。** GFM と GitHub のアラートだけを使うので、同じファイルが github.com でもそのまま読めます。
|
|
17
|
+
- **GitHub Pages で動く。** レイアウトと include は Liquid だけなので、従来のビルドの `remote_theme` でも、Jekyll 4 でも動きます。
|
|
18
|
+
- **マークアップなしのコンポーネント。** アラート、ステータスバッジ、カード、タブ、ボタン、アコーディオン、ステップ、タイムラインなどが、ふつうの Markdown のパターンから作られます。
|
|
19
|
+
- **ページの種類。** ドキュメント以外にも多くのレイアウトがあります([一覧](https://modootoday.github.io/jekyll-theme-modootoday/ja/reference/api/))。ホーム、ブログとニュース、ディレクトリ(チーム、求人、イベント、スポンサー、ポートフォリオ)、詳細ページ、マーケティング(料金、機能、お問い合わせ、リンク集)、文書(規約、履歴書)、ドキュメント拡張(リファレンス、変更履歴、ロードマップ、用語集、講座、書籍)です。
|
|
20
|
+
- **デザインされたようなセクション。** `sections:` の項目には、`visual:` の include やコードと組み合わせる `c: split`、全幅の `bleed:` の帯、`reveal:` のフェードイン、4 列のカードなどを指定でき、分割ヒーローも同じように書けます。
|
|
21
|
+
- **23 言語、LTR と RTL。** テーマの文言は 23 言語にローカライズされ、言語メニュー、`hreflang`、右から左に書くレイアウトに対応します。
|
|
22
|
+
- **エージェントが読みやすい。** ページごとにバイト単位で同じ Markdown 版と、`llms.txt`、`llms-full.txt` を置けます。
|
|
23
|
+
- **アクセシブル。** キーボードショートカット、見えるフォーカス、スマートフォンのセーフエリア、44 px のタッチターゲット、ハイコントラストと視差効果を減らす設定が組み込まれています。
|
|
24
|
+
- **チェッカー。** `modootoday-check` がソースとビルド結果を検査します。
|
|
25
|
+
- **任意の機能。** 検索、ライト/ダークの切り替え、Mermaid の図と KaTeX の数式(既定ではオフで、使うページだけで読み込みます)、コミットした SVG ファイルと MathML で表示する静的な図と数式、schema.org JSON-LD があります。
|
|
26
|
+
|
|
27
|
+
## インストール
|
|
28
|
+
|
|
29
|
+
gem として(`theme:`):
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
# Gemfile
|
|
33
|
+
gem "jekyll-theme-modootoday", "~> 1.7"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```yaml
|
|
37
|
+
# _config.yml
|
|
38
|
+
theme: jekyll-theme-modootoday
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Gemfile なしの GitHub Pages で(`remote_theme:`):
|
|
42
|
+
|
|
43
|
+
```yaml
|
|
44
|
+
# _config.yml
|
|
45
|
+
remote_theme: modootoday/jekyll-theme-modootoday@v1.7.0
|
|
46
|
+
plugins: [jekyll-remote-theme]
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
タグかコミットで固定してください。最小の設定、チェッカー、スターターサイトは[インストールガイド](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/install/)にあります。
|
|
50
|
+
|
|
51
|
+
## クイックスタート
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
mkdir my-docs && cd my-docs
|
|
55
|
+
printf 'source "https://rubygems.org"\ngem "jekyll", "~> 4.4"\ngem "jekyll-theme-modootoday", "~> 1.7"\n' > Gemfile
|
|
56
|
+
printf 'theme: jekyll-theme-modootoday\nmarkdown: kramdown\nkramdown: {input: GFM}\nsass: {style: compressed, silence_deprecations: [import, global-builtin]}\n' > _config.yml
|
|
57
|
+
printf -- '---\nlayout: doc\ntitle: Home\n---\n# Hello\n\n> [!TIP]\n> Plain Markdown, styled.\n' > index.md
|
|
58
|
+
bundle install && bundle exec jekyll build
|
|
59
|
+
bundle exec modootoday-check . _site
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
手順を追うなら: [最初のページを書く](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/first-page/)。
|
|
63
|
+
|
|
64
|
+
## 考え方
|
|
65
|
+
|
|
66
|
+
- **本文はシンプルに、レイアウトは豊かに。** 本文は GFM で、front matter の `sections:` が `##` ごとにコンポーネントを対応させます。[コンポーネント](https://modootoday.github.io/jekyll-theme-modootoday/ja/components/)と[キッチンシンク](https://modootoday.github.io/jekyll-theme-modootoday/ja/components/kitchen-sink/)をご覧ください。
|
|
67
|
+
- **ルール。** 本文に書けるものと、各パターンが何に変換されるかは [RULES.md](RULES.md)(`md-components v1`)が決めます。
|
|
68
|
+
- **まずはふつうの Jekyll。** `jekyll new` で作ったサイトは、`_config.yml` のテーマの行と `Gemfile` のテーマの gem(`gem "minima"` の代わり)を変えるだけでビルドできます。`layout: page`、ホームの投稿一覧、ヘッダーの `header_pages` やタイトル付きのページ、あらゆる形の `author:` を読み込みます。[移行とアップグレード](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/upgrade/)をご覧ください。
|
|
69
|
+
- **設定とトークン。** `_config.yml` の `modootoday:` ブロック 1 つ、サイトが 1 つの Sass フック(`_sass/modootoday/_site.scss`、インラインスタイルなし)から設定する CSS カスタムプロパティ `--mt-*`、コンポーネントごとの Sass パーシャル。[設定](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/configuration/)と[カスタマイズ](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/customize/)をご覧ください。
|
|
70
|
+
- **ブログとニュース。** `blog`、`news`、`news-article`、`author`、`feed` のレイアウト: ページ送り付きのカード一覧(list、grid、magazine)、`_data/authors.yml` からの著者表示、シリーズ、関連する投稿、共有、JSON-LD、言語ごとの Atom フィード。Liquid だけで、スタイルとスクリプトは任意のバンドルです。[ブログとニュース](https://modootoday.github.io/jekyll-theme-modootoday/ja/layouts/blog-news/)をご覧ください。
|
|
71
|
+
- **データから作るページ。** `modootoday.records` は、`_data` ファイルのレコードごとに従来の Pages でページを 1 つずつ作ります。`modootoday-stubs --records` がレコードごとに front matter だけのページを書き、`records:` を付けたディレクトリのページがその一覧を表示し、`modootoday-check --byte-exact=api` はフォルダーがバイト単位のまま公開されたことを確かめます。[生成ページ](https://modootoday.github.io/jekyll-theme-modootoday/ja/recipes/generated-pages/)をご覧ください。
|
|
72
|
+
- **Markdown 版。** ページごとに、エージェント向けの Markdown 版を 3 つの方法のどれかで公開できます。下の [AI エージェント](#ai-エージェント)をご覧ください。
|
|
73
|
+
|
|
74
|
+
## コマンド
|
|
75
|
+
|
|
76
|
+
2 つのコマンドは[コマンドライン](https://modootoday.github.io/jekyll-theme-modootoday/ja/reference/cli/)のページにもまとめてあります。`modootoday-check SRC SITE [オプション]`(`jekyll build` の後に実行、表は英語の原文から生成):
|
|
77
|
+
|
|
78
|
+
<!-- commands:begin (generated by script/readme-commands; do not edit) -->
|
|
79
|
+
| Option | Checks |
|
|
80
|
+
|---|---|
|
|
81
|
+
| `SRC SITE` | always: front matter, forbidden syntax, alerts, fence info strings, `status:`/`tag:`/`kbd:` values (`since:` is rejected), `sections:` count, `feed:` (false, or a site path to an Atom feed page in the build), `_data/i18n/<lang>.yml` keys against the default language and translated pages against default-language pages, `_data/components.yml` (keys, slot contract counts per section, `parts` against `api.md` and the built HTML), Sass/CSS rules, the token hook `_sass/modootoday/_site.scss` (only the three override maps, known token names), `site_css`, `preload` and `scripts` files present in the build, `script:` and `poster:` on hero and section items (a registered script, a sized poster that exists), `filter:` on section items and pages (a list or table to filter, a `facet` column the table has), `chart:` lines and `c: chart` sections (a type and options, a table or a `_data/charts` file, number cells), `widget:` lines, `widget_props` and `c: widget` sections (an element a `modootoday.scripts` entry defines, plain prop values, a lead paragraph), `diagrams:` (an entry per Mermaid fence, `alt`, the SVG files, an SVG drawn from another fence), static math (an entry per math block in `_data/math`, entries rendered from other TeX, no inline math),`modootoday.search` keys and collections, `modootoday.showcase` (also in `_config.demo.yml`) and, while it is enabled, the robots `noindex` on every built page (warning), `search.json` over 1.5 MB (warning), unconverted markers in the build, schema.org JSON-LD in the build (valid JSON, vocabulary, required properties per type, absolute URLs, ISO 8601 dates, one graph per page, agreement with Open Graph, a `DefinedTerm` page's `term_set` glossary), `modootoday.schema.faq`, `modootoday.records` (a page per record and a record per page, as `modootoday-stubs --records --check` judges), `modootoday.pwa` (its keys and icons, the stub `modootoday-stubs --pwa` writes, the built manifest's fields, icon files and their PNG sizes, the manifest link on every page) |
|
|
82
|
+
| `--twins` | every page has a byte-identical Markdown twin, per-language `llms.txt` and `llms-full.txt` |
|
|
83
|
+
| `--links` | same-site links in the built HTML (`a`, `link`, `img`, `script`, `source srcset`) point at files that exist and `#` fragments match an `id` or `a[name]` on the target page; external URLs are not fetched. Warnings, failures with `--strict`; needs the nokogiri gem |
|
|
84
|
+
| `--aliases` | the URL aliases `modootoday.aliases` declares: `/<page>.md` byte-identical to the twin (`md`), `/<page>.html` redirecting to the page with the page URL as canonical (`html`); two pages with one alias, or an alias over another source file, fail |
|
|
85
|
+
| `--byte-exact=DIR,...` | files under these source folders (an API, downloads) are in the build with the same sha256; a folder under `_` or `.` or excluded, a file with front matter, or one Jekyll converts (Markdown, Sass) fails |
|
|
86
|
+
| `--github-pages[=VERSION]` | `Gemfile.lock` pins `github-pages` VERSION (default 232) |
|
|
87
|
+
| `--schema-recommended` | also warn about schema.org properties Google Search recommends (author, image, dates, ...) that a JSON-LD node lacks |
|
|
88
|
+
| `--strict` | warnings fail the run |
|
|
89
|
+
| `--i18n` | `_data/i18n/<lang>.yml` against the theme registry (`i18n/en.yml` in the gem): unknown keys, `%{name}` placeholder mismatches, and pages marked `translation: pending` |
|
|
90
|
+
| `--i18n-pages` | warn about default-language pages with no translation in a `modootoday.full_languages` language (the page with the same `ref:`, else `<name>.<lang>.md` beside it or the same path under `<lang>/`) and about translations without `source_rev` or whose source changed since it; with `--strict` they fail. A translation beside its source whose `permalink` is not the source's URL under `/<lang>` is an error |
|
|
91
|
+
| `--i18n-init=LANG,...` | copy the theme's catalogs (`i18n/<lang>.yml`, 23 languages) into `SRC/_data/i18n/` as a starting point for overrides (optional; the theme already uses them), and list keys an existing catalog lacks |
|
|
92
|
+
| `--diagrams` | instead of checking, print the static diagrams whose SVG is missing or stale as JSON (`page`, `name`, `line`, `fence`, `digest`, `files`, `reason`) and exit 1 when there is any; SITE may be omitted. A pre-commit hook or a render script reads it |
|
|
93
|
+
| `--math` | with `modootoday.math.mode: static`, instead of checking, print the `_data/math` files whose page has math blocks without an entry or with a stale one as JSON (`key`, `file`, `page`, `blocks` with `line`, `tex` and `digest`, `reason`) and exit 1 when there is any; SITE may be omitted. `script/figures/math.mjs` reads it |
|
|
94
|
+
| `--gh` | also render each page with `gh api markdown` (network, `gh` login) |
|
|
95
|
+
| `--help, -h` | print usage and options (`--help=markdown` prints the README table) |
|
|
96
|
+
| `--version` | print the rules version |
|
|
97
|
+
<!-- commands:end -->
|
|
98
|
+
|
|
99
|
+
`modootoday-stubs SRC [オプション]`(Markdown 版、URL エイリアス、レコードのページのスタブを書く、`jekyll build` の前に実行、表は英語の原文から生成):
|
|
100
|
+
|
|
101
|
+
<!-- stubs:begin (generated by script/readme-commands; do not edit) -->
|
|
102
|
+
| Option | Does |
|
|
103
|
+
|---|---|
|
|
104
|
+
| `SRC` | the site source; without `--write` or `--check` nothing is written and the planned creates, updates and deletes are listed |
|
|
105
|
+
| `--twins` | a stub `<name>.md.txt` per page (`layout: twin`) for its twin at `/<name>/index.md` |
|
|
106
|
+
| `--aliases` | the aliases `modootoday.aliases` turns on: `md` a stub `<name>.flat.md.txt` (`layout: twin`) at `/<name>.md`, `html` a stub `<name>.html.md.txt` (`layout: redirect`) at `/<name>.html` |
|
|
107
|
+
| `--records[=SET,...]` | a page `<dir>/<key>.md` per record of each set in `modootoday.records` (or only the named sets): front matter only, with the title, description, permalink and `record:` the layout reads |
|
|
108
|
+
| `--pwa` | the files `modootoday.pwa` needs (with `enabled: true` or `kill`): `manifest.webmanifest`, the service worker `sw.js` and the offline pages `offline.md` and `offline.<lang>.md` for each `full_languages` entry; never pruned, and a site file already at one of those paths is never overwritten |
|
|
109
|
+
| `--write` | write the planned stubs; files whose content is already right are not touched |
|
|
110
|
+
| `--check` | write nothing; exit 1 when a stub is missing, out of date or orphaned |
|
|
111
|
+
| `--no-prune` | keep orphan stubs (by default a twin stub whose page is gone, an alias stub no page wants, or a record page whose record is gone, is deleted) |
|
|
112
|
+
| `--json` | print the plan as JSON (`mode`, `kinds`, `changes` with `path`, `action`, `reason`) |
|
|
113
|
+
| `--quiet` | print only drift found by `--check` and errors |
|
|
114
|
+
| `--help, -h` | print usage and options (`--help=markdown` prints the README table) |
|
|
115
|
+
| `--version` | print the version |
|
|
116
|
+
<!-- stubs:end -->
|
|
117
|
+
|
|
118
|
+
## AI エージェント
|
|
119
|
+
|
|
120
|
+
- `guide.md` の Markdown 版は `/guide/index.md` にあり、本文とバイト単位で同じで、`rel="alternate" type="text/markdown"` でリンクされます。
|
|
121
|
+
- `llms.txt` と `llms-full.txt` は `/` と各 `/<lang>/` の下にあります。
|
|
122
|
+
- Jekyll 4 では `plugins: [jekyll-theme-modootoday]` が作ります。従来の GitHub Pages のビルドは 1 ファイルのスタブを使い、スタブは `modootoday-stubs SRC --twins --write` が書きます。
|
|
123
|
+
- 任意の URL エイリアス(`modootoday.aliases`): `/guide.md`(Markdown 版そのもの)と `/guide.html`(`/guide/` へのリダイレクト)は `modootoday-stubs SRC --aliases --write` が作ります。
|
|
124
|
+
- ソースモード(front matter のないページ、スタブなし)を含む詳細: [AI エージェントのガイド](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/agents/)、契約は [RULES.md §5a](RULES.md#5a-markdown-twins)、このリポジトリの [llms.txt](https://modootoday.github.io/jekyll-theme-modootoday/llms.txt)。
|
|
125
|
+
|
|
126
|
+
## ガイド
|
|
127
|
+
|
|
128
|
+
- [ドキュメントサイト](https://modootoday.github.io/jekyll-theme-modootoday/ja/)([`docs/`](docs/) からこのテーマでビルド)
|
|
129
|
+
- [インストール](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/install/) · [最初のページ](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/first-page/) · [コンポーネント](https://modootoday.github.io/jekyll-theme-modootoday/ja/components/) · [設定](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/configuration/) · [カスタマイズ](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/customize/) · [レイアウト](https://modootoday.github.io/jekyll-theme-modootoday/ja/layouts/) · [ブログとニュース](https://modootoday.github.io/jekyll-theme-modootoday/ja/layouts/blog-news/) · [レシピ](https://modootoday.github.io/jekyll-theme-modootoday/ja/recipes/) · [数式と図](https://modootoday.github.io/jekyll-theme-modootoday/ja/recipes/figures/math-diagrams/) · [チャート](https://modootoday.github.io/jekyll-theme-modootoday/ja/recipes/figures/charts/) · [ウィジェット](https://modootoday.github.io/jekyll-theme-modootoday/ja/recipes/figures/widgets/) · [生成ページ](https://modootoday.github.io/jekyll-theme-modootoday/ja/recipes/generated-pages/) · [検索](https://modootoday.github.io/jekyll-theme-modootoday/ja/recipes/search/) · [ブランドトークン](https://modootoday.github.io/jekyll-theme-modootoday/ja/recipes/brand-tokens/) · [AI エージェント](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/agents/) · [翻訳のルール](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/translation/) · [構造化データ](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/structured-data/) · [公開 API](https://modootoday.github.io/jekyll-theme-modootoday/ja/reference/api/) · [コマンドライン](https://modootoday.github.io/jekyll-theme-modootoday/ja/reference/cli/) · [移行とアップグレード](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/upgrade/) · [CSP](https://modootoday.github.io/jekyll-theme-modootoday/ja/recipes/csp/) · [アクセシビリティ](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/accessibility/) · [パフォーマンス](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/performance/) · [ロードマップ](https://modootoday.github.io/jekyll-theme-modootoday/ja/reference/roadmap/) · [変更履歴](https://modootoday.github.io/jekyll-theme-modootoday/ja/reference/changelog/)([CHANGELOG.md](CHANGELOG.md))
|
|
130
|
+
- 対応するスタック: 従来の GitHub Pages と Jekyll 4。バージョンは[インストール > 要件](https://modootoday.github.io/jekyll-theme-modootoday/ja/guides/install/)にあります。
|
|
131
|
+
- [セキュリティポリシー](SECURITY.md) · [行動規範](CODE_OF_CONDUCT.md)
|
|
132
|
+
|
|
133
|
+
## 終了コード
|
|
134
|
+
|
|
135
|
+
| コード | 意味 |
|
|
136
|
+
|---|---|
|
|
137
|
+
| 0 | 問題なし(`modootoday-stubs`: することなし、プレビューまたは書き込み完了) |
|
|
138
|
+
| 1 | 問題あり(stderr に出力)または使い方の誤り(`modootoday-stubs`: `--check` が差分を検出) |
|
|
139
|
+
| 2 | `modootoday-stubs`: 使い方の誤りまたは `_config.yml` のエラー |
|
|
140
|
+
| 3 | `modootoday-stubs`: データのエラー(front matter、安全でない permalink、エイリアスの衝突、キーがないか重複するレコード) |
|
|
141
|
+
|
|
142
|
+
## コントリビュート
|
|
143
|
+
|
|
144
|
+
Issue とプルリクエストを歓迎します。[CONTRIBUTING.md](CONTRIBUTING.md) をご覧ください。この文書は英語の [README.md](README.md) の翻訳で、内容が異なる場合は英語版が優先されます。
|
|
145
|
+
|
|
146
|
+
3 つのスターターサイト(`docs`、`blog`、`landing`)はライブデモ付きのテンプレートリポジトリで、一覧は `example/starters.yml` に、リポジトリは [`example/`](example/) に git サブモジュールとしてあります(`--recurse-submodules` でクローンします)。`bundle exec rake starters:render` は各サイトを GitHub Pages(`remote_theme`)用と Jekyll 4 用に書き出し、`Gemfile`、`README.md`、`modootoday-check` を実行する Pages のワークフロー、スタブも一緒に書きます。
|
|
147
|
+
|
|
148
|
+
## ライセンス
|
|
149
|
+
|
|
150
|
+
[MIT](LICENSE) © modootoday (모두의오늘)
|
data/README.ko.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://rubygems.org/gems/jekyll-theme-modootoday)
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
|
|
9
|
-
[문서](https://modootoday.github.io/jekyll-theme-modootoday/ko/) · [English](README.md)
|
|
9
|
+
[문서](https://modootoday.github.io/jekyll-theme-modootoday/ko/) · [English](README.md) · [日本語](README.ja.md)
|
|
10
10
|
|
|
11
11
|
> [!NOTE]
|
|
12
12
|
> 이 문서는 [README.md](README.md)의 번역입니다. 내용이 다르면 영어 문서가 우선합니다.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
- **페이지에는 표준 Markdown만.** GFM과 GitHub 알림만 쓰므로 같은 파일이 github.com에서도 잘 읽힙니다.
|
|
17
17
|
- **GitHub Pages에서 동작.** 레이아웃과 include가 Liquid만 쓰므로 기본 빌드의 `remote_theme`도 되고, Jekyll 4도 됩니다.
|
|
18
18
|
- **마크업 없는 컴포넌트.** 알림, 상태 배지, 카드, 탭, 버튼, 아코디언, 단계, 타임라인 등이 평범한 Markdown 패턴에서 나옵니다.
|
|
19
|
-
- **페이지 계열.** 문서 외에도 레이아웃이
|
|
19
|
+
- **페이지 계열.** 문서 외에도 레이아웃이 많습니다([전체 목록](https://modootoday.github.io/jekyll-theme-modootoday/ko/reference/api/)). 홈, 블로그와 뉴스, 디렉터리(팀, 채용, 행사, 후원사, 포트폴리오), 상세 페이지, 마케팅(가격, 기능, 문의, 링크 모음), 문서(약관, 이력서), 문서 부가 페이지(레퍼런스, 변경 기록, 로드맵, 용어집, 강좌, 책)가 있습니다.
|
|
20
20
|
- **디자인된 듯한 섹션.** `sections:` 항목에 `visual:` include나 코드와 함께 쓰는 `c: split`, 전체 너비 `bleed:` 띠, `reveal:` 페이드인, 4열 카드 같은 옵션을 줄 수 있고, 분할 히어로도 같은 방식으로 씁니다.
|
|
21
21
|
- **23개 언어, LTR과 RTL.** 테마 문구가 23개 언어로 현지화되어 있고 언어 메뉴, `hreflang`, 오른쪽에서 왼쪽으로 쓰는 레이아웃을 지원합니다.
|
|
22
22
|
- **에이전트가 읽기 쉬움.** 페이지마다 바이트 단위로 같은 Markdown 버전과 `llms.txt`, `llms-full.txt`를 둘 수 있습니다.
|
|
@@ -30,7 +30,7 @@ gem 방식(`theme:`):
|
|
|
30
30
|
|
|
31
31
|
```ruby
|
|
32
32
|
# Gemfile
|
|
33
|
-
gem "jekyll-theme-modootoday", "~> 1.
|
|
33
|
+
gem "jekyll-theme-modootoday", "~> 1.7"
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
```yaml
|
|
@@ -42,18 +42,17 @@ Gemfile 없이 GitHub Pages에서(`remote_theme:`):
|
|
|
42
42
|
|
|
43
43
|
```yaml
|
|
44
44
|
# _config.yml
|
|
45
|
-
remote_theme: modootoday/jekyll-theme-modootoday@v1.
|
|
46
|
-
plugins:
|
|
47
|
-
- jekyll-remote-theme
|
|
45
|
+
remote_theme: modootoday/jekyll-theme-modootoday@v1.7.0
|
|
46
|
+
plugins: [jekyll-remote-theme]
|
|
48
47
|
```
|
|
49
48
|
|
|
50
|
-
태그나 커밋으로 고정하세요.
|
|
49
|
+
태그나 커밋으로 고정하세요. 최소 설정, 검사기, 시작 사이트는 [설치 가이드](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/install/)에 있습니다.
|
|
51
50
|
|
|
52
51
|
## 빠른 시작
|
|
53
52
|
|
|
54
53
|
```sh
|
|
55
54
|
mkdir my-docs && cd my-docs
|
|
56
|
-
printf 'source "https://rubygems.org"\ngem "jekyll", "~> 4.4"\ngem "jekyll-theme-modootoday", "~> 1.
|
|
55
|
+
printf 'source "https://rubygems.org"\ngem "jekyll", "~> 4.4"\ngem "jekyll-theme-modootoday", "~> 1.7"\n' > Gemfile
|
|
57
56
|
printf 'theme: jekyll-theme-modootoday\nmarkdown: kramdown\nkramdown: {input: GFM}\nsass: {style: compressed, silence_deprecations: [import, global-builtin]}\n' > _config.yml
|
|
58
57
|
printf -- '---\nlayout: doc\ntitle: Home\n---\n# Hello\n\n> [!TIP]\n> Plain Markdown, styled.\n' > index.md
|
|
59
58
|
bundle install && bundle exec jekyll build
|
|
@@ -66,21 +65,22 @@ bundle exec modootoday-check . _site
|
|
|
66
65
|
|
|
67
66
|
- **본문은 평범하게, 레이아웃은 풍부하게.** 본문은 GFM이고 front matter의 `sections:`가 `##`마다 컴포넌트를 연결합니다. [컴포넌트](https://modootoday.github.io/jekyll-theme-modootoday/ko/components/)와 [키친싱크](https://modootoday.github.io/jekyll-theme-modootoday/ko/components/kitchen-sink/)를 보세요.
|
|
68
67
|
- **규칙.** 본문에 쓸 수 있는 것과 각 패턴의 변환 결과는 [RULES.md](RULES.md)(`md-components v1`)가 정합니다.
|
|
69
|
-
- **평범한 Jekyll 먼저.** `jekyll new`로 만든 사이트는 `_config.yml`의 테마 줄과 `Gemfile`의 테마 gem(`gem "minima"` 자리)만 바꾸면 빌드됩니다. `layout: page`, 홈의 글 목록, 헤더의 `header_pages`나 제목 있는 페이지, 모든 형태의 `author:`를 읽습니다. [
|
|
68
|
+
- **평범한 Jekyll 먼저.** `jekyll new`로 만든 사이트는 `_config.yml`의 테마 줄과 `Gemfile`의 테마 gem(`gem "minima"` 자리)만 바꾸면 빌드됩니다. `layout: page`, 홈의 글 목록, 헤더의 `header_pages`나 제목 있는 페이지, 모든 형태의 `author:`를 읽습니다. [마이그레이션과 업그레이드](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/upgrade/)를 보세요.
|
|
70
69
|
- **설정과 토큰.** `_config.yml`의 `modootoday:` 블록 하나, 사이트가 Sass 훅 하나(`_sass/modootoday/_site.scss`, 인라인 스타일 없음)로 바꾸는 CSS 사용자 속성 `--mt-*`, 컴포넌트별 Sass 파셜. [설정](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/configuration/)과 [커스터마이즈](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/customize/)를 보세요.
|
|
71
70
|
- **블로그와 뉴스.** `blog`, `news`, `news-article`, `author`, `feed` 레이아웃: 페이지네이션 카드 목록(list, grid, magazine), `_data/authors.yml` 바이라인, 시리즈, 관련 글, 공유, JSON-LD, 언어별 Atom 피드. Liquid만 쓰고 스타일과 스크립트는 선택 번들입니다. [블로그와 뉴스](https://modootoday.github.io/jekyll-theme-modootoday/ko/layouts/blog-news/)를 보세요.
|
|
72
71
|
- **데이터에서 만드는 페이지.** `modootoday.records`는 `_data` 파일의 레코드마다 기본 Pages에서 페이지를 하나씩 줍니다. `modootoday-stubs --records`가 레코드마다 front matter만 있는 페이지를 쓰고, `records:`를 단 디렉터리 페이지가 그 목록을 보여 주며, `modootoday-check --byte-exact=api`는 폴더가 바이트 그대로 게시되었는지 증명합니다. [생성 페이지](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/generated-pages/)를 보세요.
|
|
73
|
-
- **Markdown
|
|
72
|
+
- **Markdown 버전.** 페이지마다 에이전트용 Markdown 버전을 세 가지 방식 중 하나로 둘 수 있습니다. 아래 [AI 에이전트](#ai-에이전트)를 보세요.
|
|
74
73
|
|
|
75
74
|
## 명령
|
|
76
75
|
|
|
77
|
-
`modootoday-check SRC SITE [옵션]` (`jekyll build` 다음에 실행, 표는 영어 원본에서 생성):
|
|
76
|
+
두 명령은 [명령줄](https://modootoday.github.io/jekyll-theme-modootoday/ko/reference/cli/) 페이지에도 정리되어 있습니다. `modootoday-check SRC SITE [옵션]` (`jekyll build` 다음에 실행, 표는 영어 원본에서 생성):
|
|
78
77
|
|
|
79
78
|
<!-- commands:begin (generated by script/readme-commands; do not edit) -->
|
|
80
79
|
| Option | Checks |
|
|
81
80
|
|---|---|
|
|
82
|
-
| `SRC SITE` | always: front matter, forbidden syntax, alerts, fence info strings, `status:`/`tag:`/`kbd:` values (`since:` is rejected), `sections:` count, `_data/i18n/<lang>.yml` keys against the default language and translated pages against default-language pages, `_data/components.yml` (keys, slot contract counts per section, `parts` against `api.md` and the built HTML), Sass/CSS rules, the token hook `_sass/modootoday/_site.scss` (only the three override maps, known token names), `site_css`, `preload` and `scripts` files present in the build, `script:` and `poster:` on hero and section items (a registered script, a sized poster that exists), `filter:` on section items and pages (a list or table to filter, a `facet` column the table has), `chart:` lines and `c: chart` sections (a type and options, a table or a `_data/charts` file, number cells), `widget:` lines, `widget_props` and `c: widget` sections (an element a `modootoday.scripts` entry defines, plain prop values, a lead paragraph), `diagrams:` (an entry per Mermaid fence, `alt`, the SVG files, an SVG drawn from another fence), static math (an entry per math block in `_data/math`, entries rendered from other TeX, no inline math),`modootoday.search` keys and collections, `modootoday.showcase` (also in `_config.demo.yml`) and, while it is enabled, the robots `noindex` on every built page (warning), `search.json` over 1.5 MB (warning), unconverted markers in the build, schema.org JSON-LD in the build (valid JSON, vocabulary, required properties per type, absolute URLs, ISO 8601 dates, one graph per page, agreement with Open Graph, a `DefinedTerm` page's `term_set` glossary), `modootoday.schema.faq`, `modootoday.records` (a page per record and a record per page, as `modootoday-stubs --records --check` judges) |
|
|
81
|
+
| `SRC SITE` | always: front matter, forbidden syntax, alerts, fence info strings, `status:`/`tag:`/`kbd:` values (`since:` is rejected), `sections:` count, `feed:` (false, or a site path to an Atom feed page in the build), `_data/i18n/<lang>.yml` keys against the default language and translated pages against default-language pages, `_data/components.yml` (keys, slot contract counts per section, `parts` against `api.md` and the built HTML), Sass/CSS rules, the token hook `_sass/modootoday/_site.scss` (only the three override maps, known token names), `site_css`, `preload` and `scripts` files present in the build, `script:` and `poster:` on hero and section items (a registered script, a sized poster that exists), `filter:` on section items and pages (a list or table to filter, a `facet` column the table has), `chart:` lines and `c: chart` sections (a type and options, a table or a `_data/charts` file, number cells), `widget:` lines, `widget_props` and `c: widget` sections (an element a `modootoday.scripts` entry defines, plain prop values, a lead paragraph), `diagrams:` (an entry per Mermaid fence, `alt`, the SVG files, an SVG drawn from another fence), static math (an entry per math block in `_data/math`, entries rendered from other TeX, no inline math),`modootoday.search` keys and collections, `modootoday.showcase` (also in `_config.demo.yml`) and, while it is enabled, the robots `noindex` on every built page (warning), `search.json` over 1.5 MB (warning), unconverted markers in the build, schema.org JSON-LD in the build (valid JSON, vocabulary, required properties per type, absolute URLs, ISO 8601 dates, one graph per page, agreement with Open Graph, a `DefinedTerm` page's `term_set` glossary), `modootoday.schema.faq`, `modootoday.records` (a page per record and a record per page, as `modootoday-stubs --records --check` judges), `modootoday.pwa` (its keys and icons, the stub `modootoday-stubs --pwa` writes, the built manifest's fields, icon files and their PNG sizes, the manifest link on every page) |
|
|
83
82
|
| `--twins` | every page has a byte-identical Markdown twin, per-language `llms.txt` and `llms-full.txt` |
|
|
83
|
+
| `--links` | same-site links in the built HTML (`a`, `link`, `img`, `script`, `source srcset`) point at files that exist and `#` fragments match an `id` or `a[name]` on the target page; external URLs are not fetched. Warnings, failures with `--strict`; needs the nokogiri gem |
|
|
84
84
|
| `--aliases` | the URL aliases `modootoday.aliases` declares: `/<page>.md` byte-identical to the twin (`md`), `/<page>.html` redirecting to the page with the page URL as canonical (`html`); two pages with one alias, or an alias over another source file, fail |
|
|
85
85
|
| `--byte-exact=DIR,...` | files under these source folders (an API, downloads) are in the build with the same sha256; a folder under `_` or `.` or excluded, a file with front matter, or one Jekyll converts (Markdown, Sass) fails |
|
|
86
86
|
| `--github-pages[=VERSION]` | `Gemfile.lock` pins `github-pages` VERSION (default 232) |
|
|
@@ -105,6 +105,7 @@ bundle exec modootoday-check . _site
|
|
|
105
105
|
| `--twins` | a stub `<name>.md.txt` per page (`layout: twin`) for its twin at `/<name>/index.md` |
|
|
106
106
|
| `--aliases` | the aliases `modootoday.aliases` turns on: `md` a stub `<name>.flat.md.txt` (`layout: twin`) at `/<name>.md`, `html` a stub `<name>.html.md.txt` (`layout: redirect`) at `/<name>.html` |
|
|
107
107
|
| `--records[=SET,...]` | a page `<dir>/<key>.md` per record of each set in `modootoday.records` (or only the named sets): front matter only, with the title, description, permalink and `record:` the layout reads |
|
|
108
|
+
| `--pwa` | the files `modootoday.pwa` needs (with `enabled: true` or `kill`): `manifest.webmanifest`, the service worker `sw.js` and the offline pages `offline.md` and `offline.<lang>.md` for each `full_languages` entry; never pruned, and a site file already at one of those paths is never overwritten |
|
|
108
109
|
| `--write` | write the planned stubs; files whose content is already right are not touched |
|
|
109
110
|
| `--check` | write nothing; exit 1 when a stub is missing, out of date or orphaned |
|
|
110
111
|
| `--no-prune` | keep orphan stubs (by default a twin stub whose page is gone, an alias stub no page wants, or a record page whose record is gone, is deleted) |
|
|
@@ -120,13 +121,13 @@ bundle exec modootoday-check . _site
|
|
|
120
121
|
- `llms.txt`와 `llms-full.txt`는 `/`와 각 `/<lang>/` 아래에 있습니다.
|
|
121
122
|
- Jekyll 4에서는 `plugins: [jekyll-theme-modootoday]`가 만들고, 기본 GitHub Pages 빌드는 파일 하나짜리 스텁을 씁니다. 스텁은 `modootoday-stubs SRC --twins --write`가 씁니다.
|
|
122
123
|
- 선택 URL 별칭(`modootoday.aliases`): `/guide.md`(Markdown 버전 그대로)와 `/guide.html`(`/guide/`로 리다이렉트)은 `modootoday-stubs SRC --aliases --write`가 만듭니다.
|
|
123
|
-
-
|
|
124
|
+
- 소스 모드(front matter 없는 페이지, 스텁 없음)를 포함한 자세한 내용: [AI 에이전트 가이드](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/agents/), 계약은 [RULES.md §5a](RULES.md#5a-markdown-twins), 이 저장소의 [llms.txt](https://modootoday.github.io/jekyll-theme-modootoday/llms.txt).
|
|
124
125
|
|
|
125
126
|
## 가이드
|
|
126
127
|
|
|
127
128
|
- [문서 사이트](https://modootoday.github.io/jekyll-theme-modootoday/ko/) ([`docs/`](docs/)에서 이 테마로 빌드)
|
|
128
|
-
- [설치](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/install/) · [첫 페이지](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/first-page/) · [컴포넌트](https://modootoday.github.io/jekyll-theme-modootoday/ko/components/) · [설정](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/configuration/) · [커스터마이즈](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/customize/) · [레이아웃](https://modootoday.github.io/jekyll-theme-modootoday/ko/layouts/) · [블로그와 뉴스](https://modootoday.github.io/jekyll-theme-modootoday/ko/layouts/blog-news/) · [레시피](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/) · [수식과 다이어그램](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/math-diagrams/) · [차트](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/charts/) · [위젯](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/widgets/) · [생성 페이지](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/generated-pages/) · [번역 규칙](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/translation/) · [구조화 데이터](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/structured-data/) · [공개 API](https://modootoday.github.io/jekyll-theme-modootoday/ko/reference/api/) · [
|
|
129
|
-
- 지원 스택: GitHub Pages
|
|
129
|
+
- [설치](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/install/) · [첫 페이지](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/first-page/) · [컴포넌트](https://modootoday.github.io/jekyll-theme-modootoday/ko/components/) · [설정](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/configuration/) · [커스터마이즈](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/customize/) · [레이아웃](https://modootoday.github.io/jekyll-theme-modootoday/ko/layouts/) · [블로그와 뉴스](https://modootoday.github.io/jekyll-theme-modootoday/ko/layouts/blog-news/) · [레시피](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/) · [수식과 다이어그램](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/figures/math-diagrams/) · [차트](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/figures/charts/) · [위젯](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/figures/widgets/) · [생성 페이지](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/generated-pages/) · [검색](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/search/) · [브랜드 토큰](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/brand-tokens/) · [AI 에이전트](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/agents/) · [번역 규칙](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/translation/) · [구조화 데이터](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/structured-data/) · [공개 API](https://modootoday.github.io/jekyll-theme-modootoday/ko/reference/api/) · [명령줄](https://modootoday.github.io/jekyll-theme-modootoday/ko/reference/cli/) · [마이그레이션과 업그레이드](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/upgrade/) · [CSP](https://modootoday.github.io/jekyll-theme-modootoday/ko/recipes/csp/) · [접근성](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/accessibility/) · [성능](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/performance/) · [로드맵](https://modootoday.github.io/jekyll-theme-modootoday/ko/reference/roadmap/) · [변경 기록](https://modootoday.github.io/jekyll-theme-modootoday/ko/reference/changelog/) ([CHANGELOG.md](CHANGELOG.md))
|
|
130
|
+
- 지원 스택: 기본 GitHub Pages와 Jekyll 4. 버전은 [설치 > 요구 사항](https://modootoday.github.io/jekyll-theme-modootoday/ko/guides/install/)에 있습니다.
|
|
130
131
|
- [보안 정책](SECURITY.md) · [행동 강령](CODE_OF_CONDUCT.md)
|
|
131
132
|
|
|
132
133
|
## 종료 코드
|
|
@@ -142,7 +143,7 @@ bundle exec modootoday-check . _site
|
|
|
142
143
|
|
|
143
144
|
이슈와 풀 리퀘스트를 환영합니다. [CONTRIBUTING.md](CONTRIBUTING.md)를 보세요. 이 문서는 영어 [README.md](README.md)의 번역이며, 내용이 다르면 영어가 우선합니다.
|
|
144
145
|
|
|
145
|
-
|
|
146
|
+
시작 사이트 세 개(`docs`, `blog`, `landing`)는 라이브 데모가 딸린 템플릿 저장소이고, 목록은 `example/starters.yml`에, 저장소는 [`example/`](example/)에 git 서브모듈로 있습니다(`--recurse-submodules`로 복제합니다). `bundle exec rake starters:render`는 각 사이트를 GitHub Pages(`remote_theme`)용과 Jekyll 4용으로 만들고, `Gemfile`, `README.md`, `modootoday-check`를 실행하는 Pages 워크플로, 스텁을 함께 씁니다.
|
|
146
147
|
|
|
147
148
|
## 라이선스
|
|
148
149
|
|
data/README.md
CHANGED
|
@@ -6,14 +6,14 @@ A Jekyll theme that keeps page bodies in plain GitHub Markdown and styles them w
|
|
|
6
6
|
[](https://rubygems.org/gems/jekyll-theme-modootoday)
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
|
|
9
|
-
[Documentation](https://modootoday.github.io/jekyll-theme-modootoday/) · [한국어](README.ko.md)
|
|
9
|
+
[Documentation](https://modootoday.github.io/jekyll-theme-modootoday/) · [한국어](README.ko.md) · [日本語](README.ja.md)
|
|
10
10
|
|
|
11
11
|
## Why
|
|
12
12
|
|
|
13
13
|
- **Only standard Markdown in your pages.** GFM plus GitHub alerts; the same file reads well on github.com.
|
|
14
14
|
- **Works on GitHub Pages.** Layouts and includes are Liquid only, so `remote_theme` works on the classic build; Jekyll 4 works too.
|
|
15
15
|
- **Components without markup.** Alerts, status badges, card grids, tabs, buttons, accordion, steps, timeline and more come from plain Markdown patterns.
|
|
16
|
-
- **Page families.**
|
|
16
|
+
- **Page families.** Layouts beyond docs ([the full list](https://modootoday.github.io/jekyll-theme-modootoday/reference/api/#layouts)): home, blog and news, directory (team, jobs, events, sponsors, portfolio), detail pages, marketing (pricing, feature, contact, links), documents (legal, resume) and docs extras (reference, changelog, roadmap, glossary, course, book).
|
|
17
17
|
- **Sections that look designed.** `sections:` items take options such as `c: split` with a `visual:` include or code, full-width `bleed:` bands, `reveal:` fade-ins and four-column cards; a split hero works the same way.
|
|
18
18
|
- **23 languages, LTR and RTL.** Theme labels ship localized for 23 languages, with a language menu, `hreflang` and right-to-left layouts.
|
|
19
19
|
- **Readable by agents.** Every page can have a byte-identical Markdown twin, plus `llms.txt` and `llms-full.txt`.
|
|
@@ -27,7 +27,7 @@ As a gem (`theme:`):
|
|
|
27
27
|
|
|
28
28
|
```ruby
|
|
29
29
|
# Gemfile
|
|
30
|
-
gem "jekyll-theme-modootoday", "~> 1.
|
|
30
|
+
gem "jekyll-theme-modootoday", "~> 1.7"
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
```yaml
|
|
@@ -39,18 +39,17 @@ On GitHub Pages without a Gemfile (`remote_theme:`):
|
|
|
39
39
|
|
|
40
40
|
```yaml
|
|
41
41
|
# _config.yml
|
|
42
|
-
remote_theme: modootoday/jekyll-theme-modootoday@v1.
|
|
43
|
-
plugins:
|
|
44
|
-
- jekyll-remote-theme
|
|
42
|
+
remote_theme: modootoday/jekyll-theme-modootoday@v1.7.0
|
|
43
|
+
plugins: [jekyll-remote-theme]
|
|
45
44
|
```
|
|
46
45
|
|
|
47
|
-
Pin a tag or a commit.
|
|
46
|
+
Pin a tag or a commit. The [Install guide](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/) has the minimal configuration, the checker and the starter sites.
|
|
48
47
|
|
|
49
48
|
## Quick start
|
|
50
49
|
|
|
51
50
|
```sh
|
|
52
51
|
mkdir my-docs && cd my-docs
|
|
53
|
-
printf 'source "https://rubygems.org"\ngem "jekyll", "~> 4.4"\ngem "jekyll-theme-modootoday", "~> 1.
|
|
52
|
+
printf 'source "https://rubygems.org"\ngem "jekyll", "~> 4.4"\ngem "jekyll-theme-modootoday", "~> 1.7"\n' > Gemfile
|
|
54
53
|
printf 'theme: jekyll-theme-modootoday\nmarkdown: kramdown\nkramdown: {input: GFM}\nsass: {style: compressed, silence_deprecations: [import, global-builtin]}\n' > _config.yml
|
|
55
54
|
printf -- '---\nlayout: doc\ntitle: Home\n---\n# Hello\n\n> [!TIP]\n> Plain Markdown, styled.\n' > index.md
|
|
56
55
|
bundle install && bundle exec jekyll build
|
|
@@ -67,17 +66,18 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
|
|
|
67
66
|
- **Settings and tokens.** One `modootoday:` block in `_config.yml`, CSS custom properties `--mt-*` that a site sets from one Sass hook (`_sass/modootoday/_site.scss`, no inline style), one Sass partial per component. See [Configuration](https://modootoday.github.io/jekyll-theme-modootoday/guides/configuration/) and [Customize](https://modootoday.github.io/jekyll-theme-modootoday/guides/customize/).
|
|
68
67
|
- **Blog and news.** `blog`, `news`, `news-article`, `author` and `feed` layouts: paginated card lists (list, grid, magazine), bylines from `_data/authors.yml`, series, related posts, share, JSON-LD, per-language Atom feeds; Liquid only, styles and script in an optional bundle. See [Blog and news](https://modootoday.github.io/jekyll-theme-modootoday/layouts/blog-news/).
|
|
69
68
|
- **Pages from data.** `modootoday.records` gives every record of a `_data` file its own page on classic Pages: `modootoday-stubs --records` writes one front-matter-only page per record, a directory page with `records:` lists them, and `modootoday-check --byte-exact=api` proves a folder is published byte for byte. See [Generated pages](https://modootoday.github.io/jekyll-theme-modootoday/recipes/generated-pages/).
|
|
70
|
-
- **Twins
|
|
69
|
+
- **Twins.** Every page can have a Markdown twin for agents, published in one of three ways; see [AI agents](#ai-agents) below.
|
|
71
70
|
|
|
72
71
|
## Commands
|
|
73
72
|
|
|
74
|
-
`modootoday-check SRC SITE [options]` (run after `jekyll build`):
|
|
73
|
+
Both commands are also listed on the [Command line](https://modootoday.github.io/jekyll-theme-modootoday/reference/cli/) page. `modootoday-check SRC SITE [options]` (run after `jekyll build`):
|
|
75
74
|
|
|
76
75
|
<!-- commands:begin (generated by script/readme-commands; do not edit) -->
|
|
77
76
|
| Option | Checks |
|
|
78
77
|
|---|---|
|
|
79
|
-
| `SRC SITE` | always: front matter, forbidden syntax, alerts, fence info strings, `status:`/`tag:`/`kbd:` values (`since:` is rejected), `sections:` count, `_data/i18n/<lang>.yml` keys against the default language and translated pages against default-language pages, `_data/components.yml` (keys, slot contract counts per section, `parts` against `api.md` and the built HTML), Sass/CSS rules, the token hook `_sass/modootoday/_site.scss` (only the three override maps, known token names), `site_css`, `preload` and `scripts` files present in the build, `script:` and `poster:` on hero and section items (a registered script, a sized poster that exists), `filter:` on section items and pages (a list or table to filter, a `facet` column the table has), `chart:` lines and `c: chart` sections (a type and options, a table or a `_data/charts` file, number cells), `widget:` lines, `widget_props` and `c: widget` sections (an element a `modootoday.scripts` entry defines, plain prop values, a lead paragraph), `diagrams:` (an entry per Mermaid fence, `alt`, the SVG files, an SVG drawn from another fence), static math (an entry per math block in `_data/math`, entries rendered from other TeX, no inline math),`modootoday.search` keys and collections, `modootoday.showcase` (also in `_config.demo.yml`) and, while it is enabled, the robots `noindex` on every built page (warning), `search.json` over 1.5 MB (warning), unconverted markers in the build, schema.org JSON-LD in the build (valid JSON, vocabulary, required properties per type, absolute URLs, ISO 8601 dates, one graph per page, agreement with Open Graph, a `DefinedTerm` page's `term_set` glossary), `modootoday.schema.faq`, `modootoday.records` (a page per record and a record per page, as `modootoday-stubs --records --check` judges) |
|
|
78
|
+
| `SRC SITE` | always: front matter, forbidden syntax, alerts, fence info strings, `status:`/`tag:`/`kbd:` values (`since:` is rejected), `sections:` count, `feed:` (false, or a site path to an Atom feed page in the build), `_data/i18n/<lang>.yml` keys against the default language and translated pages against default-language pages, `_data/components.yml` (keys, slot contract counts per section, `parts` against `api.md` and the built HTML), Sass/CSS rules, the token hook `_sass/modootoday/_site.scss` (only the three override maps, known token names), `site_css`, `preload` and `scripts` files present in the build, `script:` and `poster:` on hero and section items (a registered script, a sized poster that exists), `filter:` on section items and pages (a list or table to filter, a `facet` column the table has), `chart:` lines and `c: chart` sections (a type and options, a table or a `_data/charts` file, number cells), `widget:` lines, `widget_props` and `c: widget` sections (an element a `modootoday.scripts` entry defines, plain prop values, a lead paragraph), `diagrams:` (an entry per Mermaid fence, `alt`, the SVG files, an SVG drawn from another fence), static math (an entry per math block in `_data/math`, entries rendered from other TeX, no inline math),`modootoday.search` keys and collections, `modootoday.showcase` (also in `_config.demo.yml`) and, while it is enabled, the robots `noindex` on every built page (warning), `search.json` over 1.5 MB (warning), unconverted markers in the build, schema.org JSON-LD in the build (valid JSON, vocabulary, required properties per type, absolute URLs, ISO 8601 dates, one graph per page, agreement with Open Graph, a `DefinedTerm` page's `term_set` glossary), `modootoday.schema.faq`, `modootoday.records` (a page per record and a record per page, as `modootoday-stubs --records --check` judges), `modootoday.pwa` (its keys and icons, the stub `modootoday-stubs --pwa` writes, the built manifest's fields, icon files and their PNG sizes, the manifest link on every page) |
|
|
80
79
|
| `--twins` | every page has a byte-identical Markdown twin, per-language `llms.txt` and `llms-full.txt` |
|
|
80
|
+
| `--links` | same-site links in the built HTML (`a`, `link`, `img`, `script`, `source srcset`) point at files that exist and `#` fragments match an `id` or `a[name]` on the target page; external URLs are not fetched. Warnings, failures with `--strict`; needs the nokogiri gem |
|
|
81
81
|
| `--aliases` | the URL aliases `modootoday.aliases` declares: `/<page>.md` byte-identical to the twin (`md`), `/<page>.html` redirecting to the page with the page URL as canonical (`html`); two pages with one alias, or an alias over another source file, fail |
|
|
82
82
|
| `--byte-exact=DIR,...` | files under these source folders (an API, downloads) are in the build with the same sha256; a folder under `_` or `.` or excluded, a file with front matter, or one Jekyll converts (Markdown, Sass) fails |
|
|
83
83
|
| `--github-pages[=VERSION]` | `Gemfile.lock` pins `github-pages` VERSION (default 232) |
|
|
@@ -102,6 +102,7 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
|
|
|
102
102
|
| `--twins` | a stub `<name>.md.txt` per page (`layout: twin`) for its twin at `/<name>/index.md` |
|
|
103
103
|
| `--aliases` | the aliases `modootoday.aliases` turns on: `md` a stub `<name>.flat.md.txt` (`layout: twin`) at `/<name>.md`, `html` a stub `<name>.html.md.txt` (`layout: redirect`) at `/<name>.html` |
|
|
104
104
|
| `--records[=SET,...]` | a page `<dir>/<key>.md` per record of each set in `modootoday.records` (or only the named sets): front matter only, with the title, description, permalink and `record:` the layout reads |
|
|
105
|
+
| `--pwa` | the files `modootoday.pwa` needs (with `enabled: true` or `kill`): `manifest.webmanifest`, the service worker `sw.js` and the offline pages `offline.md` and `offline.<lang>.md` for each `full_languages` entry; never pruned, and a site file already at one of those paths is never overwritten |
|
|
105
106
|
| `--write` | write the planned stubs; files whose content is already right are not touched |
|
|
106
107
|
| `--check` | write nothing; exit 1 when a stub is missing, out of date or orphaned |
|
|
107
108
|
| `--no-prune` | keep orphan stubs (by default a twin stub whose page is gone, an alias stub no page wants, or a record page whose record is gone, is deleted) |
|
|
@@ -117,13 +118,13 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
|
|
|
117
118
|
- `llms.txt` and `llms-full.txt` exist at `/` and under each `/<lang>/`.
|
|
118
119
|
- Jekyll 4: `plugins: [jekyll-theme-modootoday]` creates them; the classic GitHub Pages build uses one-file stubs, which `modootoday-stubs SRC --twins --write` writes.
|
|
119
120
|
- Optional URL aliases (`modootoday.aliases`): `/guide.md` (the twin again) and `/guide.html` (a redirect to `/guide/`), from `modootoday-stubs SRC --aliases --write`.
|
|
120
|
-
- Details: [
|
|
121
|
+
- Details, including source mode (front-matter-less pages, no stubs): the [AI agents guide](https://modootoday.github.io/jekyll-theme-modootoday/guides/agents/), the contract in [RULES.md §5a](RULES.md#5a-markdown-twins), and this repository's own [llms.txt](https://modootoday.github.io/jekyll-theme-modootoday/llms.txt).
|
|
121
122
|
|
|
122
123
|
## Guides
|
|
123
124
|
|
|
124
125
|
- [Documentation site](https://modootoday.github.io/jekyll-theme-modootoday/) (built with this theme from [`docs/`](docs/))
|
|
125
|
-
- [Install](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/) · [First page](https://modootoday.github.io/jekyll-theme-modootoday/guides/first-page/) · [Components](https://modootoday.github.io/jekyll-theme-modootoday/components/) · [Configuration](https://modootoday.github.io/jekyll-theme-modootoday/guides/configuration/) · [Customize](https://modootoday.github.io/jekyll-theme-modootoday/guides/customize/) · [Layouts](https://modootoday.github.io/jekyll-theme-modootoday/layouts/) · [Blog and news](https://modootoday.github.io/jekyll-theme-modootoday/layouts/blog-news/) · [Recipes](https://modootoday.github.io/jekyll-theme-modootoday/recipes/) · [Math and diagrams](https://modootoday.github.io/jekyll-theme-modootoday/recipes/math-diagrams/) · [Charts](https://modootoday.github.io/jekyll-theme-modootoday/recipes/charts/) · [Widgets](https://modootoday.github.io/jekyll-theme-modootoday/recipes/widgets/) · [Generated pages](https://modootoday.github.io/jekyll-theme-modootoday/recipes/generated-pages/) · [Translation rules](https://modootoday.github.io/jekyll-theme-modootoday/guides/translation/) · [Structured data](https://modootoday.github.io/jekyll-theme-modootoday/guides/structured-data/) · [Public API](https://modootoday.github.io/jekyll-theme-modootoday/reference/api/) · [Migrate and upgrade](https://modootoday.github.io/jekyll-theme-modootoday/guides/upgrade/) · [CSP](https://modootoday.github.io/jekyll-theme-modootoday/recipes/csp/) · [Accessibility](https://modootoday.github.io/jekyll-theme-modootoday/guides/accessibility/) · [Performance](https://modootoday.github.io/jekyll-theme-modootoday/guides/performance/) · [Roadmap](https://modootoday.github.io/jekyll-theme-modootoday/reference/roadmap/) · [Changelog](CHANGELOG.md)
|
|
126
|
-
- Supported stacks: GitHub Pages
|
|
126
|
+
- [Install](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/) · [First page](https://modootoday.github.io/jekyll-theme-modootoday/guides/first-page/) · [Components](https://modootoday.github.io/jekyll-theme-modootoday/components/) · [Configuration](https://modootoday.github.io/jekyll-theme-modootoday/guides/configuration/) · [Customize](https://modootoday.github.io/jekyll-theme-modootoday/guides/customize/) · [Layouts](https://modootoday.github.io/jekyll-theme-modootoday/layouts/) · [Blog and news](https://modootoday.github.io/jekyll-theme-modootoday/layouts/blog-news/) · [Recipes](https://modootoday.github.io/jekyll-theme-modootoday/recipes/) · [Math and diagrams](https://modootoday.github.io/jekyll-theme-modootoday/recipes/figures/math-diagrams/) · [Charts](https://modootoday.github.io/jekyll-theme-modootoday/recipes/figures/charts/) · [Widgets](https://modootoday.github.io/jekyll-theme-modootoday/recipes/figures/widgets/) · [Generated pages](https://modootoday.github.io/jekyll-theme-modootoday/recipes/generated-pages/) · [Search](https://modootoday.github.io/jekyll-theme-modootoday/recipes/search/) · [Brand tokens](https://modootoday.github.io/jekyll-theme-modootoday/recipes/brand-tokens/) · [AI agents](https://modootoday.github.io/jekyll-theme-modootoday/guides/agents/) · [Translation rules](https://modootoday.github.io/jekyll-theme-modootoday/guides/translation/) · [Structured data](https://modootoday.github.io/jekyll-theme-modootoday/guides/structured-data/) · [Public API](https://modootoday.github.io/jekyll-theme-modootoday/reference/api/) · [Command line](https://modootoday.github.io/jekyll-theme-modootoday/reference/cli/) · [Migrate and upgrade](https://modootoday.github.io/jekyll-theme-modootoday/guides/upgrade/) · [CSP](https://modootoday.github.io/jekyll-theme-modootoday/recipes/csp/) · [Accessibility](https://modootoday.github.io/jekyll-theme-modootoday/guides/accessibility/) · [Performance](https://modootoday.github.io/jekyll-theme-modootoday/guides/performance/) · [Roadmap](https://modootoday.github.io/jekyll-theme-modootoday/reference/roadmap/) · [Changelog](https://modootoday.github.io/jekyll-theme-modootoday/reference/changelog/) ([CHANGELOG.md](CHANGELOG.md))
|
|
127
|
+
- Supported stacks: classic GitHub Pages and Jekyll 4, with the versions listed in [Install > Requirements](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/#requirements).
|
|
127
128
|
- [Security policy](SECURITY.md) · [Code of conduct](CODE_OF_CONDUCT.md)
|
|
128
129
|
|
|
129
130
|
## Exit codes
|
|
@@ -139,7 +140,7 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
|
|
|
139
140
|
|
|
140
141
|
Issues and pull requests are welcome. English is the canonical language; translations follow it. See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
141
142
|
|
|
142
|
-
|
|
143
|
+
The three starter sites, `docs`, `blog` and `landing`, are template repositories with live demos, listed in `example/starters.yml` and held in [`example/`](example/) as git submodules (clone with `--recurse-submodules`). `bundle exec rake starters:render` writes each one for GitHub Pages (`remote_theme`) and Jekyll 4, with its `Gemfile`, `README.md`, a Pages workflow that runs `modootoday-check`, and its stubs.
|
|
143
144
|
|
|
144
145
|
## License
|
|
145
146
|
|
data/RULES.md
CHANGED
|
@@ -49,6 +49,7 @@ Every content page starts with front matter; an empty block (`---` then `---`) i
|
|
|
49
49
|
| Embed | a paragraph holding only `` `embed:https://… Title` `` | `div.mt-embed` > lazy `iframe[title]` (16:9 reserved) | non-https is a checker error |
|
|
50
50
|
| Loading / skeleton | `` `loading:spinner` ``, `` `loading:bar` ``, `` `skeleton:text` `` / `card` / `image` / `avatar` / `row` | `span.mt-spinner`, `span.mt-topbar`, `span.mt-skeleton` with `role=status`, `aria-busy` and i18n `loading.label`; optional `loading` sheet; reduced motion, forced colors and RTL | unknown variants are checker errors |
|
|
51
51
|
| File tree / Details / FAQ / Params / Link cards / Quote / Gallery / Pricing / Subscribe / Split | `c: filetree` (nested list), `c: details` and `c: faq` (`###` per item), `c: params` (table), `c: linkcards` (link-first list), `c: quote` (quote ending in `— name`), `c: gallery` (tight image list), `c: pricing` (`###` per plan, param `recommended`), `c: subscribe` (text; form posts to `modootoday.subscribe.action`), `c: split` (text beside its `visual:`, params `side`, `ratio`; the only section with inner wrappers) | per-component markup listed in docs api.md; each has its own sheet | gallery images need alt; `recommended` must be in range; subscribe action must be https; split needs `visual:` |
|
|
52
|
+
| Install | a `c: install` section (text first) | the section text, `button.mt-install[hidden]` (i18n `pwa.install`) and `p.mt-install-hint` (i18n `pwa.install_hint`); with `modootoday.pwa.enabled: true`, `pwa/install.js` shows the button only while the browser offers installing and prompts only on a click; the section hides in the installed app; optional `install` sheet | a section without a lead paragraph is a checker error; the section on a site without `pwa.enabled: true` is a warning |
|
|
52
53
|
| Chart | with `modootoday.chart.enabled`, a paragraph holding only `` `chart:<type>` `` (`bar`, `line`, `area`, `pie`, `doughnut`; options `stacked`, `horizontal`) right before a GFM table; or a `c: chart` section (params `type`, `stacked`, `horizontal`, `data: <name>` for `_data/charts/<name>.yml`) | `figure.mt-chart[data-type][data-opts]` > `div.mt-chart-canvas[hidden]` + `div.mt-chart-data` (the table, which stays the fallback) + `figcaption` from an emphasis-only paragraph after the table (with `data:`, the one ending the section); optional `chart` sheet | unknown types and options, a `chart:` line without a table, a section with both or neither of a table and `data:`, a missing or misshapen data file are checker errors; non-number cells warn; a leftover `chart:` paragraph in the build is an error |
|
|
53
54
|
| Widget | a `c: widget` section (params `widget`: the `element` of a `modootoday.scripts` entry, `props`: a map of plain values), or a paragraph holding only `` `widget:<element>` `` (props from front matter `widget_props.<element>`) | `<element class="mt-widget" data-props="{json}">` > `div.mt-widget-fallback` holding the section text after the h2 (the inline form: the i18n `widget.fallback` sentence); the fallback shows until the element is defined (`:defined`); optional `widget` sheet; the entry's module and sheet load only on pages that contain the element | an element no `modootoday.scripts` entry names, props that are not plain values and a section without a lead paragraph are checker errors; a `widget:` line for an unregistered element stays a code span |
|
|
54
55
|
| Component registry | optional `_data/components.yml`: `name: {params: {key: {allowed: [...], required: bool}}, i18n: [keys...]}` | when present the checker validates `c`, params and i18n keys | — |
|
|
@@ -83,10 +84,13 @@ The bans are about **portability**: the same source must look the same on github
|
|
|
83
84
|
|
|
84
85
|
Allowed and portable: footnotes `[^1]` (markup differs slightly), task lists, strikethrough, GFM tables, `<url>` autolinks, hard breaks. Note: `> [! NOTE]` (space inside) is not an alert; the checker warns, `--strict` makes it an error.
|
|
85
86
|
|
|
86
|
-
## 5. Checker (`modootoday-check SRC SITE [
|
|
87
|
+
## 5. Checker (`modootoday-check SRC SITE [options]`)
|
|
88
|
+
Every option is listed on the docs site's [Command line](https://modootoday.github.io/jekyll-theme-modootoday/reference/cli/) page. The checks:
|
|
87
89
|
1. front matter present 2. forbidden syntax, alert form, fence info strings 3. `status:` vocabulary 4. `sections:` count = top-level `## ` count, nested/setext/indented `##` 5. `_data/components.yml` if present 6. no `[!TYPE]` (any case, outside `<pre>`/`<code>`) / `<code>status:` in built HTML 7. `--github-pages`: `Gemfile.lock` pins github-pages VER (default 232, or `$MODOOTODAY_GITHUB_PAGES`) 8. `--twins`: rules below 8a. Sass sources (`_sass/`, `assets/**/*.scss`) and built CSS: no `@use`/`@forward`/`@supports selector()`, no `--x: $var` literals, every `var(--mt-*)` defined; the token hook `_sass/modootoday/_site.scss` holds only `$mt-overrides-base`, `$mt-overrides` and `$mt-overrides-dark` maps of theme token names 8b. `_config.yml` `modootoday:`: `twins` is `true`, `false` or `source`, known `color_scheme`/`components`, boolean `css_layers`/`badges`, `tokens`/`tokens_dark` values are plain CSS values (no `; { } < >`, valid hex), unknown token names warn; `site_css` (site paths to `.css` files) and `preload` (`{href, as, type}`, `as` one of font, image, style, script, fetch) in settings and front matter, each file present in the build; `scripts` (name: `{src, css, preload, element}`, site paths only, `element` a custom element name), each file present in the build 9. `--gh` (optional, network + `gh` auth): render with `gh api markdown`.
|
|
88
90
|
|
|
89
91
|
## 5a. Markdown twins
|
|
92
|
+
This section is the contract; the [AI agents](https://modootoday.github.io/jekyll-theme-modootoday/guides/agents/) guide shows how to set each way up.
|
|
93
|
+
|
|
90
94
|
Three ways to publish a page's raw Markdown next to its HTML. Pick one per site (stubs may be mixed with the others for single pages).
|
|
91
95
|
|
|
92
96
|
| Mode | How | Twin URL | Use when | Limits |
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{%- comment -%}Sets mt_build_v: the theme version and the commit the site is built from (site.github.build_revision), else the
|
|
2
|
+
build time, so it changes on every deploy. Read by assets/registry.html (asset_version: build) and pwa/sw.js.{%- endcomment -%}
|
|
3
|
+
{%- include modootoday/version.html -%}
|
|
4
|
+
{%- assign _mtb_rev = site.github.build_revision | slice: 0, 7 -%}
|
|
5
|
+
{%- if _mtb_rev == "" -%}{%- assign _mtb_rev = site.time | date: "%s" -%}{%- endif -%}
|
|
6
|
+
{%- assign mt_build_v = mt_version | append: "-" | append: _mtb_rev -%}
|