mdbook/tests/testsuite/rendering
Jesús Pérez 0784554c88 feat: site-url absolute links on mdBook 0.5.3 (crates layout)
Port of the 0.4.x site-url absolute-links patch to the 0.5 crates/ layout,
toward upstreaming as PR #1802. When output.html.site-url is set, internal
links and assets are emitted as absolute URLs anchored at site-url, so the
book works under a sub-path (e.g. /cdcidao/) regardless of page depth.

- html/tree.rs: fix_link/fix_html_link rewrite ./ content, image and raw-HTML
  links to {site_url}...; schemes and fragments untouched
- html_handlebars/hbs_renderer.rs: path_to_root = site_url for normal and index
  pages; base_url = site_url only for the toc.html iframe (removed before the
  per-chapter clone so it cannot leak)
- html_handlebars/helpers/resources.rs: {{resource}} honors an explicit
  path_to_root from data (absolute assets) with stock fallback
- html/print.rs: print page honors site-url; internal cross-refs still fold to
  #anchors, non-chapter links keep absolute form
- cmd/serve.rs: --preserve-site-url flag; serve still forces site-url to / for
  local preview but logs the override
- tests/testsuite/rendering*: site_url fixture + tests (content, assets, print,
  no <base> leak, no-regression without site-url)
- guide: document the serve flag and the renderer behavior
2026-06-18 23:03:22 +01:00
..
code_blocks_fenced_with_indent Fix rust fenced code blocks with an indent 2025-10-27 18:38:27 -07:00
default_rust_edition Add a new HTML rendering pipeline 2025-09-16 20:26:35 -07:00
edit_url_template Migrate edit-url-template tests to BookTest 2025-04-22 21:11:53 -07:00
edit_url_template_explicit_src Migrate edit-url-template tests to BookTest 2025-04-22 21:11:53 -07:00
editable_rust_block Add a new HTML rendering pipeline 2025-09-16 20:26:35 -07:00
first_chapter_is_copied_as_index_even_if_not_first_elem/src Migrate first_chapter_is_copied_as_index_even_if_not_first_elem to BookTest 2025-04-22 21:11:53 -07:00
fontawesome Support new font-awesome class names 2025-11-19 16:04:34 -08:00
fontawesome_error Improve error message for invalid Font Awesome icons 2026-02-24 08:58:05 -05:00
header_links Fix ID collisions when the numeric suffix gets used 2025-09-17 14:36:16 -07:00
hidelines Add a new HTML rendering pipeline 2025-09-16 20:26:35 -07:00
html_blocks Fix raw status ending in the HTML tokenizer 2025-09-17 14:21:01 -07:00
site_url feat: site-url absolute links on mdBook 0.5.3 (crates layout) 2026-06-18 23:03:22 +01:00