jekyll-theme-modootoday 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -1
- data/README.ja.md +8 -9
- data/README.ko.md +8 -9
- data/README.md +7 -6
- data/RULES.md +3 -3
- data/_includes/modootoday/chrome/banner-text.html +4 -1
- data/_includes/modootoday/i18n/ko.html +1 -1
- data/_includes/modootoday/links/markdown.html +105 -0
- data/_includes/modootoday/lookup/paths.html +8 -0
- data/_includes/modootoday/markdown/inline.html +3 -1
- data/_includes/modootoday/markdown/raw-body.html +5 -1
- data/_includes/modootoday/toc.html +2 -1
- data/_includes/modootoday/version.html +1 -1
- data/_layouts/llms-full.html +1 -1
- data/_layouts/twin.html +1 -1
- data/assets/js/modootoday/structure/toc-spy.js +4 -0
- data/i18n/ko.yml +1 -1
- data/lib/modootoday/check/build/links.rb +11 -2
- data/lib/modootoday/check/build/release_banner.rb +31 -0
- data/lib/modootoday/check/build/stubs/twin_links.rb +40 -0
- data/lib/modootoday/check/build/stubs/twins.rb +11 -5
- data/lib/modootoday/check/cli.rb +6 -5
- data/lib/modootoday/check/config/keys/pages/edit_url.rb +6 -3
- data/lib/modootoday/check/config/site_config.rb +1 -1
- data/lib/modootoday/check/context.rb +27 -3
- data/lib/modootoday/check/native/sources.rb +1 -1
- data/lib/modootoday/check/registry/i18n_pages.rb +4 -1
- data/lib/modootoday/check.rb +2 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 336343638c3d55ab927d1c5d271d57c7836feede02d55de78d4486e4e4719b2d
|
|
4
|
+
data.tar.gz: 0ed1da89e655b7db24f008b4b1cf4788d7cf5ee1a7cdd0d987091e71c2e68ce9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97f24057ca8abcbc40d45a093972cb0ccb3e7a989ed177a90cdd578d29aa15f9eba723ea8ad64a078e4829916068cc951d04a1664870848254cc8fcc412ecaf5
|
|
7
|
+
data.tar.gz: effe0793cb362cb6b94345f2a15db2a61bae19ab03f0bb415f9b8324a99cfbea99f345acdd4b755b3d5f4c3bb099cea45ffe0a5e81fcc813a2b6db5ef055e23a
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,35 @@ The content rules have their own version header (`md-components v1`) in [RULES.m
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.7.1] - 2026-11-16
|
|
10
|
+
|
|
11
|
+
Visual: the intended differences from 1.7.0 are the Components page and the kitchen sinks, whose components now run A-Z by English title inside each group, with the card sections named Cards and Cards in 3 or 4 columns and the example headings renamed so the Install section keeps its anchor; the Configuration page, whose key table marks the keys 1.7 added with a bold 1.7 under a legend above it and gains a github: map example; the Installable site recipe's longer Updates steps; the Install guide's Try the next release section and Jekyll 4 plugin line; the new Translate your site guide; and the home page's sentence about Markdown twins. The blog and landing demos do not change.
|
|
12
|
+
|
|
13
|
+
1.7.1 makes the documentation read on GitHub as well as on the site: relative links name the Markdown file, Jekyll 4 sites turn them into page URLs with jekyll-relative-links, and the Markdown twins and llms-full.txt point their links at the site. `modootoday-check` fails `--links` without nokogiri, names the plugin when a `.md` link is left in the HTML, reads overlay configs with `--config`, and stops scanning other build folders; the release banner drops a tag's leading v, footnote references carry their role on the link, and the Components page lists its components A-Z by English title.
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- Modootoday-check warns when banner release: latest is set and the built site has no release banner (no release data in the build) (audit:modootoday/20261113044135)
|
|
18
|
+
- Markdown twins and llms-full.txt point links that name a source file (upgrade.md#x, ../b.ko.md, images) at their targets' site URLs, so they resolve from the twin's URL; modootoday-check --twins fails a rewritten link that reaches no file (adr:modootoday/20261114115001)
|
|
19
|
+
- Modootoday-check --links names the jekyll-relative-links plugin for a relative .md link left in the built HTML, --config=FILE,... reads overlay config files like jekyll build --config, and a missing release banner prints one warning instead of two (audit:modootoday/20261114090416)
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- List components A-Z by English title inside each purpose group, in every language (adr:modootoday/20261114090712)
|
|
24
|
+
- The docs say how to try the main branch, which keys 1.7 added, how hreflang needs url:, and how to see the update notice locally (audit:modootoday/20261114090416)
|
|
25
|
+
- The Install guide's Jekyll 4 Gemfile adds jekyll-relative-links, so links that name a Markdown file become page URLs as on GitHub Pages (audit:modootoday/20261114090416)
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- Modootoday-check --links fails with an error that says to add gem "nokogiri" when nokogiri is missing, instead of warning and passing (audit:modootoday/20261113044135, adr:modootoday/20261111231457)
|
|
30
|
+
- Modootoday-check --i18n-pages no longer asks for source_rev on the offline pages that modootoday-stubs --pwa writes (audit:modootoday/20261114090416)
|
|
31
|
+
- Modootoday-check names github: {latest_release: {tag_name, html_url}} as the stand-in for banner: {release: latest}, and warns when a github: map lacks it (audit:modootoday/20261114090416)
|
|
32
|
+
- The modootoday-check --links error without nokogiri says gem install nokogiri only for a checker run without Bundler (audit:modootoday/20261114090416)
|
|
33
|
+
- Modootoday-check no longer reads the SITE folder or other underscore folders such as _site_ko as source pages (audit:modootoday/20261114090416)
|
|
34
|
+
- The release banner drops a leading v of the tag, so v1.2.0 reads 1.2.0 is out. (adr:modootoday/20261112112607, audit:modootoday/20261114090416)
|
|
35
|
+
- Footnote references carry role="doc-noteref" on their link instead of sup on GitHub Pages, and the On this page column scrolls back to its start at the top of the page. (adr:modootoday/20261110172642)
|
|
36
|
+
- The Korean release banner no longer shows the 이(가) particle placeholder. (audit:modootoday/20261114090416)
|
|
37
|
+
|
|
9
38
|
## [1.7.0] - 2026-11-13
|
|
10
39
|
|
|
11
40
|
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.
|
|
@@ -525,7 +554,8 @@ Internal development milestones, never released. They are all part of 1.0.0.
|
|
|
525
554
|
- Example: `sass.silence_deprecations: [import]` for Dart Sass; `llms.txt` per language generated instead of hand-written.
|
|
526
555
|
- 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.
|
|
527
556
|
|
|
528
|
-
[Unreleased]: https://github.com/modootoday/jekyll-theme-modootoday/compare/v1.7.
|
|
557
|
+
[Unreleased]: https://github.com/modootoday/jekyll-theme-modootoday/compare/v1.7.1...HEAD
|
|
558
|
+
[1.7.1]: https://github.com/modootoday/jekyll-theme-modootoday/releases/tag/v1.7.1
|
|
529
559
|
[1.7.0]: https://github.com/modootoday/jekyll-theme-modootoday/releases/tag/v1.7.0
|
|
530
560
|
[1.6.0]: https://github.com/modootoday/jekyll-theme-modootoday/releases/tag/v1.6.0
|
|
531
561
|
[1.5.0]: https://github.com/modootoday/jekyll-theme-modootoday/releases/tag/v1.5.0
|
data/README.ja.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
- **ページの種類。** ドキュメント以外にも多くのレイアウトがあります([一覧](https://modootoday.github.io/jekyll-theme-modootoday/ja/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` を置けます。
|
|
23
23
|
- **アクセシブル。** キーボードショートカット、見えるフォーカス、スマートフォンのセーフエリア、44 px のタッチターゲット、ハイコントラストと視差効果を減らす設定が組み込まれています。
|
|
24
24
|
- **チェッカー。** `modootoday-check` がソースとビルド結果を検査します。
|
|
25
25
|
- **任意の機能。** 検索、ライト/ダークの切り替え、Mermaid の図と KaTeX の数式(既定ではオフで、使うページだけで読み込みます)、コミットした SVG ファイルと MathML で表示する静的な図と数式、schema.org JSON-LD があります。
|
|
@@ -42,7 +42,7 @@ Gemfile なしの GitHub Pages で(`remote_theme:`):
|
|
|
42
42
|
|
|
43
43
|
```yaml
|
|
44
44
|
# _config.yml
|
|
45
|
-
remote_theme: modootoday/jekyll-theme-modootoday@v1.7.
|
|
45
|
+
remote_theme: modootoday/jekyll-theme-modootoday@v1.7.1
|
|
46
46
|
plugins: [jekyll-remote-theme]
|
|
47
47
|
```
|
|
48
48
|
|
|
@@ -78,11 +78,12 @@ bundle exec modootoday-check . _site
|
|
|
78
78
|
<!-- commands:begin (generated by script/readme-commands; do not edit) -->
|
|
79
79
|
| Option | Checks |
|
|
80
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
|
|
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 |
|
|
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), `modootoday.banner.release: latest` with no release banner on the built home page (warning) |
|
|
82
|
+
| `--twins` | every page has a Markdown twin of its source text (links aimed at the site), 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; a relative link to a `.md` file that is not in the build names the jekyll-relative-links plugin. Warnings, failures with `--strict`; needs the nokogiri gem, and fails the run without it |
|
|
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
|
+
| `--config=FILE,...` | read the site settings from these files instead of `SRC/_config.yml`, merged in order with later keys winning, as `jekyll build --config` does; a missing file fails |
|
|
86
87
|
| `--github-pages[=VERSION]` | `Gemfile.lock` pins `github-pages` VERSION (default 232) |
|
|
87
88
|
| `--schema-recommended` | also warn about schema.org properties Google Search recommends (author, image, dates, ...) that a JSON-LD node lacks |
|
|
88
89
|
| `--strict` | warnings fail the run |
|
|
@@ -117,7 +118,7 @@ bundle exec modootoday-check . _site
|
|
|
117
118
|
|
|
118
119
|
## AI エージェント
|
|
119
120
|
|
|
120
|
-
- `guide.md` の Markdown 版は `/guide/index.md`
|
|
121
|
+
- `guide.md` の Markdown 版は `/guide/index.md` にあり、本文のテキストそのままで(ソースファイルを指すリンクはサイトの URL に変わります)、`rel="alternate" type="text/markdown"` でリンクされます。
|
|
121
122
|
- `llms.txt` と `llms-full.txt` は `/` と各 `/<lang>/` の下にあります。
|
|
122
123
|
- Jekyll 4 では `plugins: [jekyll-theme-modootoday]` が作ります。従来の GitHub Pages のビルドは 1 ファイルのスタブを使い、スタブは `modootoday-stubs SRC --twins --write` が書きます。
|
|
123
124
|
- 任意の URL エイリアス(`modootoday.aliases`): `/guide.md`(Markdown 版そのもの)と `/guide.html`(`/guide/` へのリダイレクト)は `modootoday-stubs SRC --aliases --write` が作ります。
|
|
@@ -141,9 +142,7 @@ bundle exec modootoday-check . _site
|
|
|
141
142
|
|
|
142
143
|
## コントリビュート
|
|
143
144
|
|
|
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 のワークフロー、スタブも一緒に書きます。
|
|
145
|
+
Issue とプルリクエストを歓迎します。[CONTRIBUTING.md](CONTRIBUTING.md) をご覧ください。この文書は英語の [README.md](README.md) の翻訳で、内容が異なる場合は英語版が優先されます。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
146
|
|
|
148
147
|
## ライセンス
|
|
149
148
|
|
data/README.ko.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
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`를 둘 수 있습니다.
|
|
23
23
|
- **접근성.** 키보드 단축키, 보이는 포커스, 휴대폰 안전 영역, 44 px 터치 대상, 고대비와 동작 줄이기가 기본으로 들어 있습니다.
|
|
24
24
|
- **검사기.** `modootoday-check`가 원문과 빌드 결과를 검사합니다.
|
|
25
25
|
- **선택 기능.** 검색, 라이트/다크 전환, Mermaid 다이어그램과 KaTeX 수식(기본은 꺼져 있고 쓰는 페이지에서만 불러옵니다), 커밋한 SVG 파일과 MathML로 보여 주는 정적 다이어그램과 수식, schema.org JSON-LD를 제공합니다.
|
|
@@ -42,7 +42,7 @@ Gemfile 없이 GitHub Pages에서(`remote_theme:`):
|
|
|
42
42
|
|
|
43
43
|
```yaml
|
|
44
44
|
# _config.yml
|
|
45
|
-
remote_theme: modootoday/jekyll-theme-modootoday@v1.7.
|
|
45
|
+
remote_theme: modootoday/jekyll-theme-modootoday@v1.7.1
|
|
46
46
|
plugins: [jekyll-remote-theme]
|
|
47
47
|
```
|
|
48
48
|
|
|
@@ -78,11 +78,12 @@ bundle exec modootoday-check . _site
|
|
|
78
78
|
<!-- commands:begin (generated by script/readme-commands; do not edit) -->
|
|
79
79
|
| Option | Checks |
|
|
80
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
|
|
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 |
|
|
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), `modootoday.banner.release: latest` with no release banner on the built home page (warning) |
|
|
82
|
+
| `--twins` | every page has a Markdown twin of its source text (links aimed at the site), 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; a relative link to a `.md` file that is not in the build names the jekyll-relative-links plugin. Warnings, failures with `--strict`; needs the nokogiri gem, and fails the run without it |
|
|
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
|
+
| `--config=FILE,...` | read the site settings from these files instead of `SRC/_config.yml`, merged in order with later keys winning, as `jekyll build --config` does; a missing file fails |
|
|
86
87
|
| `--github-pages[=VERSION]` | `Gemfile.lock` pins `github-pages` VERSION (default 232) |
|
|
87
88
|
| `--schema-recommended` | also warn about schema.org properties Google Search recommends (author, image, dates, ...) that a JSON-LD node lacks |
|
|
88
89
|
| `--strict` | warnings fail the run |
|
|
@@ -117,7 +118,7 @@ bundle exec modootoday-check . _site
|
|
|
117
118
|
|
|
118
119
|
## AI 에이전트
|
|
119
120
|
|
|
120
|
-
- `guide.md`의 Markdown 버전은 `/guide/index.md`이며
|
|
121
|
+
- `guide.md`의 Markdown 버전은 `/guide/index.md`이며 본문 텍스트 그대로이고(소스 파일을 가리키는 링크는 사이트 주소로 바뀝니다), `rel="alternate" type="text/markdown"`으로 연결됩니다.
|
|
121
122
|
- `llms.txt`와 `llms-full.txt`는 `/`와 각 `/<lang>/` 아래에 있습니다.
|
|
122
123
|
- Jekyll 4에서는 `plugins: [jekyll-theme-modootoday]`가 만들고, 기본 GitHub Pages 빌드는 파일 하나짜리 스텁을 씁니다. 스텁은 `modootoday-stubs SRC --twins --write`가 씁니다.
|
|
123
124
|
- 선택 URL 별칭(`modootoday.aliases`): `/guide.md`(Markdown 버전 그대로)와 `/guide.html`(`/guide/`로 리다이렉트)은 `modootoday-stubs SRC --aliases --write`가 만듭니다.
|
|
@@ -141,9 +142,7 @@ bundle exec modootoday-check . _site
|
|
|
141
142
|
|
|
142
143
|
## 기여
|
|
143
144
|
|
|
144
|
-
이슈와 풀 리퀘스트를 환영합니다. [CONTRIBUTING.md](CONTRIBUTING.md)를 보세요. 이 문서는 영어 [README.md](README.md)의 번역이며, 내용이 다르면 영어가 우선합니다.
|
|
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 워크플로, 스텁을 함께 씁니다.
|
|
145
|
+
이슈와 풀 리퀘스트를 환영합니다. [CONTRIBUTING.md](CONTRIBUTING.md)를 보세요. 이 문서는 영어 [README.md](README.md)의 번역이며, 내용이 다르면 영어가 우선합니다. 시작 사이트 세 개(`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
146
|
|
|
148
147
|
## 라이선스
|
|
149
148
|
|
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ A Jekyll theme that keeps page bodies in plain GitHub Markdown and styles them w
|
|
|
16
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
|
-
- **Readable by agents.** Every page can have a
|
|
19
|
+
- **Readable by agents.** Every page can have a Markdown twin of its source text, plus `llms.txt` and `llms-full.txt`.
|
|
20
20
|
- **Accessible.** Keyboard shortcuts, visible focus, safe areas on phones, 44 px touch targets, high contrast and reduced motion are built in.
|
|
21
21
|
- **Checked.** `modootoday-check` validates the sources and the built site.
|
|
22
22
|
- **Optional extras.** Search, a light/dark toggle, Mermaid diagrams and KaTeX math (off by default, loaded only on pages that use them), static diagrams and math from SVG files and MathML you commit, and schema.org JSON-LD.
|
|
@@ -39,7 +39,7 @@ 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.7.
|
|
42
|
+
remote_theme: modootoday/jekyll-theme-modootoday@v1.7.1
|
|
43
43
|
plugins: [jekyll-remote-theme]
|
|
44
44
|
```
|
|
45
45
|
|
|
@@ -75,11 +75,12 @@ Both commands are also listed on the [Command line](https://modootoday.github.io
|
|
|
75
75
|
<!-- commands:begin (generated by script/readme-commands; do not edit) -->
|
|
76
76
|
| Option | Checks |
|
|
77
77
|
|---|---|
|
|
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) |
|
|
79
|
-
| `--twins` | every page has a
|
|
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 |
|
|
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), `modootoday.banner.release: latest` with no release banner on the built home page (warning) |
|
|
79
|
+
| `--twins` | every page has a Markdown twin of its source text (links aimed at the site), 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; a relative link to a `.md` file that is not in the build names the jekyll-relative-links plugin. Warnings, failures with `--strict`; needs the nokogiri gem, and fails the run without it |
|
|
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
|
+
| `--config=FILE,...` | read the site settings from these files instead of `SRC/_config.yml`, merged in order with later keys winning, as `jekyll build --config` does; a missing file fails |
|
|
83
84
|
| `--github-pages[=VERSION]` | `Gemfile.lock` pins `github-pages` VERSION (default 232) |
|
|
84
85
|
| `--schema-recommended` | also warn about schema.org properties Google Search recommends (author, image, dates, ...) that a JSON-LD node lacks |
|
|
85
86
|
| `--strict` | warnings fail the run |
|
|
@@ -114,7 +115,7 @@ Both commands are also listed on the [Command line](https://modootoday.github.io
|
|
|
114
115
|
|
|
115
116
|
## AI agents
|
|
116
117
|
|
|
117
|
-
- Each page `guide.md` has a twin at `/guide/index.md` with the
|
|
118
|
+
- Each page `guide.md` has a twin at `/guide/index.md` with the text of its body (links that name a source file point at the site), linked with `rel="alternate" type="text/markdown"`.
|
|
118
119
|
- `llms.txt` and `llms-full.txt` exist at `/` and under each `/<lang>/`.
|
|
119
120
|
- Jekyll 4: `plugins: [jekyll-theme-modootoday]` creates them; the classic GitHub Pages build uses one-file stubs, which `modootoday-stubs SRC --twins --write` writes.
|
|
120
121
|
- Optional URL aliases (`modootoday.aliases`): `/guide.md` (the twin again) and `/guide.html` (a redirect to `/guide/`), from `modootoday-stubs SRC --aliases --write`.
|
data/RULES.md
CHANGED
|
@@ -125,11 +125,11 @@ Stub and generator details:
|
|
|
125
125
|
The stub may instead sit at the same relative path under `generated/` when it also sets `path:` to its place beside the page (`path: guides/install.md.txt` in `generated/guides/install.md.txt`); `twin_of` then resolves from that path. This theme's docs site keeps its stubs there, and `--twins` looks in both places.
|
|
126
126
|
Both produce the same page; a stub wins over the generator. `twin: false` opts a page out, and error pages (`layout: error`) have none.
|
|
127
127
|
- Output: `index.md` → `/index.md`, others → `/<dir>/<name>/index.md`; other languages under `/<lang>/`. A translation beside its source sets that URL as its `permalink` (`permalink: /ko/guides/install/` in `guides/install.ko.md`), and its twin follows it (`/ko/guides/install/index.md`).
|
|
128
|
-
- Twin body is **byte-identical** to the source minus front matter (no added headers; put extra information in `llms.txt`).
|
|
129
|
-
- `llms.txt` and `llms-full.txt` exist at `/` and at `/<lang>/` for each language with pages. `llms.txt` follows llmstxt.org: `# Title`, a `>` summary, then `## Section` lists of `- [Name](url): note`. `llms-full.txt` is a common convention, not part of llmstxt.org. Layouts `llms` and `llms-full` generate both from a front-matter-only stub (or the generator adds them); `llms-full.txt` is every page body of that language, byte-identical, separated by a blank line.
|
|
128
|
+
- Twin body is **byte-identical** to the source minus front matter (no added headers; put extra information in `llms.txt`), except for link targets: a relative link that names a source file (`[Upgrade](upgrade.md#x)`, a reference definition, an image) points at the site URL of its target's twin, or of the page, post or file when it has no twin (absolute with `url:`, else root-relative), so it resolves from any URL the twin is served at. Links in code, URL links (`../upgrade/`) and links to no source file stay as written. A source-mode raw copy is the file itself and keeps its links.
|
|
129
|
+
- `llms.txt` and `llms-full.txt` exist at `/` and at `/<lang>/` for each language with pages. `llms.txt` follows llmstxt.org: `# Title`, a `>` summary, then `## Section` lists of `- [Name](url): note`. `llms-full.txt` is a common convention, not part of llmstxt.org. Layouts `llms` and `llms-full` generate both from a front-matter-only stub (or the generator adds them); `llms-full.txt` is every page body of that language, byte-identical with the twins' link targets, separated by a blank line.
|
|
130
130
|
- The `default` layout adds `<link rel="alternate" type="text/markdown" href=".../index.md">` when the twin exists and `<link rel="describedby" type="text/plain">` to the nearest `/<lang>/llms.txt` or `/llms.txt`.
|
|
131
131
|
- With `--twins` and `modootoday.twins: source`: a front-matter-less page needs a rendered page (`<name>.html` or `<name>/index.html`) and a byte-identical raw copy at its source path.
|
|
132
|
-
- With `--twins`: a missing or non-identical twin is an error (`README.md`, `twin: false` and `layout: error` excepted), a stub must use `layout: twin` with an empty body, `llms.txt` must start with `# `, and `llms-full.txt` must contain every page body of its language.
|
|
132
|
+
- With `--twins`: a missing or non-identical twin (link targets aside) is an error (`README.md`, `twin: false` and `layout: error` excepted), so is a rewritten link that reaches no file in the build, a stub must use `layout: twin` with an empty body, `llms.txt` must start with `# `, and `llms-full.txt` must contain every page body of its language.
|
|
133
133
|
- With `--aliases`: every declared alias exists, a flat alias is byte-identical to the twin, and an HTML alias's refresh target and canonical are the page URL.
|
|
134
134
|
- `modootoday-stubs SRC --twins --write` writes the missing stubs and deletes stubs whose page is gone; without `--write` it only lists them, and `--check` exits 1 when anything would change.
|
|
135
135
|
- Twins and the checker assume directory URLs (`permalink: pretty` or `/<name>/`); with `.html` permalinks the generator writes `/<name>.md` but the checker still expects `/<name>/index.md`.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{%- comment -%}Resolves the site banner (modootoday.banner) for chrome/banner.html and the banner sheet. text: (with optional url:,
|
|
2
2
|
link:) is shown as written. Without text:, release: latest takes the repository's latest release from site.github at
|
|
3
3
|
build time (GitHub leaves prereleases out) and release: {version, url} takes it from the map; either fills "[version] is
|
|
4
|
-
out." and a "What's new" link
|
|
4
|
+
out." and a "What's new" link, a leading v of a tag such as v1.2.0 dropped. Sets mt_bn_on, mt_bn_text, mt_bn_url and
|
|
5
|
+
mt_bn_link; the text needs the i18n strings.{%- endcomment -%}
|
|
5
6
|
{%- assign _bn = site.modootoday.banner -%}
|
|
6
7
|
{%- assign mt_bn_on = false -%}{%- assign mt_bn_text = "" -%}{%- assign mt_bn_url = "" -%}{%- assign mt_bn_link = "" -%}
|
|
7
8
|
{%- if _bn.text -%}
|
|
@@ -9,6 +10,8 @@
|
|
|
9
10
|
{%- elsif _bn.release -%}
|
|
10
11
|
{%- if _bn.release == "latest" -%}{%- assign _bn_v = site.github.latest_release.tag_name | default: "" -%}{%- assign _bn_u = site.github.latest_release.html_url | default: "" -%}
|
|
11
12
|
{%- else -%}{%- assign _bn_v = _bn.release.version | default: "" -%}{%- assign _bn_u = _bn.release.url | default: "" -%}{%- endif -%}
|
|
13
|
+
{%- assign _bn_v = _bn_v | append: "" -%}{%- assign _bn_h = _bn_v | slice: 0 | downcase -%}{%- assign _bn_d = _bn_v | slice: 1 -%}
|
|
14
|
+
{%- if _bn_h == "v" and _bn_d != "" -%}{%- if "0123456789" contains _bn_d -%}{%- assign _bn_v = _bn_v | slice: 1, 999 -%}{%- endif -%}{%- endif -%}
|
|
12
15
|
{%- if _bn_v != "" -%}
|
|
13
16
|
{%- assign mt_bn_on = true -%}{%- assign mt_bn_text = mt_t_banner_release | replace: "[version]", _bn_v -%}{%- assign mt_bn_url = _bn_u -%}
|
|
14
17
|
{%- if _bn_u != "" -%}{%- assign mt_bn_link = mt_t_banner_release_link -%}{%- endif -%}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
{%- comment -%}Generated by script/i18n-build from i18n/ko.yml; do not edit.{%- endcomment -%}
|
|
2
|
-
{%- capture _tc -%}본문으로 건너뛰기새 창에서 열림새 창에서 열기참고팁중요경고주의사용 가능일부 구현계획완료진행 전옵션이 페이지의 내용섹션 링크: [name]다크 모드문서페이지 도구페이지 복사AI용으로 복사Markdown으로 보기출처이동 경로메인 메뉴맨 위로메뉴페이지 이동이전다음복사복사됨코드파일표다이어그램다이어그램 원본수식 [n]검색필터[n]개 표시이 페이지 편집최종 수정[commit]에서 빌드문제 신고이 페이지가 도움이 되었나요?예아니요토론언어%Y년 %-m월 %-d일글쓴이 소개관련 글공유이 페이지는 아직 번역되지 않아 영어로 보여 드려요.연도별태그카테고리개의 글아직 글이 없어요.추천 글더 읽기읽는 데 [n]분글쓴이수정최근 글이전 글관련 글시리즈[total]편 중 [n]편링크 복사링크를 복사했어요피드구독 (Atom)최신속보라이브정정출처[section] 더 보기필자파일 구조닫기삽입된 콘텐츠추천공지[version]
|
|
2
|
+
{%- capture _tc -%}본문으로 건너뛰기새 창에서 열림새 창에서 열기참고팁중요경고주의사용 가능일부 구현계획완료진행 전옵션이 페이지의 내용섹션 링크: [name]다크 모드문서페이지 도구페이지 복사AI용으로 복사Markdown으로 보기출처이동 경로메인 메뉴맨 위로메뉴페이지 이동이전다음복사복사됨코드파일표다이어그램다이어그램 원본수식 [n]검색필터[n]개 표시이 페이지 편집최종 수정[commit]에서 빌드문제 신고이 페이지가 도움이 되었나요?예아니요토론언어%Y년 %-m월 %-d일글쓴이 소개관련 글공유이 페이지는 아직 번역되지 않아 영어로 보여 드려요.연도별태그카테고리개의 글아직 글이 없어요.추천 글더 읽기읽는 데 [n]분글쓴이수정최근 글이전 글관련 글시리즈[total]편 중 [n]편링크 복사링크를 복사했어요피드구독 (Atom)최신속보라이브정정출처[section] 더 보기필자파일 구조닫기삽입된 콘텐츠추천공지[version] 버전이 나왔어요.새 기능 보기본문으로 돌아가기진행률이메일 주소구독하기필수차트 데이터이 대화형 콘텐츠는 JavaScript가 있어야 동작해요.[label], [name][name] [n]불러오는 중…페이지를 찾을 수 없어요요청한 페이지가 없거나 다른 곳으로 옮겨졌어요.삭제된 페이지예요이 페이지는 의도적으로 삭제되어 다시 제공되지 않아요.문제가 생겼어요서버가 이 페이지를 보여 주지 못했어요. 잠시 후 다시 시도해 주세요.홈으로 가기이 페이지는 옮겨졌어요.새 페이지로 이동검색어를 입력하면 바로 찾아 드려요.전체필터역할클라이언트연도도구링크위치고용 형태급여게시일지원 마감지원하기시작종료장소온라인일정티켓 받기가격무료GitHub 릴리스 (Atom)캘린더에 추가에피소드 [n]시즌 [n]재생 시간듣기대본월간연간결제 주기가장 인기다운로드버전색상에셋보내기이름이메일메시지연락처추가됨변경됨수정됨제거됨보안지금다음나중에글자로 이동강의[n]분모듈 [n][n]장시행일경력학력기술현재불러오는 중…목차테마 쇼케이스모두의오늘 테마데모테마 문서문서이 스타터로 시작이번 방문 동안 숨기기문서 스타터블로그 스타터랜딩 스타터오프라인 상태예요이 페이지는 이 기기에 저장되어 있지 않아요. 연결을 확인하고 다시 시도해 주세요.오프라인으로 읽을 수 있는 페이지다시 시도이 사이트의 새 버전이 준비됐어요.새로고침나중에오프라인 상태예요. 방문한 페이지는 계속 열 수 있어요.닫기설치브라우저 메뉴나 공유 메뉴에서도 이 사이트를 설치할 수 있어요.{%- endcapture -%}{%- assign _tx = _tc | split: "" -%}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{%- comment -%}Sets mt_links_md to include.text, the Markdown body of the source file include.path, with each relative link
|
|
2
|
+
that names a source file ([a](upgrade.md#x), [r]: ../b.ko.md, an image) pointed at its target's site URL: the twin of a
|
|
3
|
+
page that has one, else the page, post or file. Other bytes, code spans and fenced code stay as they are.{%- endcomment -%}
|
|
4
|
+
{%- include modootoday/lookup/urls.html -%}{%- include modootoday/lookup/paths.html -%}
|
|
5
|
+
{%- assign _ml_nl = "
|
|
6
|
+
" -%}
|
|
7
|
+
{%- assign _ml_bt = "`" -%}
|
|
8
|
+
{%- assign _ml_dir = include.path | split: "/" | pop -%}
|
|
9
|
+
{%- assign _ml_fence = "" -%}
|
|
10
|
+
{%- assign _ml_lines = include.text | append: _ml_nl | append: "mt" | split: _ml_nl -%}
|
|
11
|
+
{%- capture mt_links_md -%}
|
|
12
|
+
{%- for _ml_l in _ml_lines -%}
|
|
13
|
+
{%- unless forloop.first -%}{{ _ml_nl }}{%- endunless -%}
|
|
14
|
+
{%- assign _ml_s = _ml_l | lstrip -%}
|
|
15
|
+
{%- assign _ml_f = _ml_s | slice: 0, 3 -%}
|
|
16
|
+
{%- assign _ml_h = _ml_s | slice: 0, 1 -%}
|
|
17
|
+
{%- assign _ml_h2 = _ml_s | slice: 0, 2 -%}
|
|
18
|
+
{%- assign _ml_j = "" -%}
|
|
19
|
+
{%- assign _ml_open = "" -%}
|
|
20
|
+
{%- if _ml_fence == "" -%}{%- if _ml_f == "```" or _ml_f == "~~~" -%}
|
|
21
|
+
{%- assign _ml_open = _ml_f -%}
|
|
22
|
+
{%- assign _ml_oc = _ml_f | slice: 0, 1 -%}
|
|
23
|
+
{%- for _ml_w in (4..8) -%}
|
|
24
|
+
{%- assign _ml_x = _ml_open | append: _ml_oc -%}{%- assign _ml_y = _ml_s | slice: 0, _ml_w -%}
|
|
25
|
+
{%- if _ml_y == _ml_x -%}{%- assign _ml_open = _ml_x -%}{%- else -%}{%- break -%}{%- endif -%}
|
|
26
|
+
{%- endfor -%}
|
|
27
|
+
{%- assign _ml_info = _ml_s | remove_first: _ml_open -%}
|
|
28
|
+
{%- if _ml_oc == _ml_bt and _ml_info contains _ml_bt -%}{%- assign _ml_open = "" -%}{%- endif -%}
|
|
29
|
+
{%- endif -%}{%- endif -%}
|
|
30
|
+
{%- if _ml_fence != "" -%}
|
|
31
|
+
{%- assign _ml_f = _ml_s | slice: 0, _ml_fence.size -%}
|
|
32
|
+
{%- assign _ml_r = _ml_s | strip | remove: _ml_ch -%}
|
|
33
|
+
{%- if _ml_f == _ml_fence and _ml_r == "" -%}{%- assign _ml_fence = "" -%}{%- endif -%}
|
|
34
|
+
{%- elsif _ml_open != "" -%}{%- assign _ml_fence = _ml_open -%}{%- assign _ml_ch = _ml_oc -%}
|
|
35
|
+
{%- elsif _ml_h == "[" and _ml_h2 != "[^" and _ml_s contains "]: " -%}{%- assign _ml_j = "]: " -%}
|
|
36
|
+
{%- elsif _ml_s contains "](" -%}{%- assign _ml_j = "](" -%}
|
|
37
|
+
{%- endif -%}
|
|
38
|
+
{%- if _ml_j == "" -%}{{ _ml_l }}{%- else -%}
|
|
39
|
+
{%- comment -%}A run of n backticks opens a code span that the next run of exactly n closes.{%- endcomment -%}
|
|
40
|
+
{%- assign _ml_ps = _ml_l | append: _ml_bt | append: "m" | split: _ml_bt -%}
|
|
41
|
+
{%- assign _ml_run = 0 -%}{%- assign _ml_code = 0 -%}
|
|
42
|
+
{%- for _ml_p in _ml_ps -%}
|
|
43
|
+
{%- if forloop.last -%}{%- break -%}{%- endif -%}
|
|
44
|
+
{%- unless forloop.first -%}{{ _ml_bt }}{%- assign _ml_run = _ml_run | plus: 1 -%}{%- endunless -%}
|
|
45
|
+
{%- if _ml_p != "" and _ml_run > 0 -%}
|
|
46
|
+
{%- if _ml_code == 0 -%}{%- assign _ml_code = _ml_run -%}{%- elsif _ml_code == _ml_run -%}{%- assign _ml_code = 0 -%}{%- endif -%}
|
|
47
|
+
{%- assign _ml_run = 0 -%}
|
|
48
|
+
{%- endif -%}
|
|
49
|
+
{%- if _ml_code > 0 -%}{{ _ml_p }}
|
|
50
|
+
{%- elsif _ml_p contains _ml_j -%}
|
|
51
|
+
{%- assign _ml_cs = _ml_p | append: _ml_j | append: "m" | split: _ml_j -%}
|
|
52
|
+
{%- for _ml_c in _ml_cs -%}
|
|
53
|
+
{%- if forloop.last -%}{%- break -%}{%- endif -%}
|
|
54
|
+
{%- if forloop.first -%}{{ _ml_c }}{%- continue -%}{%- endif -%}
|
|
55
|
+
{%- assign _ml_o = _ml_c -%}
|
|
56
|
+
{%- assign _ml_c0 = _ml_c | slice: 0, 1 -%}
|
|
57
|
+
{%- assign _ml_t = _ml_c | split: ")" | first | split: " " | first -%}
|
|
58
|
+
{%- assign _ml_tp = _ml_t | split: "#" | first -%}
|
|
59
|
+
{%- assign _ml_e = _ml_tp | slice: -1, 1 -%}
|
|
60
|
+
{%- assign _ml_u = "" -%}
|
|
61
|
+
{%- if _ml_tp and _ml_c0 != " " and _ml_c0 != "<" and _ml_c0 != "/" and _ml_c0 != "#" and _ml_e != "/" -%}
|
|
62
|
+
{%- unless _ml_tp contains ":" -%}
|
|
63
|
+
{%- assign _ml_segs = _ml_dir -%}
|
|
64
|
+
{%- assign _ml_parts = _ml_tp | split: "/" -%}
|
|
65
|
+
{%- for _ml_seg in _ml_parts -%}
|
|
66
|
+
{%- if _ml_seg == ".." -%}{%- assign _ml_segs = _ml_segs | pop -%}
|
|
67
|
+
{%- elsif _ml_seg != "." and _ml_seg != "" -%}{%- assign _ml_segs = _ml_segs | push: _ml_seg -%}{%- endif -%}
|
|
68
|
+
{%- endfor -%}
|
|
69
|
+
{%- assign _ml_path = _ml_segs | join: "/" -%}
|
|
70
|
+
{%- assign _ml_k = "|" | append: _ml_path | append: "|" -%}
|
|
71
|
+
{%- assign _ml_sk = "|/" | append: _ml_path | append: "|" -%}
|
|
72
|
+
{%- if mt_static_paths contains _ml_sk -%}{%- assign _ml_u = "/" | append: _ml_path -%}
|
|
73
|
+
{%- elsif mt_page_paths contains _ml_k -%}
|
|
74
|
+
{%- assign _ml_i = mt_page_paths | split: _ml_k | first | prepend: "x" | split: "|" | size | minus: 1 -%}
|
|
75
|
+
{%- assign _ml_pg = site.pages[_ml_i] -%}
|
|
76
|
+
{%- if _ml_pg.path != _ml_path -%}{%- assign _ml_pg = site.pages | where: "path", _ml_path | first -%}{%- endif -%}
|
|
77
|
+
{%- assign _ml_u = _ml_pg.url -%}
|
|
78
|
+
{%- assign _ml_tw = _ml_u | append: "index.md" -%}
|
|
79
|
+
{%- if _ml_u contains ".html" -%}{%- assign _ml_tw = _ml_u | replace: ".html", ".md" -%}{%- endif -%}
|
|
80
|
+
{%- assign _ml_tk = "|" | append: _ml_tw | append: "|" -%}
|
|
81
|
+
{%- if mt_page_urls contains _ml_tk -%}{%- assign _ml_u = _ml_tw -%}{%- endif -%}
|
|
82
|
+
{%- elsif mt_doc_paths contains _ml_k -%}
|
|
83
|
+
{%- assign _ml_i = mt_doc_paths | split: _ml_k | first | prepend: "x" | split: "|" | size | minus: 1 -%}
|
|
84
|
+
{%- assign _ml_dc = site.documents[_ml_i] -%}
|
|
85
|
+
{%- if _ml_dc.relative_path != _ml_path -%}{%- assign _ml_dc = site.documents | where: "relative_path", _ml_path | first -%}{%- endif -%}
|
|
86
|
+
{%- assign _ml_u = _ml_dc.url -%}
|
|
87
|
+
{%- endif -%}
|
|
88
|
+
{%- endunless -%}
|
|
89
|
+
{%- endif -%}
|
|
90
|
+
{%- if _ml_u != "" -%}
|
|
91
|
+
{%- if site.url and site.url != "" -%}{%- assign _ml_u = _ml_u | absolute_url -%}{%- else -%}{%- assign _ml_u = _ml_u | relative_url -%}{%- endif -%}
|
|
92
|
+
{%- assign _ml_fr = _ml_t | remove_first: _ml_tp -%}
|
|
93
|
+
{%- assign _ml_u = _ml_u | append: _ml_fr -%}
|
|
94
|
+
{%- assign _ml_o = _ml_c | replace_first: _ml_t, _ml_u -%}
|
|
95
|
+
{%- endif -%}
|
|
96
|
+
{{- _ml_j -}}{{- _ml_o -}}
|
|
97
|
+
{%- endfor -%}
|
|
98
|
+
{%- else -%}{{ _ml_p }}
|
|
99
|
+
{%- endif -%}
|
|
100
|
+
{%- endfor -%}
|
|
101
|
+
{%- endif -%}
|
|
102
|
+
{%- endfor -%}
|
|
103
|
+
{%- endcapture -%}
|
|
104
|
+
{%- assign _ml_n = mt_links_md.size | minus: 3 -%}
|
|
105
|
+
{%- assign mt_links_md = mt_links_md | slice: 0, _ml_n -%}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{%- comment -%}Sets mt_page_paths and mt_doc_paths ("|a.md|b/c.md|": the source path of every page and collection document, in
|
|
2
|
+
site.pages and site.documents order) and mt_static_paths (every static file path) once per render, so a source path is
|
|
3
|
+
found with a string search; the position of "|path|" is the index, as in lookup/page.html.{%- endcomment -%}
|
|
4
|
+
{%- unless mt_page_paths -%}
|
|
5
|
+
{%- assign mt_page_paths = site.pages | map: "path" | join: "|" | prepend: "|" | append: "|" -%}
|
|
6
|
+
{%- assign mt_doc_paths = site.documents | map: "relative_path" | join: "|" | prepend: "|" | append: "|" -%}
|
|
7
|
+
{%- assign mt_static_paths = site.static_files | map: "path" | join: "|" | prepend: "|" | append: "|" -%}
|
|
8
|
+
{%- endunless -%}
|
|
@@ -47,4 +47,6 @@
|
|
|
47
47
|
{%- assign _x = _x | replace: _sf, _st -%}{%- endfor -%}
|
|
48
48
|
{%- endfor -%}
|
|
49
49
|
{%- capture _fb %}class="reversefootnote" role="doc-backlink" aria-label="{{ mt_t_footnote_back }}"{% endcapture -%}
|
|
50
|
-
{
|
|
50
|
+
{%- comment -%}doc-noteref is allowed on a link, not on sup: older kramdown (GitHub Pages) puts it on sup, so it moves
|
|
51
|
+
to the link inside; newer kramdown already writes it there.{%- endcomment -%}
|
|
52
|
+
{{ _x | replace: 'class="reversefootnote" role="doc-backlink"', _fb | replace: '" role="doc-noteref"><a href="', '"><a role="doc-noteref" href="' }}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{%- comment -%}md-components v1: the source body of include.file (path relative to the current page), front matter removed. Used by the twin and llms-full layouts.
|
|
2
|
-
With include.page (the source page),
|
|
2
|
+
With include.page (the source page), links that name a source file point at their targets' site URLs (links/markdown.html), and
|
|
3
|
+
a reference page's packages: table is added before the body, or after it with packages_position: after.{%- endcomment -%}
|
|
3
4
|
{%- capture _raw -%}{% include_relative {{ include.file }} %}{%- endcapture -%}
|
|
4
5
|
{%- assign _fm = _raw | split: "---" -%}
|
|
5
6
|
{%- assign _front = "---" | append: _fm[1] | append: "---
|
|
6
7
|
" -%}
|
|
7
8
|
{%- assign _body = _raw | remove_first: _front -%}
|
|
9
|
+
{%- if include.page.path -%}{%- if _body contains "](" or _body contains "]: " -%}
|
|
10
|
+
{%- include modootoday/links/markdown.html text=_body path=include.page.path -%}{%- assign _body = mt_links_md -%}
|
|
11
|
+
{%- endif -%}{%- endif -%}
|
|
8
12
|
{%- capture _pkmd %}{% if include.page %}{% include modootoday/markdown/packages.html page=include.page %}{% endif %}{% endcapture -%}
|
|
9
13
|
{%- if _pkmd == "" -%}{{- _body -}}
|
|
10
14
|
{%- elsif include.page.packages_position == "after" -%}{{- _body }}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{%- comment -%}"On this page" from kramdown auto ids: <h2 id="..."> and <h3 id="...">. Shown with 2+ headings;
|
|
2
|
-
front matter toc: false hides it.
|
|
2
|
+
front matter toc: false hides it. A heading whose first attribute is not its id (an example's result) is left out.
|
|
3
|
+
Usage: {% include modootoday/toc.html html=html %}{%- endcomment -%}
|
|
3
4
|
{%- if mt_components contains "toc" and page.toc != false -%}
|
|
4
5
|
{%- assign _parts = include.html | split: '<h' -%}
|
|
5
6
|
{%- capture _items -%}{%- for _p in _parts offset: 1 -%}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
{%- comment -%}Generated by script/version-include from the gemspec; do not edit. Sets mt_version.{%- endcomment -%}
|
|
2
|
-
{%- assign mt_version = "1.7.
|
|
2
|
+
{%- assign mt_version = "1.7.1" -%}
|
data/_layouts/llms-full.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{%- comment -%}md-components v1 llms-full.txt: the source body of every page of this language under this directory, byte-for-byte (plus a reference page's packages: table as Markdown), separated by a blank line. Use from a stub: front matter `layout: llms-full` only.{%- endcomment -%}
|
|
1
|
+
{%- comment -%}md-components v1 llms-full.txt: the source body of every page of this language under this directory, byte-for-byte except that links naming a source file point at site URLs (plus a reference page's packages: table as Markdown), separated by a blank line. Use from a stub: front matter `layout: llms-full` only.{%- endcomment -%}
|
|
2
2
|
{%- include modootoday/markdown/llms-pages.html -%}
|
|
3
3
|
{%- for _p in _llms_pages -%}
|
|
4
4
|
{%- assign _rel = _p.path | remove_first: _llms_dir -%}
|
data/_layouts/twin.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{%- comment -%}md-components v1 twin: outputs the source body of page.twin_of byte-for-byte (a reference page's packages: table is added as Markdown).{%- endcomment -%}
|
|
1
|
+
{%- comment -%}md-components v1 twin: outputs the source body of page.twin_of byte-for-byte, except that links naming a source file point at site URLs (a reference page's packages: table is added as Markdown).{%- endcomment -%}
|
|
2
2
|
{%- assign _tdir = page.path | split: "/" | pop | join: "/" -%}{%- if _tdir != "" -%}{%- assign _tdir = _tdir | append: "/" -%}{%- endif -%}
|
|
3
3
|
{%- assign _tpath = _tdir | append: page.twin_of -%}
|
|
4
4
|
{%- assign _tpage = site.pages | where: "path", _tpath | first -%}
|
|
@@ -59,6 +59,10 @@ export function init(root) {
|
|
|
59
59
|
const b = list.getBoundingClientRect();
|
|
60
60
|
list.scrollTop += Math.min(0, r.top - b.top) || Math.max(0, r.bottom - b.bottom);
|
|
61
61
|
}
|
|
62
|
+
// Back above the first heading, the column shows its start again.
|
|
63
|
+
if (!a && column) {
|
|
64
|
+
list.scrollTop = 0;
|
|
65
|
+
}
|
|
62
66
|
}
|
|
63
67
|
};
|
|
64
68
|
const update = () => {
|
data/i18n/ko.yml
CHANGED
|
@@ -57,7 +57,7 @@ filetree: {label: 파일 구조}
|
|
|
57
57
|
gallery: {close: 닫기}
|
|
58
58
|
embed: {title: 삽입된 콘텐츠}
|
|
59
59
|
pricing: {recommended: 추천}
|
|
60
|
-
banner: {label: 공지, release: "[version]
|
|
60
|
+
banner: {label: 공지, release: "[version] 버전이 나왔어요.", release_link: "새 기능 보기"}
|
|
61
61
|
footnote: {back: 본문으로 돌아가기}
|
|
62
62
|
progress: {label: 진행률}
|
|
63
63
|
subscribe: {email: 이메일 주소, submit: 구독하기}
|
|
@@ -6,7 +6,8 @@ module Modootoday
|
|
|
6
6
|
module Check
|
|
7
7
|
# --links: every same-site a href, link href, img src, script src and source srcset in the built site points
|
|
8
8
|
# at a file that exists, and a #fragment matches an id or a[name] on its target page. External URLs are not
|
|
9
|
-
# fetched. Warnings, which --strict turns into failures (adr:modootoday/20261111231457). Needs Nokogiri
|
|
9
|
+
# fetched. Warnings, which --strict turns into failures (adr:modootoday/20261111231457). Needs Nokogiri:
|
|
10
|
+
# without it the run fails, so a links check that was asked for never passes unchecked.
|
|
10
11
|
module Links
|
|
11
12
|
TARGETS = "a[href], link[href], img[src], script[src], source[srcset]"
|
|
12
13
|
EXTERNAL = %r{\A[a-z][a-z0-9+.-]*:|\A//}i
|
|
@@ -15,7 +16,8 @@ module Modootoday
|
|
|
15
16
|
|
|
16
17
|
def call(ctx)
|
|
17
18
|
return unless ctx.option?("--links")
|
|
18
|
-
return ctx.
|
|
19
|
+
return ctx.errs << "--links needs the nokogiri gem: add gem \"nokogiri\" to the Gemfile and run bundle install " \
|
|
20
|
+
"(for a checker run without Bundler: gem install nokogiri)" unless nokogiri?
|
|
19
21
|
found = scan(ctx.site, baseurl(ctx))
|
|
20
22
|
found[:problems].each { |p| ctx.warns << p }
|
|
21
23
|
end
|
|
@@ -57,12 +59,19 @@ module Modootoday
|
|
|
57
59
|
path += "/" if upath.end_with?("/") && !path.end_with?("/")
|
|
58
60
|
return "#{rel}: #{url} is outside baseurl #{baseurl}" unless baseurl.empty? || path == baseurl || path.start_with?("#{baseurl}/")
|
|
59
61
|
target = resolve(site, path.delete_prefix(baseurl))
|
|
62
|
+
return md_link(rel, url) if !target && !upath.start_with?("/") && upath.end_with?(".md")
|
|
60
63
|
return "#{rel}: broken link #{url}" unless target
|
|
61
64
|
end
|
|
62
65
|
return if frag.nil? || frag.empty? || !target.end_with?(".html")
|
|
63
66
|
"#{rel}: missing anchor #{url}" unless ids[target].include?(CGI.unescape(frag))
|
|
64
67
|
end
|
|
65
68
|
|
|
69
|
+
# A source link to a Markdown file that no twin or copy answers: the build did not run jekyll-relative-links.
|
|
70
|
+
def md_link(rel, url)
|
|
71
|
+
"#{rel}: broken link #{url}: a link to a Markdown file stays .md without the jekyll-relative-links plugin, " \
|
|
72
|
+
"which GitHub Pages runs and Jekyll 4 does not; add gem \"jekyll-relative-links\" to the Gemfile's :jekyll_plugins group"
|
|
73
|
+
end
|
|
74
|
+
|
|
66
75
|
def resolve(site, path)
|
|
67
76
|
full = File.join(site, CGI.unescape(path))
|
|
68
77
|
return full if File.file?(full)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Modootoday
|
|
4
|
+
module Check
|
|
5
|
+
# banner: {release: latest} reads site.github.latest_release when the site is built; with no published release (or no
|
|
6
|
+
# GitHub metadata) the banner is silently left out. The built home page shows whether the build had one.
|
|
7
|
+
module ReleaseBanner
|
|
8
|
+
SHOWN = /class="mt-banner"/
|
|
9
|
+
CONFIG_WARNING = "_config.yml: modootoday.banner.release: \"latest\" reads site.github"
|
|
10
|
+
|
|
11
|
+
module_function
|
|
12
|
+
|
|
13
|
+
def call(ctx)
|
|
14
|
+
banner = ctx.mtc.is_a?(Hash) ? ctx.mtc["banner"] : nil
|
|
15
|
+
return unless banner.is_a?(Hash) && banner["text"].nil? && banner["release"] == "latest"
|
|
16
|
+
return if ctx.mtc["components"].is_a?(Array) && !ctx.mtc["components"].include?("banner")
|
|
17
|
+
home = ctx.site && File.join(ctx.site, "index.html")
|
|
18
|
+
return unless home && File.file?(home)
|
|
19
|
+
html = File.read(home)
|
|
20
|
+
return if html.match?(SHOWN) || !html.include?("/assets/css/modootoday.css")
|
|
21
|
+
# One missing release, one message: it replaces the config rule's site.github warning for the same key.
|
|
22
|
+
ctx.warns.reject! { |w| w.start_with?(CONFIG_WARNING) }
|
|
23
|
+
ctx.warns << "_config.yml: modootoday.banner.release: latest, but the build has no release banner: " \
|
|
24
|
+
"site.github.latest_release was empty (no published release, only prereleases, or no GitHub metadata in the build, " \
|
|
25
|
+
"which GitHub Pages and the jekyll-github-metadata plugin provide); " \
|
|
26
|
+
"publish a release and rebuild, set github: {latest_release: {tag_name, html_url}} in _config.yml as a stand-in, " \
|
|
27
|
+
"or give release: {version, url}"
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "uri"
|
|
4
|
+
|
|
5
|
+
module Modootoday
|
|
6
|
+
module Check
|
|
7
|
+
# The twin and llms-full layouts point each relative link that names a source file at its target's site URL
|
|
8
|
+
# (adr:modootoday/20261114115001), so a twin equals its source body with link targets masked, and every
|
|
9
|
+
# target that differs from the source must reach a file in the built site.
|
|
10
|
+
module TwinLinks
|
|
11
|
+
TARGET = /(\]\()([^)\s]+)|^( {0,3}\[[^\]^][^\]]*\]: )(\S+)/
|
|
12
|
+
|
|
13
|
+
module_function
|
|
14
|
+
|
|
15
|
+
def mask(text) = text.gsub(TARGET) { "#{Regexp.last_match(1) || Regexp.last_match(3)}\0" }
|
|
16
|
+
|
|
17
|
+
def targets(text) = text.scan(TARGET).map { |a| a[1] || a[3] }
|
|
18
|
+
|
|
19
|
+
def same?(twin, body) = twin == body || mask(twin) == mask(body)
|
|
20
|
+
|
|
21
|
+
# Rewritten targets of TWIN that reach no file; BODY is its source body. A packages: table placed :before or
|
|
22
|
+
# :after the body adds links of its own, which are left out.
|
|
23
|
+
def broken(ctx, body, twin, table: nil)
|
|
24
|
+
base = ctx.site_cfg["baseurl"].to_s.chomp("/")
|
|
25
|
+
src, out = targets(body), targets(twin)
|
|
26
|
+
out = table == :after ? out.first(src.size) : out.last(src.size)
|
|
27
|
+
src.zip(out).filter_map { |(s, t)| t if t && s != t && !reaches?(ctx.site, base, t) }
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def reaches?(site, base, url)
|
|
31
|
+
path = URI::DEFAULT_PARSER.unescape(URI.parse(url.sub(/[#?].*/m, "")).path.to_s)
|
|
32
|
+
return false unless path.start_with?("#{base}/")
|
|
33
|
+
f = File.join(site, path.delete_prefix(base))
|
|
34
|
+
File.file?(f) || File.file?(File.join(f, "index.html"))
|
|
35
|
+
rescue URI::InvalidURIError, ArgumentError
|
|
36
|
+
false
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -5,7 +5,8 @@ require_relative "../../../stubs/page"
|
|
|
5
5
|
module Modootoday
|
|
6
6
|
module Check
|
|
7
7
|
# 7. --twins: every Markdown page (except README.md, `twin: false` and `layout: error`) has /<page>/index.md
|
|
8
|
-
# (/index.md for index.md), byte-identical to its source body
|
|
8
|
+
# (/index.md for index.md), byte-identical to its source body except for the targets of links that name a
|
|
9
|
+
# source file, which must reach a file in the site (TwinLinks). It comes from a stub <name>.md.txt
|
|
9
10
|
# (layout: twin; works on GitHub Pages) or from the opt-in plugin (plugins: [jekyll-theme-modootoday]).
|
|
10
11
|
# With modootoday.twins: source, a page without front matter is its own twin at /<path>.md.
|
|
11
12
|
# A reference page's packages: table is added to its twin as Markdown, before the body (or after it with
|
|
@@ -62,10 +63,14 @@ module Modootoday
|
|
|
62
63
|
return errs << "#{rf}: twin missing at #{out}: #{format(HINT, "#{rf}.txt", File.basename(rf), out.delete_prefix(site))}" unless File.exist?(out)
|
|
63
64
|
tw = File.binread(out)
|
|
64
65
|
pk = fm["layout"] == "reference" && fm["packages"].is_a?(Array) && !fm["packages"].empty? ? fm["packages"] : nil
|
|
65
|
-
return errs << "#{out}: twin is not byte-identical to the body of #{rf}" unless pk || tw
|
|
66
|
-
return unless pk
|
|
66
|
+
return errs << "#{out}: twin is not byte-identical to the body of #{rf}" unless pk || TwinLinks.same?(tw, b.b)
|
|
67
67
|
after = fm["packages_position"] == "after"
|
|
68
|
-
|
|
68
|
+
TwinLinks.broken(ctx, b.b, tw, table: pk && (after ? :after : :before)).each do |t|
|
|
69
|
+
errs << "#{out}: link #{t.dup.force_encoding('UTF-8')} (from #{rf}) reaches no file in the site"
|
|
70
|
+
end
|
|
71
|
+
return unless pk
|
|
72
|
+
mt, mb = TwinLinks.mask(tw), TwinLinks.mask(b.b)
|
|
73
|
+
ok = after ? mt.start_with?(mb) : mt.end_with?(mb)
|
|
69
74
|
names = pk.map { |x| x.is_a?(Hash) ? x["name"].to_s : "" }
|
|
70
75
|
ok &&= names.all? { |n| tw.include?("`#{n}`".b) }
|
|
71
76
|
errs << "#{out}: twin must be the body of #{rf} with its packages: table #{after ? 'after' : 'before'} it" unless ok
|
|
@@ -88,7 +93,8 @@ module Modootoday
|
|
|
88
93
|
if n == "llms.txt"
|
|
89
94
|
ctx.errs << "#{p}: must start with an H1 (llmstxt.org)" unless txt.start_with?("# ")
|
|
90
95
|
else
|
|
91
|
-
|
|
96
|
+
txt = TwinLinks.mask(txt)
|
|
97
|
+
bodies[l].each { |(name, b)| ctx.errs << "#{p}: does not contain the body of #{name}" unless b.strip.empty? || txt.include?(TwinLinks.mask(b.strip)) }
|
|
92
98
|
end
|
|
93
99
|
end
|
|
94
100
|
end
|
data/lib/modootoday/check/cli.rb
CHANGED
|
@@ -4,14 +4,15 @@ module Modootoday
|
|
|
4
4
|
module Check
|
|
5
5
|
# Command line: usage, --help/--version, running the rule groups in order, reporting.
|
|
6
6
|
module CLI
|
|
7
|
-
USAGE = "usage: modootoday-check SRC SITE [--twins] [--aliases] [--links] [--byte-exact=DIR,...] [--github-pages[=VERSION]] [--gh] [--strict] [--schema-recommended] [--i18n] [--i18n-pages] [--i18n-init=LANG,...]\n modootoday-check SRC --diagrams\n modootoday-check SRC --math"
|
|
7
|
+
USAGE = "usage: modootoday-check SRC SITE [--twins] [--aliases] [--links] [--byte-exact=DIR,...] [--config=FILE,...] [--github-pages[=VERSION]] [--gh] [--strict] [--schema-recommended] [--i18n] [--i18n-pages] [--i18n-init=LANG,...]\n modootoday-check SRC --diagrams\n modootoday-check SRC --math"
|
|
8
8
|
# Single source for --help and the README "Commands" table (script/readme-commands, test/project/readme_test.rb).
|
|
9
9
|
OPTIONS = [
|
|
10
|
-
["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)"],
|
|
11
|
-
["--twins", "every page has a
|
|
12
|
-
["--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"],
|
|
10
|
+
["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), `modootoday.banner.release: latest` with no release banner on the built home page (warning)"],
|
|
11
|
+
["--twins", "every page has a Markdown twin of its source text (links aimed at the site), per-language `llms.txt` and `llms-full.txt`"],
|
|
12
|
+
["--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; a relative link to a `.md` file that is not in the build names the jekyll-relative-links plugin. Warnings, failures with `--strict`; needs the nokogiri gem, and fails the run without it"],
|
|
13
13
|
["--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"],
|
|
14
14
|
["--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"],
|
|
15
|
+
["--config=FILE,...", "read the site settings from these files instead of `SRC/_config.yml`, merged in order with later keys winning, as `jekyll build --config` does; a missing file fails"],
|
|
15
16
|
["--github-pages[=VERSION]", "`Gemfile.lock` pins `github-pages` VERSION (default 232)"],
|
|
16
17
|
["--schema-recommended", "also warn about schema.org properties Google Search recommends (author, image, dates, ...) that a JSON-LD node lacks"],
|
|
17
18
|
["--strict", "warnings fail the run"],
|
|
@@ -26,7 +27,7 @@ module Modootoday
|
|
|
26
27
|
].freeze
|
|
27
28
|
# Rule groups in report order.
|
|
28
29
|
RULES = [Registry, SiteConfig.method(:source_mode), Pages, Layouts, Native::Layouts, Native::Collections, I18n, Registry.method(:i18n_keys), BuiltParts,
|
|
29
|
-
BuildOutput.method(:residue), NewWindow.method(:built), Illustration, StructuredData, TermSets, Stylesheets, SiteHook, BuildOutput.method(:css), BuildOutput.method(:search_index), SiteConfig, ShowcaseBuild, SiteAssets, Renderers, Blog, GithubPages, Twins, Aliases, Records, Links, Feeds, Pwa, ByteExact, GhRender].freeze
|
|
30
|
+
BuildOutput.method(:residue), NewWindow.method(:built), Illustration, StructuredData, TermSets, Stylesheets, SiteHook, BuildOutput.method(:css), BuildOutput.method(:search_index), SiteConfig, ShowcaseBuild, SiteAssets, Renderers, Blog, GithubPages, Twins, Aliases, Records, Links, Feeds, ReleaseBanner, Pwa, ByteExact, GhRender].freeze
|
|
30
31
|
|
|
31
32
|
module_function
|
|
32
33
|
|
|
@@ -6,13 +6,16 @@ module Modootoday
|
|
|
6
6
|
EDIT_URL = %r{\Ahttps?://\S+/\z}
|
|
7
7
|
# auto, build_link, feedback.issues: auto and banner.release: latest read site.github, which GitHub Pages (or the jekyll-github-metadata
|
|
8
8
|
# plugin) provides; a github: map in _config.yml stands in for it elsewhere. Without either the link is left out.
|
|
9
|
+
# The banner needs the map's latest_release, the links its other keys.
|
|
9
10
|
GITHUB_SOURCE = lambda do |ctx, path, v|
|
|
10
11
|
next unless v == "auto" || v == true || v == "latest"
|
|
11
12
|
cfg = ctx.site_cfg
|
|
12
|
-
|
|
13
|
+
gh = cfg["github"]
|
|
14
|
+
map = gh.is_a?(Hash) && (v != "latest" || gh["latest_release"].is_a?(Hash))
|
|
15
|
+
next if ctx.option?("--github-pages") || map || Array(cfg["plugins"]).include?("jekyll-github-metadata")
|
|
16
|
+
keys, lost = v == "latest" ? ["latest_release: {tag_name, html_url}", "no banner is shown"] : ["repository_url, source: {branch, path}, build_revision", "the link is left out"]
|
|
13
17
|
ctx.warns << "_config.yml: #{path}: #{v.inspect} reads site.github, which this build may not have: build on GitHub Pages, " \
|
|
14
|
-
"add the jekyll-github-metadata plugin, or set a github: map (
|
|
15
|
-
"build_revision); without it the link is left out"
|
|
18
|
+
"add the jekyll-github-metadata plugin, or set a github: map (#{keys}); without it #{lost}"
|
|
16
19
|
end
|
|
17
20
|
edit_url = lambda do |ctx, path, v|
|
|
18
21
|
next ctx.errs << "_config.yml: #{path} must be auto or an http(s) URL ending in / (page.path is appended)" unless v == "auto" || v.to_s.match?(EDIT_URL)
|
|
@@ -4,7 +4,7 @@ module Modootoday
|
|
|
4
4
|
module Check
|
|
5
5
|
# The modootoday: settings in the site's _config.yml; each key's rule is registered under config/keys/.
|
|
6
6
|
module SiteConfig
|
|
7
|
-
# A-Z by id (adr:modootoday/
|
|
7
|
+
# A-Z by id, a lookup table (adr:modootoday/20261114090712).
|
|
8
8
|
COMPONENTS = %w[accordion anchor badge banner bleed breadcrumb callout card chart code code-copy cta details diagram embed faq figure figure-svg filetree filter footer footnotes gallery hero install kbd linkcards lists loading nav page-actions pagination params pricing progress quote reveal search showcase sidebar split steps subscribe table table-stack tabs terminal theme-toggle timeline toc visual widget].freeze
|
|
9
9
|
SEMANTIC = %w[background foreground muted muted-foreground card card-foreground primary primary-foreground brand accent
|
|
10
10
|
accent-foreground border border-input ring note tip important warning caution status-available status-partial
|
|
@@ -17,19 +17,43 @@ module Modootoday
|
|
|
17
17
|
comps_file = "#{src}/_data/components.yml"
|
|
18
18
|
@comps = File.exist?(comps_file) ? (YAML.safe_load(File.read(comps_file)) || {}) : nil
|
|
19
19
|
@i18n = Dir.glob("#{src}/_data/i18n/*.yml").to_h { |f| [File.basename(f, ".yml"), YAML.safe_load(File.read(f)) || {}] }
|
|
20
|
-
|
|
21
|
-
@site_cfg = (File.exist?(cfg_file) && ((YAML.safe_load(File.read(cfg_file), permitted_classes: [Date, Time]) rescue nil) || {})) || {}
|
|
20
|
+
@site_cfg = config_files.reduce({}) { |cfg, f| merge(cfg, read_config(f)) }
|
|
22
21
|
@mtc = @site_cfg["modootoday"] || {}
|
|
23
22
|
# files and folders listed in the site's exclude: are not pages (a repository README.md, a nested site)
|
|
24
23
|
excl = Array(@site_cfg["exclude"]).map { |e| e.to_s.chomp("/") }
|
|
25
|
-
@mds = Dir.glob("#{src}/**/*.md").reject { |f| f.delete_prefix(src) =~ SKIP }.sort
|
|
24
|
+
@mds = Dir.glob("#{src}/**/*.md").reject { |f| f.delete_prefix(src) =~ SKIP || unread?(f) }.sort
|
|
26
25
|
@mds.reject! { |f| excl.any? { |e| rel(f) == e || rel(f).start_with?("#{e}/") } }
|
|
27
26
|
end
|
|
28
27
|
|
|
28
|
+
# --config=a.yml,b.yml replaces SRC/_config.yml and merges the files in order, later keys winning, as jekyll does.
|
|
29
|
+
def config_files
|
|
30
|
+
opt = argv.find { |a| a.start_with?("--config=") }
|
|
31
|
+
return ["#{src}/_config.yml"] unless opt
|
|
32
|
+
opt.delete_prefix("--config=").split(",").each { |f| errs << "--config: #{f} not found" unless File.file?(f) }
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def read_config(file)
|
|
36
|
+
return {} unless File.file?(file)
|
|
37
|
+
cfg = (YAML.safe_load(File.read(file), permitted_classes: [Date, Time]) rescue nil)
|
|
38
|
+
cfg.is_a?(Hash) ? cfg : {}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def merge(a, b) = a.merge(b) { |_, x, y| x.is_a?(Hash) && y.is_a?(Hash) ? merge(x, y) : y }
|
|
42
|
+
|
|
29
43
|
def option?(name) = argv.include?(name)
|
|
30
44
|
def rel(f) = f.delete_prefix("#{src}/")
|
|
31
45
|
def skipped?(f) = f.delete_prefix(src) =~ SKIP
|
|
32
46
|
|
|
47
|
+
# Files Jekyll does not read as pages: the SITE folder, and folders starting with _ (other builds such as
|
|
48
|
+
# _site_ko) other than _posts, _drafts and the collections.
|
|
49
|
+
def unread?(f)
|
|
50
|
+
@site_dir ||= site ? File.join(File.expand_path(site), "") : "\0"
|
|
51
|
+
return true if File.expand_path(f).start_with?(@site_dir)
|
|
52
|
+
@read_dirs ||= %w[_posts _drafts] + Array(site_cfg["collections"]).map { |c| "_#{c.is_a?(Array) ? c.first : c}" } +
|
|
53
|
+
Array(site_cfg["include"]).map { |i| i.to_s.chomp("/") }
|
|
54
|
+
rel(f).split("/")[0..-2].any? { |d| d.start_with?("_") && !@read_dirs.include?(d) }
|
|
55
|
+
end
|
|
56
|
+
|
|
33
57
|
# modootoday.twins: source = front-matter-less mode: a page without front matter is rendered by
|
|
34
58
|
# jekyll-optional-front-matter AND copied raw to its own path, which then is its twin.
|
|
35
59
|
def source_mode? = mtc.is_a?(Hash) && mtc["twins"] == "source"
|
|
@@ -14,7 +14,7 @@ module Modootoday
|
|
|
14
14
|
(@pages ||= {})[ctx.object_id] ||= begin
|
|
15
15
|
excl = Array(ctx.site_cfg["exclude"]).map { |e| e.to_s.chomp("/") }
|
|
16
16
|
Dir.glob("#{ctx.src}/#{GLOB}").sort.filter_map do |f|
|
|
17
|
-
next if ctx.skipped?(f) || excl.any? { |e| ctx.rel(f) == e || ctx.rel(f).start_with?("#{e}/") }
|
|
17
|
+
next if ctx.skipped?(f) || ctx.unread?(f) || excl.any? { |e| ctx.rel(f) == e || ctx.rel(f).start_with?("#{e}/") }
|
|
18
18
|
text = File.read(f, 4096)
|
|
19
19
|
next unless text&.start_with?("---\n", "---\r\n")
|
|
20
20
|
fm = (Markdown.fm(File.read(f)) rescue nil)
|
|
@@ -8,13 +8,16 @@ module Modootoday
|
|
|
8
8
|
# no translation in a modootoday.full_languages language, a translation with no source_rev or a stale one.
|
|
9
9
|
# Error: a sibling translation (x.ko.md) whose permalink is not its source's URL under /<lang>.
|
|
10
10
|
module I18nPages
|
|
11
|
+
# Pages modootoday-stubs writes for each language: nothing to translate, so no source_rev to keep.
|
|
12
|
+
GENERATED = %w[twin pages/offline].freeze
|
|
13
|
+
|
|
11
14
|
module_function
|
|
12
15
|
|
|
13
16
|
def call(ctx)
|
|
14
17
|
idx = I18n.page_index(ctx)
|
|
15
18
|
missing(ctx, idx)
|
|
16
19
|
idx.each do |r, fm, l|
|
|
17
|
-
next if l == ctx.default_lang || fm["layout"]
|
|
20
|
+
next if l == ctx.default_lang || GENERATED.include?(fm["layout"])
|
|
18
21
|
src = source_of(ctx, idx, r, fm)
|
|
19
22
|
translation(ctx, r, fm, l, src) if src
|
|
20
23
|
end
|
data/lib/modootoday/check.rb
CHANGED
|
@@ -26,11 +26,13 @@ require_relative "check/layouts"
|
|
|
26
26
|
require_relative "check/native/sources"
|
|
27
27
|
require_relative "check/native/layouts"
|
|
28
28
|
require_relative "check/native/collections"
|
|
29
|
+
require_relative "check/build/stubs/twin_links"
|
|
29
30
|
require_relative "check/build/stubs/twins"
|
|
30
31
|
require_relative "check/build/stubs/aliases"
|
|
31
32
|
require_relative "check/build/stubs/records"
|
|
32
33
|
require_relative "check/build/links"
|
|
33
34
|
require_relative "check/build/feeds"
|
|
35
|
+
require_relative "check/build/release_banner"
|
|
34
36
|
require_relative "check/build/pwa"
|
|
35
37
|
require_relative "check/build/byte_exact"
|
|
36
38
|
require_relative "check/source/gh_render"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-modootoday
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- modootoday
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -150,8 +150,10 @@ files:
|
|
|
150
150
|
- _includes/modootoday/link.html
|
|
151
151
|
- _includes/modootoday/links/attrs.html
|
|
152
152
|
- _includes/modootoday/links/content.html
|
|
153
|
+
- _includes/modootoday/links/markdown.html
|
|
153
154
|
- _includes/modootoday/lookup/crumbs.html
|
|
154
155
|
- _includes/modootoday/lookup/page.html
|
|
156
|
+
- _includes/modootoday/lookup/paths.html
|
|
155
157
|
- _includes/modootoday/lookup/urls.html
|
|
156
158
|
- _includes/modootoday/markdown/anchors.html
|
|
157
159
|
- _includes/modootoday/markdown/c/chart.html
|
|
@@ -517,12 +519,14 @@ files:
|
|
|
517
519
|
- lib/modootoday/check/build/pwa/manifest.rb
|
|
518
520
|
- lib/modootoday/check/build/pwa/precache.rb
|
|
519
521
|
- lib/modootoday/check/build/pwa/worker.rb
|
|
522
|
+
- lib/modootoday/check/build/release_banner.rb
|
|
520
523
|
- lib/modootoday/check/build/showcase.rb
|
|
521
524
|
- lib/modootoday/check/build/site_assets.rb
|
|
522
525
|
- lib/modootoday/check/build/structured_data.rb
|
|
523
526
|
- lib/modootoday/check/build/structured_data/nested.rb
|
|
524
527
|
- lib/modootoday/check/build/stubs/aliases.rb
|
|
525
528
|
- lib/modootoday/check/build/stubs/records.rb
|
|
529
|
+
- lib/modootoday/check/build/stubs/twin_links.rb
|
|
526
530
|
- lib/modootoday/check/build/stubs/twins.rb
|
|
527
531
|
- lib/modootoday/check/build/term_sets.rb
|
|
528
532
|
- lib/modootoday/check/build/third_party.rb
|