Repository navigation
feat(jekyll): add the Readerly Jekyll theme, starter and demo - #4
Merged
Merged
Conversation
Fonts move to design/assets/fonts and tokens.json describes their faces. build-tokens.mjs now writes design/assets/css/fonts.css, the theme.json fontFace entries (byte-identical to before), the WordPress font copies, and the Jekyll stylesheet, script, fonts and images. The design pages load the bundled fonts instead of Google Fonts, and the demo-bar rules move to design/assets/css/demo.css so no port ships them.
Layouts and includes print the design pages' markup, and the stylesheet, script and fonts are the generated copies of design/. A review is a post with flat book keys; _data/reading_log.yml holds unreviewed books with the same keys. The home, author and reading-log layouts are ordered lists of section includes that a page can override with sections:. Every section prints nothing when its data is missing. The footer credit lives in one include that a site removes by overriding it with an empty file.
The demo is Marginalia, the design pages' book blog, so it doubles as the markup parity fixture. The starter is the template repository for new GitHub Pages sites; its example review is a draft, so it publishes nothing.
…k the output tools/jekyll-dev builds the demo, the starter and three fixtures on the github-pages 232 gem set (Jekyll 3.10, --safe) and on Jekyll 4.4, failing on any build output. check-builds.mjs then requires equal HTML on both engines, resolvable links under a baseurl, markup parity with the design pages, and the browser checks of check-pages.cjs, which now takes a page map. A new CI job runs it all through Docker, as php-lint does.
publish-jekyll.sh splits jekyll/theme and jekyll/starter into their mirror repositories and proves the starter builds with the real remote_theme. It pushes, so only an operator runs it.
…lder covers A post with no cover, book author, rating or status is an article, not a book. It no longer fills the 'Latest review' card or gets a typeset book cover in the grid. Genre names on a site with no archive page keep the link styling, as an <a> without href, so the genre list keeps its leaders.
…aught these defects
…ish the tag before moving the branches
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.
Why
The goal is to earn referring-domain backlinks to https://www.listofbooks.net/ by publishing a free, well-made book theme in theme directories. Every site that installs it keeps one footer credit, "Theme by List of Books". The WordPress version is done. This PR adds the Jekyll port for a jekyllthemes.io listing and GitHub Pages users.
What changes
design/is the single source. Fonts move todesign/assets/fonts.tools/build-tokens.mjsnow also writesdesign/assets/css/fonts.css, the font faces inwordpress/theme.json, the WordPress font copies, and every Jekyll asset (readerly.css,theme.js, fonts, images, demo covers).--checkcovers them all. The design pages load the bundled fonts instead of Google Fonts, and the demo-bar rules move todesign/assets/css/demo.css.git diff origin/main -- wordpressis empty.theme.jsoncomes out byte-identical now that its font faces are generated.jekyll/themeis the theme. Its layouts print the design pages' markup, and its stylesheet isdesign/assets/css/style.cssverbatim, with no Sass. A review is a post with flat book keys, and_data/reading_log.ymluses the same keys. Thehome,authorandreading-loglayouts are ordered lists of section includes, and a page'ssections:overrides the list. The credit is_includes/shell/credit.html. A site removes it by adding an empty file at that path.jekyll/starteris the template repository for new Pages sites.jekyll/demois Marginalia, the design pages' blog.jekyll/fixturesholdsbare,minima(jekyll newoutput with the theme line swapped) andsparse(one post per missing field, underbaseurl: /sub).tools/jekyll-devbuilds every site on thegithub-pages232 gem set (Jekyll 3.10,--safe) and on Jekyll 4.4.check-builds.mjschecks the output.tools/wp-dev/check-pages.cjsnow takes a page-map file, so one checker serves both ports. A newjekyllCI job runs everything through Docker, the same wayphp-lintdoes.tools/publish-jekyll.shsplitsjekyll/themeandjekyll/starterinto their mirror repositories. I have not run it.Verification
node tools/build-tokens.mjs --checkpasses. A browser load of the design pages makes no request to any other origin.bare,minimaandsparse. Each site's HTML is equal on both engines after whitespace normalisation./sub.tools/jekyll-dev/parity-exceptions.json, each with its reason.wp-dev.sh checkreports 0 REQUIRED, 0 WARNING and 0 RECOMMENDED.check-pages.cjspasses 22 of 22 page checks in both styles.heavy act pull_request -W .github/workflows/ci.ymlpassed all five jobs, the newjekylljob included ("All 18 checks passed").Not in this PR
Each of these needs the owner: creating and pushing
listofbooks-net/jekyll-theme-readerlyandlistofbooks-net/jekyll-theme-readerly-starter, tags, demo hosting, the jekyllthemes.io submission, and runningpublish-jekyll.sh.Where this differs from the design contract
intro-statsreplaces a separatestatssection, because the design draws the statistics inside the intro block.shelvessection replacesshelf-read,shelf-wantandshelf-dnf, because the design wraps the three shelves in one section. A shelf hides withshelves: {dnf: false}.not-foundis a fixed layout, not a list of sections, because the design puts both blocks in one wrapper.about.md, so it publishes no placeholder content.remote_themeline and load the theme as a local gem. Realremote_themedownloads always use HTTPS from GitHub, so the checks cannot fake one offline.publish-jekyll.shbuilds the starter against the real download after it pushes.sparseconfigs also set it. There is no separate lint for Jekyll 4 filters, because the strict Pages build already fails on an unknown filter.