Repository navigation
Add the Embedded Rust 101 course by Wyliodrin and UPB - #9
Closed
alexandruradovici wants to merge 1 commit into
Closed
alexandruradovici wants to merge 1 commit into
alexandruradovici wants to merge 1 commit into
Conversation
Contributor
Author
|
@BartMassey any way we could merge this? |
kenesparta
referenced
this pull request
in kenesparta/rust-edu.github.io
Oct 29, 2026
Every step now lands as a reviewed PR on the fork's main, and the finished work goes upstream as one PR (new step 9), so Part B no longer waits for upstream's agreement. Mark step 1 as done and record the step 2 choices: resources as a Markdown list without the 3 empty subcategories, the entries of upstream PRs #3 and #9 ported with credit, and Zulip linked through /zulip/.
6 tasks done
7 tasks done
kenesparta
added a commit
that referenced
this pull request
Nov 17, 2026
… actions (#14) * docs: add research notes for an own Markdown site generator Four short notes back Plan 0002: an inventory of what the Zola site uses today, a design for a std-only Rust generator, Docker builds with an official-actions Pages deploy, and what to keep from the August plan. * docs: add Plan 0002 for a Markdown-only site on our own generator A small plan of reviewable steps: pin the broken deploy action first, make content Markdown-only and drop Bulma while Zola still deploys, then build a std-only Rust workspace next to Zola and switch Pages over in one final step. * fix: pin the Zola deploy action to v0.22.1 shalzz/zola-deploy-action@master now installs Zola 0.23.6, which stops at templates/macros.html:1 with "Unknown tag", so every PR build and the next deploy fail. Pin the action to v0.22.1 and actions/checkout to v7.0.1 by commit SHA, give each job only the token permissions it needs, and name Zola 0.22.1 in the README for local builds. * docs: build Plan 0002 on the fork and send one upstream PR Every step now lands as a reviewed PR on the fork's main, and the finished work goes upstream as one PR (new step 9), so Part B no longer waits for upstream's agreement. Mark step 1 as done and record the step 2 choices: resources as a Markdown list without the 3 empty subcategories, the entries of upstream PRs #3 and #9 ported with credit, and Zulip linked through /zulip/. * refactor: move page and section headers to YAML Nine of the eleven content files now start with a YAML header (---) that uses only keys Zola and the planned generator both read. News posts list their authors in the page-level authors key instead of [extra] author, and the byline joins them with "and", so it reads as before. The news section gains a title. The resources and Zulip files follow in their own commits. * refactor: use kebab-case content file names Zola already turns _ into - in URLs, so /news/call-for-participation/ and /news/campus-tour/ stay the same; the files now match them. * refactor: turn the resources page into a Markdown list The 3-level TOML data becomes headings and a list item per resource ("[Title](url) — Author. Description."), so adding one is a one-line edit with a GitHub preview. Headings get real ids, which the old #slug links lacked, and the inline code in a description now renders. The three empty subcategories (Macros, Networking, Web) are dropped, and resources.html and macros.html are deleted. The intro note keeps its text and links straight to the editor for this file. * content: add The Rust way of programming to resources Ported from upstream PR rust-edu/rust-edu.github.io#3, which added the entry to the TOML data this branch replaces. Co-authored-by: ZhangHanDong <27893+ZhangHanDong@users.noreply.github.com> * content: add Embedded Rust 101 to resources Ported from upstream PR rust-edu/rust-edu.github.io#9, which added the entry to the TOML data this branch replaces. Co-authored-by: Alexandru Radovici <2838177+alexandruradovici@users.noreply.github.com> * refactor: redirect /zulip/ with redirect_to content/zulip.md becomes the section content/zulip/_index.md, because Zola only honours redirect_to on sections; Zola's built-in redirect replaces redirect.html. The menu and the home page link to /zulip/ instead of zulip.rust-edu.org, which answers with a redirect to plain http://, so the Zulip host lives in one file. * fix: replace the raw HTML on the home page with Markdown The announcement button (a div with Bulma classes and class="is", which matches no CSS rule) becomes a plain link, and the contact address a Markdown mailto link. content/ now holds no HTML tags. * fix: repair broken and outdated links in content Three links between pages resolved under the current page and 404ed live (cfp-2022.html, paper-format-latex/, code-of-conduct); they are now root-relative. The contact link used an email: scheme wrapped in <> and becomes a plain mailto link. Two http://rust-edu.org links point to / instead. * fix: tidy Markdown that rendered wrongly The GOALS list in the announcement switched from * to - for its last item, which splits it into two lists; it now uses * throughout. Two pages repeated the title as a second h1 in their content; those headings become h2 (their ids stay the same). Two invisible zero-width spaces inside a campus-tour quote are removed. * fix: list news posts newest first Without sort_by, Zola lists a section's pages in no set order; the live /news/ shows 2022, 2026, 2025. sort_by: date lists them newest first. * fix: link files next to a page with root-relative URLs Zola turns a relative link such as proceedings.pdf into an absolute https://rust-edu.github.io/... URL, which costs a 301 to rust-edu.org. The five file links on the workshop pages are now root-relative, so all links between pages and files in content/ use the same form. * docs: add a guide to editing the site in Markdown docs/editing.md maps each URL to its file and lists the header keys, the Markdown in use, the link forms that work on every page, the common changes (a news post, a resource, a menu link), proposing a change on github.com, and a local preview with Zola 0.22.1. * fix: correct the Zola configuration base_url was https://rust-edu.github.io, so the stylesheet, logo and every permalink went through a 301 to rust-edu.org, and sitemap.xml and robots.txt advertised the github.io host; it is now rust-edu.org. title and description sat under [link_checker], where Zola ignores them, and description gets the site's tagline. build_search_index (misplaced under [search], no search UI), render_emoji (no emoji codes in content), minify_html (the default) and stale comments go. Menu links end in /, which saves a redirect on GitHub Pages. The built pages are otherwise unchanged. * refactor: replace Bulma with a hand-written style.css static/style.css (7.6 KB, served at the same /style.css) replaces the Sass build of Bulma and Bulmaswatch (429 KB, Bulma included twice, plus a runtime Google Fonts import). It holds every color in one token block with a dark theme by prefers-color-scheme, uses the system font stack, styles the HTML that Markdown produces without classes, links in brand green #0b7261 (underlined inside text), and meets WCAG 2.1 AA contrast in both themes. The logo is inverted in the dark theme, since its lettering is black. The templates drop the Bulma markup: a header, nav, main and footer with a skip link and visible focus; no JavaScript, so the mobile menu wraps instead of collapsing; no nested link around the logo, no target="_blank"; news dates use the same "Jul 11, 2022" format as the pages; and the content is no longer run through Markdown a second time. home.html (unused), sass/ and static/js/site.js are deleted. * chore: drop the Bulma submodules Nothing uses ext/bulma or ext/bulmaswatch since style.css is plain CSS, so the submodules, .gitmodules and the checkout's submodules option go. A fresh clone builds with no extra step; the README and docs/editing.md lose the submodule step, the README its stale troubleshooting section (including a config snippet that was invalid TOML), and it now points to the editing guide and to where the layout and style live. * feat: add the Cargo workspace and the edu command A virtual workspace for the std-only site generator: resolver 3, edition 2024 and Rust 1.99.1, pinned in rust-toolchain.toml (minimal profile plus rustfmt and clippy) and as rust-version; publish = false, and license CC0-1.0 like the rest of the repository (plan decision 6). The workspace lints forbid unsafe code and warn on unwrap, expect, panic, todo, unimplemented, dbg!, printing to stdout, mod.rs files, glob imports and lossy casts; clippy.toml allows unwrap, expect and panic in tests. Cargo.lock is committed and lists no dependencies. crates/site is edu-site, with the edu binary (plan decision 5). It knows two commands so far, help and version; any other command line is a usage error that exits with status 2. Arguments are read with args_os, so one that is not valid Unicode is an error, not a panic. The other crates of the plan (edu-yaml, edu-markdown, edu-template) arrive with their first code. * ci: format, lint, test and build the generator in Docker The Dockerfile's check stage runs cargo fmt --check, clippy with warnings denied, the tests and a release build, all --locked --offline and with no network, in rust:1.99.1-slim-trixie pinned by digest. The same command runs the checks on a laptop: docker build --target check . The .dockerignore is an allowlist, so .git, target/ and public/ never reach the build. ci.yml runs that build on pull requests and pushes to main with a read-only token, after two guards: Cargo.lock lists no crate from a registry or git, and the Dockerfile's FROM tag names the Rust version of rust-toolchain.toml. The runner is ubuntu-latest, since the checks run inside the pinned image. The README says how to run the checks; Zola still builds and deploys the site. * docs: record plan decisions 2, 3, 5 and 6 Decisions 2 and 3 (links in brand green, no JavaScript) were applied in step 3; decisions 5 and 6 (the edu names, and CC0 for the code too) were taken on 2026-11-01 for step 4. Steps 0, 2 and 3 are marked done. Step 4 now adds each crate with its first code instead of creating four crates at once, empty ones included, so its done-when asks that Cargo.lock list only our own crates. * feat: add edu-yaml with the YAML subset's maps, scalars and errors The first half of the YAML subset of research 0002 §3: `key: value` maps, maps indented under `key:`, plain, single-quoted and double-quoted scalars, and comments. Every scalar stays a string for its consumer to type. Anything outside the subset (tabs, anchors, aliases, tags, flow collections, block scalars, values over several lines, `: ` in a plain value) is an error at a line and column, the column counted in characters. Lists, page headers and `edu check` follow in the next PR. * docs: split step 4 into three PRs The YAML subset with its tests comes to about 690 lines, over the 600-line limit of a PR, so it lands in two halves where research 0002 §9 already split it: maps, scalars and errors first; lists, page headers and `edu check` next. Part B grows to about 4,850 lines in about twelve PRs. * feat: add lists and page headers to edu-yaml The second half of the YAML subset of research 0002 §3: `- item` lists indented under `key:`, lists of maps whose keys line up after the `- `, and `parse_front_matter`, which splits a page at its header between two lines `---`, with positions counted from the top of the page. A line in a list that is not `- value` and a `- ` with no value are errors, and a `- ` on the line of its key is still one. * feat: add edu check for the header of every page `edu check` parses the header of every Markdown file under `content/`, in path order, and prints each header outside the YAML subset as `path:line:col: error: message` on stderr, then exits with 1. A file or directory it cannot read stops it with the path and the cause. On success it prints how many pages it checked. The tests run it on two small sites under `crates/site/tests/sites`. * ci: check the page headers in Docker The check stage copies `content/` after the release build, so editing a page reuses every layer above, and runs `edu check` under `--network=none`. Every pull request, a content-only one included, now fails on a header outside the YAML subset. * docs: mark step 4 done The README shows `edu check`, the editing guide says that the check names the file, line and column of a header mistake, and the plan marks step 4 done with its three PRs. * feat: add edu-markdown with paragraphs and headings The first blocks of the Markdown subset: paragraphs, whose lines run to a blank line and may be indented under the first, and `#` to `######` headings, each with the id Zola gives it (`What’s Next?` becomes `what-s-next`), made unique on the page with `-1`, `-2`. Text is escaped for HTML as Zola escapes it. Tabs and other control characters, indented code, headings underlined with `=` or `-`, horizontal rules, and a heading with a letter or digit outside ASCII or none at all are errors with a line and column. A seeded random test damages a sample 5,000 times and finds no panic. * docs: split step 5 into four PRs The block parser came to about 880 lines with its tests, over the 600-line limit of one PR, so step 5 becomes four PRs: paragraphs and headings; fenced code, quotes and lists; inlines; emphasis and errors. Step 5 is now about 1,800 lines and Part B about 5,400 in thirteen PRs. The content has 30 headings since the resources page became Markdown. * chore: render quotes as typed (decision 4) Decision 4 drops smart quotes: the generator will not curl quotes and apostrophes, so Zola stops too, and the 12 lines with a straight `"` or `'` on five pages render as typed on both. `docs/editing.md` says so, and the plan records the decision. * feat: add fenced code, quotes and lists to edu-markdown The other blocks of the Markdown subset: code between ``` or ~~~ fences, whose first word names the language; `>` quotes, which hold any blocks; and lists of `-`, `*` or `+` items or of numbered items, each item's other lines and nested blocks indented to the column of its text. A list is loose when a blank line separates its items or the blocks of an item, and only an item with text and a bullet or the number 1 ends a paragraph, as in CommonMark. A heading or code block in a list item follows the item's text without a line break, as Zola writes it. A line right under a list item or quote without the item's indentation or the quote's `>`, an empty list item, a fence that is not closed, and nesting more than 8 deep are errors with a line and column. * feat: add code spans, autolinks, escapes and line breaks to edu-markdown The inline syntax of paragraphs and headings, other than links, images and emphasis: code spans, whose line breaks become spaces; `<url>` and `<email>` autolinks; backslash escapes; the references `&`, `<`, `>` and `"`; and hard line breaks after two spaces or a `\`. URLs are escaped as Zola escapes them, and links to `http:` and `https:` URLs are marked `rel="external"`, as Zola marks them. A heading's id is made from its text without the markup. A `<` before a letter, `/`, `!` or `?` that does not start an autolink, which CommonMark may read as HTML, and any other character reference are errors with a line and column. * docs: split step 5 into five PRs The inlines came to about 725 lines with links, images and their tests, over the 600-line limit of one PR, so step 5 becomes five PRs: paragraphs and headings; fenced code, quotes and lists; code spans, autolinks, escapes and line breaks; links and images; emphasis and errors. Step 5 is now about 2,300 lines and Part B about 5,900 in fourteen PRs. The plan also records two decisions: links to other sites keep Zola's `rel="external"`, and the only character references are `&`, `<`, `>` and `"`. * feat: add links and images to edu-markdown `[text](url)` links and `` images in paragraphs and headings, found with CommonMark's stack of brackets. A URL balances its parentheses, takes backslash escapes and the four character references, and is escaped as Zola escapes it. An image's description is its text without markup, and a heading's id leaves images out, as in Zola. A link's `(` without a URL right after it that ends at `)` on the same line, a link in a link's text, an image in an image's description, and reference links and their `[label]:` definitions are errors with a line and column. * feat: add emphasis and the last errors to edu-markdown `*` or `_` emphasis and `**` or `__` bold, in paragraphs, headings, link texts and image descriptions, opened and closed by CommonMark's flanking rules. A closer pairs with the nearest opener of its mark, which must be as long and have no unpaired opener after it, so the emphasis CommonMark resolves by its subtler rules is an error: three marks in a row, a mark without its match, crossing emphasis, and a mark next to a symbol outside ASCII whose class std cannot tell. The syntax Zola or GitHub add to CommonMark is an error too: `~` strikethrough, `[^1]` footnotes, tables, task lists, `{…}` after a heading, and the bare URLs and email addresses that GitHub links. * docs: split step 5 into six PRs Emphasis and the last errors came to about 460 lines; with `edu check` on page bodies, golden tests against Zola 0.22.1 and the changes to `docs/editing.md`, the last PR of step 5 would pass the 600-line limit, so those go in a sixth PR. Step 5 is now about 2,500 lines and Part B about 6,100 in fifteen PRs. * feat: check the text of every page in edu check `edu check` now renders the text after each page's header with edu-markdown, and reports its first error with the page, a line counted from the top of the page, and a column, as it reports errors in headers. The real content passes: `checked 11 pages`. The README, the Dockerfile and the name of CI's step say that the text is checked too. * test: add golden tests of the site's pages `golden/<page>.md` holds the text of each of the 9 pages with text, as of today, and `golden/<page>.html` its HTML: the whole body that Zola 0.22.1 deployed for it, with the 4 `#` links that Zola makes absolute as written in the page. edu-markdown renders all 9 byte for byte. `UPDATE_GOLDEN=1` writes the HTML files anew after an intended change. * docs: document the Markdown subset and mark step 5 done `docs/editing.md` adds numbered lists, fenced code, line breaks and backslash escapes to what pages can use, and lists what the check rejects. Step 5 is done with fork PRs #9 to #14. * feat: add edu-template with values, `{{ }}` and comments The template language of the layouts, std only: `{{ path }}` writes a text from the context with `&`, `<`, `>`, `"` and `'` escaped, and `{{ path | safe }}` as it is; a path is names joined by `.`, looked up in maps of texts, booleans, lists and maps. `{# … #}` is a comment, and any other text stays as written. A `{% … %}` tag (`if` and `for` come in the next PR), another filter, a path that is not names, and a value that is missing or not text are errors with a line and column. * docs: split step 6 into three PRs The template engine came to about 690 lines with its tests, over the 600-line limit of one PR, so it is split in two: values, `{{ }}` and comments; then `if`, `else` and `for`. With the ported layouts, step 6 is three PRs of about 950 lines, and Part B about 6,300 lines in sixteen PRs. * refactor: match tag delimiters as an enum in edu-template `next_tag` returns an `Open` enum (`Print`, `Tag`, `Comment`) alongside the byte offset, so `Template::parse` matches every tag kind exhaustively without re-reading the second byte or falling back on `_` arms. * feat: add if, else and for to edu-template `{% if path %}`, `{% else %}` and `{% endif %}` keep one of two parts, the first for `true` or a text, list or map that is not empty; a missing path is false. `{% for name in path %}` and `{% endfor %}` repeat a part for each item of a list, and a path looks in the loops around it, innermost first, before the context. An `else`, `endif` or `endfor` out of place, an `if` or `for` without its end, nesting deeper than 8, a bad loop name, and a `for` over a value that is missing or not a list are errors with a line and column. Each error kind is its own variant, and each match on a value names every kind of value. * feat: add the layouts and site.yaml for the generator `layouts/` ports Zola's `templates/` to the template language: one `layout.html` with the site's head, menu and footer wraps the layout of each page (`home.html`, `page.html`, `section.html` and `news.html`) at `{{ content | safe }}`, and Tera's blocks, filters and `and` become values of the page and an `if` inside an `if`. `site.yaml` holds the title, description, menu and footer links that Zola reads from `config.toml`. `edu check` now also reads `site.yaml` and parses every layout, naming each error's file, line and column; rendering the pages with them comes next. * docs: split step 6 into four PRs The layouts with the code that renders every page came to about 735 lines, over the 600-line limit of one PR, so they are split in two: the ported layouts and `site.yaml`; then rendering every page. Step 6 is now four PRs of about 1,600 lines, and Part B about 6,950 lines in seventeen PRs. * docs: explain how the generator and its four crates work in README Summarizes the std-only workspace, the strict YAML/Markdown/template subsets, the four crates under `crates/`, and the layout-wrapping pipeline with two Mermaid diagrams. * refactor: move template parsing into crates/template/src/parse.rs `lib.rs` keeps the public types, the AST and rendering, while `parse.rs` holds the tag scanner, block stack and path parser. * feat: check the values and the layout of each page `edu check` now reads each page's header into the values that the layouts will read: `title`, `url`, `content`, `date` with `date_display`, `authors` joined by "and", `home`, and for a section its pages, by URL or with `sort_by: date` newest first, as Zola lists them. A page without a `title`, a date that is not a day of the calendar, `authors` that is not a list of names, a `sort_by` other than `date`, a post without a `date` in a section sorted by date, and a page whose layout is not in `layouts/` are errors. The header's other keys and rendering the pages come in the next two PRs. * docs: split step 6 into six PRs The values of each page, the header's keys and rendering came to about 760 lines, over the 600-line limit of one PR, so they are three PRs, and step 6 is six PRs of about 2,050 lines; Part B is about 7,400 lines in nineteen PRs. Step 6 lists a section's pages by `sort_by: date`, so `sort_by` leaves step 7. * feat: check each key of a page's header A header now has only the keys of the plan's stable format: `title`, `template` and `draft` in any file, `date` and `authors` in a page of its own, and `sort_by` and `redirect_to` in an `_index.md`. Any other key, or one in the other kind of file, is an error at the key that names the keys this kind of file has, and `draft` is `true` or `false`. Zola rejects the same keys in an `_index.md`, and in a page ignores them, where they would not do what they say. * feat: render every page with the layouts in edu check `edu check` now renders each page that has no error and does not redirect with its layout inside `layout.html`, reading the settings of `site.yaml` as `site`. An error in a layout while it renders names the layout, its line and column, and the page, and an error in `site.yaml` or in a layout stops the check before rendering, since every page would fail on it. The 10 pages that render match the pages that Zola 0.22.1 deployed line for line, apart from whitespace, Tera's `/`, Zola's absolute `#` links and its space before a one-digit day. * docs: mark step 6 done Step 6 is done with fork PRs #15 to #20: every page renders, and an error in a layout names its file and line. * feat: add edu build, which writes the site into public/ `edu build` checks the site as `edu check` does, then writes each page that does not redirect as `index.html` in the folder of its URL, the files of `static/` at the top, and the other files of `content/` beside the pages of their folder. It writes into `public.tmp/` first, which then takes the place of `public/`, and it deletes only a folder that an earlier build marked as its own with `.edu-output`. Two files of the site for one file of the output are an error, and so is a page's file or folder name that Zola would change to make its URL. The Docker `check` stage builds the site twice and compares the two builds. * feat: edu build writes redirects, 404.html, robots.txt and sitemap.xml `edu build` now writes a page for each `_index.md` with `redirect_to`, which sends the browser on with a meta refresh, as Zola's redirect does without JavaScript, and `404.html`, `robots.txt` and `sitemap.xml` as Zola writes them. `site.yaml` gives the site's address as `base_url`, which the sitemap and `robots.txt` name. A `redirect_to` must be a full address, and a file of the site that would be one of the three files that the build makes is an error. Step 7 of the plan becomes five PRs. * feat: edu build leaves out drafts, and builds previews for another address `edu build` leaves out each page with `draft: true`, and everything in the folder of an `_index.md` with it, as Zola does; `--drafts` keeps them, and `edu check` checks them like every other page. A draft home page is an error. `--base-url` builds the site for another address than the `base_url` of `site.yaml`, such as a fork's Pages site: the sitemap and `robots.txt` name it, the layouts read it as `site.base_url`, and every link from the top of the site goes under its path. * feat: edu check follows every link of the site, and keeps urls.txt `edu check`, and so `edu build`, follows each `href` and `src` in the HTML of every page, its menu and layouts too. A link to the site must go to one of its pages or files, a `#` to an id of its page, a link to a page must end with `/`, and a page of the live site must not link to a draft. A relative link, and a scheme other than `https`, `http` and `mailto`, is an error too, each at the place where it is written. `urls.txt` lists the 26 addresses that Zola deployed, which must keep working. Links are read only inside tags, so `--base-url` no longer changes an `href="/` in the text of a page, and a site without `static/` builds, as in Zola. * refactor: edu build makes the site in memory before it writes it `edu build` now makes the whole site in memory first, each file by its path with what it holds: the HTML of a page, a copy of a file of the site, or one of the files that the build makes itself. Writing it is then one loop, and `edu serve`, the next change, can answer from the same site without writing anything. The report of an error, as the command line prints it, moves into the library for the server's error page. Step 7 of the plan becomes seven PRs. * feat: add edu serve, which serves the site and builds it again `edu serve` builds the site in memory and serves it at http://127.0.0.1:1111/, or at the address of `--bind`, as GitHub Pages does: a page at its URL, `/news` sent on to `/news/`, and `404.html` with the status 404 for a path that the site does not have. Each connection has a thread; a request after a change to a file of the site builds it again, and an error shows as a page with the errors, as `edu check` prints them. `--drafts` serves the drafts too. It writes nothing, and a request can only name a file of the built site. * feat: preview the site with docker compose, and with each pull request `docker compose up` runs `edu serve` in the pinned image on the files of the site, mounted read-only, drafts included, at http://127.0.0.1:1111. CI builds the site with its drafts for each pull request and attaches it to the checks as `site-preview`, for seven days. The plan marks step 7 done. * ci: add deploy.yml, which publishes the site with GitHub Pages `deploy.yml` asks Pages for the address of the site, checks and builds the site for it in Docker through the new `site` stage of the Dockerfile, and publishes it with GitHub's own Pages actions, pinned by commit. Until Zola stops deploying, it runs only when started by hand, and only where the Pages source is GitHub Actions, as on the fork that rehearses the switch. * ci: deploy on each push to main, and stop building with Zola `deploy.yml` now runs on each push to `main`, as well as by hand, and publishes the site that the generator builds. Zola's `main.yml`, its `config.toml` and its `templates/` go: `site.yaml` and `layouts/` hold the same settings and layouts. The README and `docs/editing.md` preview the site with `docker compose up` and build it with `edu build`, and the badge shows the new workflow. * ci: add Dependabot for the actions, and for the image with the toolchain Each week, Dependabot proposes the newer actions in one pull request, with their commit pins and version comments updated. It also proposes the Docker image and `rust-toolchain.toml` in one multi-ecosystem group, since ci.yml fails when they name different Rust versions. So a Rust release bumps the tag and digest of the image and the channel of the toolchain in one pull request. * docs: mark step 8 of Plan 0002 done * fix: refuse symbolic links in the site, and leave out names that start with a dot The generator followed a symbolic link among the files of the site, so `edu build` copied whatever the link pointed to, inside or outside the repository, into the built site. A link in `content/`, `static/` or `layouts/`, a linked folder of them, `site.yaml` or `urls.txt` now stops the check, naming the link. Files and folders whose names start with `.`, such as `.DS_Store`, are no longer part of the site. A planned site is now written by its own function, so the test of a copy that fails no longer needs a broken link to make one fail. * fix: publish only images, PDF and text files, LaTeX files and stylesheets Pages have no HTML, but the build copied any other file of `content/` and `static/` as it was, so an `.html` or `.js` file would have run its scripts on the site as one of its pages. The check now stops at a file of another type than the site publishes, and names the types it does publish; an HTML file gets a hint to write the page in Markdown. The test sites that clashed with `static/index.html` and `static/sitemap.xml` now clash with `.txt` files instead. * fix: keep the letters of any script in a heading's id A heading with a letter outside ASCII, such as `## Taller en Perú` or a heading in Chinese, failed the check with "an id is made of ASCII letters and digits", although the guide says to type `é` as it is. Its id now keeps its letters and digits in any script, in lowercase, as GitHub keeps them: `taller-en-perú`. Every heading of the site is ASCII, so no id changes. The check of links decodes the `%` escapes of an id, so a link to `#taller-en-perú` finds it. An error about a link shows it as the page writes it, `/news/café/` instead of `/news/caf%C3%A9/`, at its line and column instead of at the top of the page. * fix: read a page or site.yaml that starts with a byte order mark Some editors on Windows start a UTF-8 file with U+FEFF, which shows as nothing. A page saved that way failed the check with "expected a line `---` that opens the header", though its first line reads `---`. The YAML parser now leaves the mark out, for pages and for `site.yaml`. * ci: show each error of the check on its line of the pull request `edu check` names the file, line and column of each mistake, but in CI that line sat inside the log of the Docker build, and the pull request only said that the check failed. The step now also writes each such line as an annotation, which GitHub shows on that line under *Files changed* and in the summary of the checks. `docs/editing.md` says so, and that the check of a first pull request waits until a maintainer lets it run. * fix: say what the site does, not what Zola did, in two messages Zola no longer builds the site, and a contributor has no reason to know it. The messages for a `~` and for `{…}` at the end of a heading now say that GitHub may read `~` as strikethrough while the site would not, and that `{…}` after a heading is not supported. * fix: publish an SVG image only if it has no way to run a script A browser that opens an SVG image at its own address runs the image's scripts as if it were a page of the site. The check now scans each SVG image, and stops at a `script` or `foreignObject` element, an event attribute such as `onload` or an animation of one, a `javascript:` address or the XHTML namespace; and at what could hide one of them from the scan: a reference other than XML's own five, a processing instruction other than the XML declaration, a `<!DOCTYPE>` with declarations, or markup that does not close. The site's banner passes as it is. * fix: scan an SVG image as the UTF-8 text that a browser reads GitHub Pages sends an SVG image without a charset, so a browser reads it in the encoding that its XML declaration names, where the same bytes can be other characters than the UTF-8 text that the scan reads. The check now stops at a declaration that names another encoding than UTF-8, and at a control character other than a tab or a line end, which XML does not allow either. * docs: add one set of instructions for AI coding agents, and a Makefile AGENTS.md holds the instructions, and CLAUDE.md and .gemini/settings.json point Claude Code and Gemini CLI to it. The Makefile gives one command for the checks, which also run format and lint, since CI stops at those as well. * perf: serve the campus tour photos as WebP, and hold their space while they load * fix: name the home page in its title, declare the icon, and link the workshop * perf: clean the logo's SVG, the same drawing in a third of the bytes * feat: one quiet column, and a home page that leads with its purpose * feat: warm paper, a top rule and the crab * docs: name the hero list, the home page's heading and the size of a photo The editing guide, README.md and AGENTS.md now name the `hero` list of site.yaml, which holds the next steps under the home page's heading, and the editing guide says that the home page shows the site's description as that heading. A new item says how to save a photo: 960 pixels wide, in the 16:9 shape, as WebP of at most 90 KB. The stylesheet's header no longer says that the body is the column, which is not so in this design. * docs: name `hero` in README.md and AGENTS.md, and correct four lines of the editing guide README.md and AGENTS.md now name the `hero` key of site.yaml, as the previous commit said they did. The editing guide no longer says that the title is every page's `#` heading, since the home page shows the site's description there; its image example uses a .webp file, as the photo item advises; it says that the check follows the links of site.yaml, not only the menu's; and the photo item says how far a portrait photo moves the text. Two comments, in site.yaml and in the stylesheet, now say what their lines do. * feat: color the headings: rust titles, blue sections, violet sub-sections Headings take three colors built from the crab's orange, the brand's color: titles take it as rust; section headings take blue, the split complement of orange that the teal of links does not take; and sub-sections take violet, blue's neighbor. Each has a contrast of at least 5.5:1 on the page, in both themes. A bold line right above a photo, such as a place on the campus tour, takes the sub-section color, and when it follows text it keeps the space above it. The home page's statement keeps the text color beside the crab. On the campus tour, "Where We've Been" becomes a heading like the post's other sections. * feat: a button that switches between the light and the dark theme The button sits at the end of the menu. A short script in the head sets the choice, kept in localStorage, before the page paints, so it holds on every page and on the next visit; until the button is used, the site follows the system's theme. Without JavaScript the button stays hidden and the site still follows the system's theme, and printing stays light. The dark colors now apply when the system asks for them and the button has not chosen light, or when the button has chosen dark. These few inline lines in layouts/layout.html are the site's only JavaScript, which README.md now says. Plan 0002 chose none (decision 3); the site stays whole without it. * fix: keep list bullets inside the text column From 46rem up, the bullets and numbers of a list hung in the margin left of the column, so that the text of each item lined up with the paragraphs. On screen they read as out of line. Lists now keep their indent of 1.5rem at every width, with their bullets inside the column. * feat: a logo that keeps its colors in the dark theme The dark theme inverted the whole logo with a filter, which made the black cap white, paled the crab and inverted its eyes. The filter is gone. The header now holds the logo twice and the stylesheet shows the one for the theme: `#dark` in the banner's address turns its lettering to the light paper's color, and the crab and the cap keep their own colors. A prefers-color-scheme rule inside the banner would not do, because in Safari it follows the system's theme and not the theme button. Without `#dark` the lettering stays black, so a site that embeds the banner shows the lettering it showed before, and so does a printed page. The cap stays black in both themes. A fine line in the light paper's color runs around its two parts: it disappears on the light theme and sets the cap off on the dark one. It takes the place of the white shapes and strokes behind the cap. The tassel is gone, since it hung behind the crab and only three fragments of it showed. The cap sits one unit lower, so that its line covers a notch of the shell's edge at its left corner. The crab is unchanged. The banner goes from 3,897 to 2,752 B with gzip, and style.css from 2,831 to 2,883 B. Where the stylesheet does not load, both logos show. * feat: the tab icon is the logo's crab and cap The icon was a crab drawn for the tab alone. It is now the banner's own symbol, the crab under its black cap, without the lettering and centered in a square. The line around the cap has the light paper's color, so it sets the cap off on a dark tab and is hardly seen on a light one, and the icon needs no rule for the dark theme. At 16 px the line is about half a pixel of a 2x screen; on a dark tab of a 1x screen the cap's edge is faint. The icon goes from 349 to 1,932 B with gzip. * fix: leave the drafts out of a list of pages, so a draft news post passes The news list listed every page of its folder, drafts too, in a build with drafts, and `edu check` always builds with them. So the live `/news/` linked to a draft post, the link check stopped at that link from the live site to a draft, and a pull request with a draft news post failed `edu check` in CI, and `edu build --drafts` with it. A list of pages now leaves out each page with `draft: true`, after the check that each page of a section with `sort_by: date` has a `date`, which a draft still needs. A page of the live site thus renders the same with drafts as without them, and a link written by hand from it to a draft is still an error. A build with drafts still has the draft itself, at its address. The test site `valid` gets a news list beside its draft post, as the site has. docs/editing.md says where a draft shows in a pull request's build and in the local preview: at its own address, not in the news list. * ci: stop exporting an image that no step uses, and stream the log With no tag and no -o, `docker build` exports the image it built. On the runner's containerd store that means compressing each new layer, writing manifests and an attestation, and unpacking the result as a dangling image, which took about 5 to 8 s of each ci run on the fork since 2026-11-07, and grows with target/. No step uses that image: the preview build after it reuses BuildKit's cache. The check step now builds with `--output type=cacheonly`, which runs the same stages and keeps their cache, with no image. deploy.yml already writes files with `-o site`, and does not change. `sed -u` passes each line of the log on as it arrives. Without it, sed held the log back in blocks of 4 KB, and on the runner the first ones showed 16 to 20 s into the step. A failing build ends with its annotations either way. Locally, on Docker 29 with the containerd store, after a change to crates/, the old line took 11.3 s, 5.0 s of it the export, left a dangling image, and logged in 5 bursts, the first at 3.0 s. The new line took 6.3 s, left no image, and logged its first line at 0.5 s. The preview build right after it reused every step of the check stage. A broken link still gives its ::error line and exit 1, and a format error exit 1. * ci: run ci.yml on pull requests only Each push to main ran ci.yml and deploy.yml side by side, and each built the check stage from scratch on its own runner. deploy.yml builds the site FROM check, so it already runs every check before it publishes, and in 27 of the fork's 28 pushes ci.yml tested again the tree that the pull request had tested. ci.yml now runs on pull requests only. That removes a job of 30 to 39 s from each push, but nobody waits less, since the deploy never waited for it. The two `if:` lines that kept the preview to pull requests go, since every run is one now. What goes with it: the ci status on the commits of main, which nothing reads (the README's badge is the deploy's, and no check is required); the annotations of a direct push to main, whose errors still show in the deploy's log; and a run that checks main without publishing it. The guards of Cargo.lock and of the Rust version stay on pull requests. On main the build itself, with no network, stops a crate from a registry or git and a channel other than the image's Rust; only a stale FROM tag waits for the guard of the next pull request. So `FROM check AS live` in the Dockerfile is now the only check of main, and an edit there could publish without the tests while every check stays green. AGENTS.md now says to keep it. Nothing in README.md, docs/, research/ or the comments says that ci.yml runs on main, so they stay as they are. * docs: acknowledge the AI tools, and name them in each pull request README.md gets an AI Acknowledgement section before Get Involved: most of the generator, its tests, the layouts, the stylesheet and the docs were written with Claude Code and the model Claude Opus 5.5 from October 2026, at the direction of Ken Esparta, who read each change in its pull request on the fork kenesparta/rust-edu.github.io. The changes to the logo that keep its colors in the dark theme, and the tab icon drawn from it, were made with Claude Code and the model Claude Fable 5.2. An earlier plan from August 2026, which Plan 0002 replaced, was drafted with Claude Fable 5; the fork keeps it at the tag archive/initial-project-plan. Gemini CLI was used only for reviews and questions, and none of its output is in the repository. AGENTS.md gets the line that the section points to: when an AI agent helps with a change, the description of its pull request says which tools helped and how. * docs: record in Plan 0002 that the theme button runs on JavaScript Decision 3 of Plan 0002 chose no JavaScript, and the plan's table of decisions still said so. But the button that switches between the light and the dark theme, added on 2026-11-09, runs on two short inline scripts in layouts/layout.html: one in the head applies the saved choice before the page paints, and one at the end of the page shows the button and handles it. Without JavaScript the button stays hidden and the site follows the system's theme, as README.md says. Decision 3 keeps its text as history, followed by the change, and its row in the table now names the scripts. The history of step 3, which built the templates without JavaScript, stays as it was. README.md said that layout.html holds one short script of the theme button, and now says two. * fix: refuse Unicode's noncharacters in a page and in site.yaml Unicode keeps 66 code points out of text: U+FDD0 to U+FDEF, and the last two of each plane, among them U+FFFE and U+FFFF. HTML reports them, and XML cannot hold U+FFFE or U+FFFF, so neither could a feed of the pages. edu-yaml and edu-markdown now refuse them as they refuse a control character, at its line and column, in code too, with the hint to delete it. * fix: refuse an empty title, author name or site description A `title` of "" or of spaces alone passed the check, and so did such a name in `authors`: the page then showed an empty heading, or a byline with an empty name, and the feeds of the next changes would carry an empty title or author. Each is now an error at the value's line and column, with a hint: ValueError::BlankTitle and ValueError::BlankAuthor. White space around a title or a name stays part of it. The `title` and `description` of site.yaml show on the pages too: the title in the `<title>` of each page, and the description as the home page's heading and as the description of each page. A blank one is an error as well, BlankSiteTitle or BlankSiteDescription, at its line and column. The test site `unrenderable` gets a page with a blank title and one with a blank author, and docs/editing.md says that neither can be empty. * refactor: name what a link goes to, and share the loop that rebases links A Link enum says what a link goes to by how it starts: another site or an email address, an id of the same page, a page or file of the site, or anything else, which the check refuses. The check of a link and the rebase of a preview's links match on it, instead of each testing the same starts. links::prefix, which puts a text before each link that a function picks, is the loop that rebase had. The Atom feed, two changes later, makes the links of its posts absolute with both. * feat: check the links in the whole text of each news post, for the feed The feed of the next change carries the whole text of each news post, so the check now follows the links of that text even where a layout leaves the text out of the post's page. A link there that would not work is an error at its line and column in the post, and so is a link to a draft, since the live site has the post. feed::posts gives the posts: the pages that each section with `sort_by: date` and no `redirect_to` lists, newest first, that the live site has. A list already leaves out a page with `draft: true`, and the posts also leave out the pages in the folder of a draft `_index.md`, so a preview checks the same posts as the live site. render::listing and its order, newest_first, are shared with it. The built site does not change. * feat: write an Atom feed of the news at /atom.xml The build writes atom.xml when a section with `sort_by: date` and no `redirect_to` lists a live post: the posts that feed::posts gives, newest first, each with its whole text as escaped HTML and its links to the site and to ids made absolute at the build's address, so a preview's feed lists what the live feed lists. Each post's day is its time at midnight UTC, and the feed is as new as its newest post, so two builds stay the same. The feed says that it is in English, with `xml:lang="en"`. The ids keep the base_url of site.yaml under any --base-url, so readers do not show the posts again after a move. The feed's name and author are site.yaml's title, which a site with posts now needs, and its subtitle is the description. The loop of settings that refuses a blank one now also takes each as text, so a list there is an error too, in the order of the file. Every page with the site's layout names the feed for feed readers, and urls.txt keeps its address. /news/ links to it in a line under its heading, with a class of its own, `news-feeds`, which joins the rules of a post's byline in style.css, so that both look the same. A test builds this repository's own site at another address, and checks that the ids stay at https://rust-edu.org: the feed's, and each post's, which is the post's address there. site.yaml says that its base_url must not change. Since that test reads the site, the Dockerfile, `make check` and the README run `edu check` before the tests, so that a mistake in a page shows as the check's message with its line and column; the test names the same errors when it runs alone. In Docker, a change to the pages alone now runs the tests again, a few seconds more. * feat: write an RSS 2.0 feed of the news at /rss.xml The build writes rss.xml beside atom.xml with the same posts in the same order: the live pages of each section with `sort_by: date` and no `redirect_to`, newest first, each with its whole text as escaped HTML in `description` and its links to the site and to ids made absolute at the build's address. A post's guid is its Atom id, at the base_url of site.yaml under any --base-url, with isPermaLink="false", since a build for another address links the post there. Its authors are `dc:creator` names, since the `author` of RSS is an email address. Its time is midnight UTC in the form of RFC 822, with the day of the week of its date, and the channel's lastBuildDate is the day of the newest post, so two builds stay the same. The channel names its own address with `atom:link` and says that it is in English. A `date` before 1900 is now an error, ValueError::EarlyDate, at its line and column: the RFC 822 dates of RSS, as RFC 5322 now defines them, have no earlier year. Date::parse reads the year, the month and the day once, refuses a year before 1900, and then a day that the calendar does not have, so the day of the week, by Tomohiko Sakamoto's method, never counts a year below 1899. The test of the calendar walks the years 1900 to 9999, the test site `unrenderable` gets a page of 1899, and docs/editing.md says that a date is from 1900 on. RSS needs a description of the channel, so a site with posts now needs the `description` of site.yaml too; the Atom feed then always has it as its subtitle, and the Atom feed of this site does not change. A `Format` enum names the two feeds, so the build and the check of links treat both alike. Every page with the site's layout names both feeds for feed readers, Atom first, with titles that tell them apart; /news/ links to both, and urls.txt keeps /rss.xml. The test that builds this repository's own site checks that the guids of its posts are their Atom ids, at https://rust-edu.org. * docs: record the feeds' decisions and pull requests in research 0006 research/0006-atom-and-rss-feeds.md, the research note behind the Atom and RSS feeds, joins the repository, updated to 2026-11-10: - its four open points are decided, each as its default, and the three known limits of the prototype are fixed (sections 5 and 6); - the prototype became the fork's pull requests 38 to 47, listed with their sizes (section 7.2); - the checks of those pull requests, among them both feeds deployed on the fork's Pages site and valid there by address on the W3C validator, with no warning (section 7.3); - the cost of the feeds is now 1,346 changed lines as one diff (section 8). Only the research notes change; the site does not. * docs: record in research 0006 that the feeds' pull requests merged The fork's pull requests 38 to 47 merged into its main on 2026-11-10, so the note no longer calls them "in review": - the status line, the introduction and the short version say that the work landed, and section 7.2 that the ten merged in order, and that pull request 49 then added the note; - section 6 says that its first three gaps are described as they were before their fixes; - section 7.3 has two checks made after the merge: the fork's main holds the files of the top of the stack, and the fork's Pages site, deployed from main, serves the 35 files of a local build; - "after the merge" in the list under "Done when" now names the merge that it means, the one of the upstream pull request. Only the research note changes; the site does not. * feat: a sun or a moon on the theme button, and a label for each The theme button showed a half-filled circle in both themes, and its label and tooltip always said "Dark theme": also in the dark theme, where a click gives the light one. - The button shows a sun in the light theme and a moon in the dark one. Both drawings are in layouts/layout.html, and style.css shows the one for the theme, with the selectors that swap the logo. - Its label and tooltip say what a click does: "Switch to the dark theme" or "Switch to the light theme". They follow a click, and a change of the system's theme while the page is open. - aria-pressed is gone. A toggle has either a fixed label with a pressed state, or a label that changes; this one now has the second. Without JavaScript the button stays hidden, as before. * feat: a feed button at the end of the menu of every page The feeds were linked only from a line on /news/, and named in the head of each page for feed readers. - Every page now has a small button with the feed symbol at the end of its menu, before the theme button and in its style. It links to the Atom feed, and its label and tooltip say "News feed (Atom)". /news/ still links to both feeds. - It is a plain link, so it also shows without JavaScript, where the theme button stays hidden. Paper leaves out both buttons. - The menu is 38 px wider with it. It moves under the logo on a screen narrower than 492 px (before: 454 px), and wraps onto two rows on one narrower than 353 px (before: 315 px). - docs/editing.md says where the button is, and that the build writes the feeds again each time, so a new post needs only its file. * feat: a header that stays at the top, as frosted glass The header left with the page, so on a long page the menu was out of reach. - On a screen the header is now a bar across the page that stays at the top while the page moves under it. Its logo and menu keep their place in the column. - Where the browser can blur what lies behind, the bar is frosted glass: the page's color at 76%, over the page blurred by 20px and with fuller colors. Without that the bar is plain paper, and also for a reader who asks for less transparency or uses their own colors. - On a narrow screen the menu takes the row under the logo, with its two buttons at the right, and only that row stays at the top. - A screen less than 30rem high keeps a header that leaves with the page: a phone on its side, or a page zoomed far in. - A link to an id, and the keyboard's focus, stop below the bar, and the skip link shows over it. Paper does not change. * feat: the feed button opens a menu of both feeds The feed button in the menu linked to the Atom feed alone, so the RSS feed was a click further away, on /news/. - A click on the feed's symbol now opens a short menu under the bar: "Follow the news in a feed reader", then a link to each feed. The bar itself looks as before. - The menu is a details element, so it needs no script. A click on the symbol or anywhere beside the menu closes it: while the menu is open, a cover that is part of its button lies over the screen, unseen. - The bar's glass is now a layer under the logo and the menu, not the bar itself: with a filter on the bar, that cover could not reach beyond the bar. The bar looks the same. - Paper leaves the feed button out, as before. * fix: a narrow and low screen keeps its logo Since the feed menu, the header is positioned on every screen, so that the menu can hang from it. On a narrow screen the header also goes up by the row of the logo, which is meant for the bar that stays at the top. On a screen both narrow and low, where the header leaves with the page, it went up too: the logo was above the top of the page, out of reach, and an empty band lay under the menu. The header now goes up only where it stays at the top: on a screen at most 31rem wide and at least 30rem high. * feat: the feeds as orange buttons in the menu The feed's symbol was one grey button, and each feed two clicks away, in its menu. - A screen with room, 37rem wide or more, now has a button for each feed in the bar: ATOM and RSS, in orange, as the feed's symbol is all over the web. One click opens a feed. - A narrower screen keeps the one button with the feed's symbol, now orange too. Its menu holds the same two buttons. - The orange is the color of a page's title, with the paper's color on it, so the letters read well in both themes. Under the pointer, and while its menu is open, a button's two colors change places. - All the buttons of the bar have one height, at any size of text. * feat: the feed buttons in Ferris's orange The feeds' buttons had the darker orange of a page's title. - They now have the orange of Ferris, the crab of the logo, with the black of his cap for the letters and for the feed's symbol: a contrast of 6.0:1. Under the pointer, and while its menu is open, a button's two colors change places. - The menu of a narrow screen holds the two buttons alone: its line "Follow the news in a feed reader" is gone. * feat: a hero with Ferris in his cap on the home page The home page opened with its statement and a small plain crab in a corner. - A band across the screen, right under the bar and in the footer's color, now holds the statement, the next steps and Ferris with his cap. He is the drawing of the tab's icon, from the same file: 176px wide at the right of the statement, or 112px above it on a screen under 40rem. - On the light band the line around his cap, which has the light paper's color, does not show: there the picture is blended with `darken`. The dark theme keeps the line. - static/crab.svg, the plain crab, is gone: nothing else used it. * fix: white text on the feed buttons and page-colored hover Use white (#ffffff) for the feed buttons' text and symbol, and fill hovered or open feed buttons with var(--color-bg) in both light and dark themes. Also ignore .DS_Store and .idea, and add Plan 0003 and Research 0005 notes. * feat: a styled heading on the home page The statement on the home page is now three lines: "Rust education" in the site's bold sans; "in academia", with "academia" in a book's italic shaded from Ferris's orange to rust; and "(and beyond)", a small italic aside whose parenthesis hangs out of the column, so its letters stand on the edge. The fonts are the systems' own: Iowan Old Style on Apple's systems, Palatino Linotype on Windows, URW Palladio L or P052 on Linux, and the system's serif elsewhere, so the page asks for no new file. Styling the words apart needs them in layouts/home.html. The description in site.yaml still gives the home page's title, the summary for search engines and the feeds' description; a comment there and docs/editing.md say to change both together. The shading is a gradient clipped to the letters, with a plain color where a browser cannot clip, on paper, and while the word is selected, since the highlight would fade it. Its orange end is 3:1 on the light band, which WCAG AA allows for large text, and the stylesheet's header now says so. style.css grows from 16,219 B to 17,861 B, and from 4,805 B to 5,298 B with gzip -9 -n. * fix: the message for a blank description says where the site shows it The home page's heading no longer prints the description of site.yaml, so the message for a blank one, and the comments beside it, say that the home page shows it in its title. * ci: fail when Cargo.lock lists a crate but the four edu-* crates, or live is not FROM check A crate copied into crates/ has no source line in Cargo.lock, so the old guard let it pass. The new step also checks that the lock lists exactly edu-markdown, edu-site, edu-template and edu-yaml. A second step checks that the Dockerfile keeps FROM check AS live, which is the only check of main since ci.yml runs on pull requests only. Both close gaps named in research/0005 (sections 3.3 and 3.7). * Merge pull request #63 from kenesparta/feat/urls-yaml feat: replace urls.txt with urls.yaml, add themed 404.html layout, and tighten workspace config * feat(site): open external links and redirects in a new tab (#64) Add `target="_blank" rel="external noopener"` at build time to `<a>` elements pointing to `https://` or `http://` URLs as well as site paths that forward to external URLs (such as `/zulip/`), while keeping internal links, `#` anchors, `mailto:` links, redirect fallback pages, and Atom/RSS XML feeds unchanged. * feat(site): write llms.txt, the site in brief for language models (#66) `edu build` now writes `/llms.txt` beside `robots.txt` and `sitemap.xml`, in the Markdown that llmstxt.org proposes: the `title` of `site.yaml` as its heading (the base URL without one), its `description` as a quote, a link to each page by URL, a link to each post, newest first, with its day and authors, and the two feeds under `## Optional`, since they hold the whole text of every post. It leaves out the redirects and the drafts, so a preview shows the live file at its own address. Markdown syntax in titles, names and the description is escaped. `/llms.txt` joins `keep` in `urls.yaml`, and `static/llms.txt` is now reserved, as `static/robots.txt` is. * docs: add Plan 0004 for a minifier crate (#65) The plan proposes a fifth crate, edu-minify, on the standard library alone. It publishes the stylesheet without its comments, its indentation and its empty lines, and three lines of one layout take the comments out of the two inline scripts. At 2bd9da3 the stylesheet goes from 5,924 to 3,438 B with gzip, and a first visit to the largest text page from 1.07 KB over the 15 KB of Plan 0003 to 1.54 KB under. The plan also sizes a scan that takes the indentation out of the HTML of the layouts, and leaves that part to its decision 1. The figures for its steps come from two prototypes that are not in the repository. Nothing is decided: the status is "proposed", and the ten decisions are open. Plan 0003 lists minified CSS or HTML under "Not in this plan"; a dated note there now points to this plan. * content(resources): add university courses and the Little Book of Rust Books The two suggestions of rust-edu/rust-edu.github.io#5: a link to the Little Book of Rust Books, under "Collected learning materials", and a new section "University courses" of eleven courses that universities teach, or have taught, in Rust, each with its public page. Embedded Rust 101 moves there from "Teaching and Training", unchanged. Refs rust-edu/rust-edu.github.io#5 * ci: move the checks of ci.yml into the Makefile, so that make ci runs what CI runs The three guards (only our crates in Cargo.lock, the live stage FROM check, one Rust version) were shell inside ci.yml, so `make ci` did not run them and a change could pass locally and fail on GitHub. They are now the `guards` target, which `make check` and `make ci` run first, and CI runs `make ci` and `make preview`. A guard prints its error as `file:line:col: error: …`, like `edu check`, and the filter that stays in ci.yml turns both into annotations. The list of crates is one variable, `CRATES`, which also gives the count and the message. `make ci` no longer keeps the image of the check stage (`--output type=cacheonly`, as CI already did). * ci: explain the filter that writes the annotations, line by line The comments are inside the step: above set -o pipefail, above the pipe, and above each command of sed, with one line of the build and the command it becomes as an example. --------- Co-authored-by: ZhangHanDong <27893+ZhangHanDong@users.noreply.github.com> Co-authored-by: Alexandru Radovici <2838177+alexandruradovici@users.noreply.github.com>
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.
This pull request adds the Embedded Rust 101 course website that is used by Wyliodrin and Politehnica Bucharest.