Repository navigation
Check plugin output and post markup, fix post errors - #89
Merged
Merged
Conversation
- script/check-plugin-output.rb reads the posts through Jekyll and checks what each hook adds (redirect stubs, modified time, prev/next, image loading and size, table containers), the feed cap, and block HTML that kramdown could not parse. validate-site.sh runs it and fails when any of its Ruby checks crash. - lint-posts.rb: use_math, translation pairs, a | inside $$ in tables, plain-text descriptions, Liquid outside raw, non-HTML tags such as <think>, fences kramdown does not read, date and file-name rules, tags spelled two ways. Allowed languages move to post_conventions.yml. - _config.yml: strict_filters, and future: true so a same-day post is not dropped from a morning deploy. - CI enforces https links; unused Sass and Liquid branches removed.
Paper numbers checked against the papers, arXiv links over https, <think> tokens shown as code, English captions on the English post.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adversarial review rounds 1-16 plus a final round under the agreed criterion (defects in current posts or output, false positives on existing posts, defects from patterns existing posts use). Final round: 0 MAJOR.
_data/post_conventions.yml(scholar-lens copies this file)languages: [ko, en]: the allowedlangvalues; a translation is one post in each.forbidden_keysnote onlast_modified_at).New lint rules (
script/lint-posts.rb), with pass / fail examples$$math needsuse_math: true식 $$x$$입니다.without the flaguse_math: true;echo $$in a fence|inside$$in a table row (kramdown splits the cell;|becomes|)| $$p(y|x)$$ |,| $$|\theta|$$ || $$p(y \mid x)$$ |,| $$\lVert w \rVert$$ |koand oneenpost sharetranslation_id; an-enpost sets ittranslation_iddescription:is plain text$$,*emphasis*, backticks,](,<tag>,{{Mixtral 8*7B와 C++ [1]{% raw %}```text\nQuestion: {{ question }}\n```{% raw %}…{% endraw %};render_with_liquid: false<think>,<s>,<input>, bare<img>in prose`<think>`,\<think\>,<br>,<img src=…>,i<j```python title="a.py"; a fence never closed```pythonYYYY-MM-DD-;date:not after it (UTC)date: 2025-03-01in2025-02-27-*.mdSliding-window-Attentionnext toSliding-Window-Attention.mdfiles under_posts/; front matter on line 1x.mkd; a blank line before---Other gates
script/check-plugin-output.rb(run byvalidate-site.sh): reads the posts through Jekyll, checks each hook's mark (legacy redirect stub, modified time, prev/next, imageloading/size, table container), the feed cap, and block HTML kramdown could not parse (closing tag shipped as text).validate-site.sh: every Ruby check fails when it crashes; listing check scans every non-post page; hreflang-gone guard; siteauthor:required; externalredirect_toand directory/bare permalinks handled._config.yml:liquid.strict_filters: true;future: true(a same-day post dated 12:00 UTC no longer drops out of a morning deploy).--no-enforce-https; all arXiv links are https.Hand fixes to generated posts (source value vs. what the post said)
610 × 1,000 / C_max; post said 610.<think>/<answer>in the prompt-template table were swallowed as HTML; now code spans.Not changed (pending a decision)
Paper posts publish
date:= paper date asdatePublished/ feedpublished.Gates: tests (169 runs), post lint, strict build, htmlproofer (CI flags), validate-site, shellcheck, actionlint; MathJax 0 errors on all 30 math posts.