From f3a1add2dc4badb0b2c435d22afb0701f8fd36e2 Mon Sep 17 00:00:00 2001 From: Ryan Duguid Date: Fri, 30 Oct 2026 14:12:50 +1100 Subject: [PATCH] Serve README badges without shields.io so they render through GitHub's image proxy GitHub's camo proxy timed out (504 after about 4.2 s) on most shields.io fetches, so the badges showed as broken images. Workflow badges now use GitHub's native badges, and static badges are committed SVGs. --- .github/assets/badges/fork-of.svg | 1 + .github/assets/badges/licence.svg | 1 + .github/assets/badges/rust.svg | 1 + ATTRIBUTION.md | 5 ++++- ATTRIBUTION.toml | 33 +++++++++++++++++++++++++++++++ README.md | 4 ++-- 6 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 .github/assets/badges/fork-of.svg create mode 100644 .github/assets/badges/licence.svg create mode 100644 .github/assets/badges/rust.svg diff --git a/.github/assets/badges/fork-of.svg b/.github/assets/badges/fork-of.svg new file mode 100644 index 0000000000..80cf8b2419 --- /dev/null +++ b/.github/assets/badges/fork-of.svg @@ -0,0 +1 @@ +fork of: PdfCraftfork ofPdfCraft diff --git a/.github/assets/badges/licence.svg b/.github/assets/badges/licence.svg new file mode 100644 index 0000000000..ec97ff837a --- /dev/null +++ b/.github/assets/badges/licence.svg @@ -0,0 +1 @@ +licence: MIT OR Apache-2.0licenceMIT OR Apache-2.0 diff --git a/.github/assets/badges/rust.svg b/.github/assets/badges/rust.svg new file mode 100644 index 0000000000..11aeaaf4bd --- /dev/null +++ b/.github/assets/badges/rust.svg @@ -0,0 +1 @@ +rust: 1.90+rust1.90+ diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md index 3bdc67a368..44435b23af 100644 --- a/ATTRIBUTION.md +++ b/ATTRIBUTION.md @@ -4,7 +4,7 @@ Every asset PdfCraft includes, bundles or uses to build its published material, with its author, source and licence. The policy is in [AGENTS.md](AGENTS.md) ยง1. The machine-readable list, with SHA-256 hashes, is [ATTRIBUTION.toml](ATTRIBUTION.toml). Licence texts are kept beside the assets and summarised in [NOTICE](NOTICE). -## In this repository (259) +## In this repository (262) | Asset | Title | Author | Licence | Source | Used for | |---|---|---|---|---|---| @@ -239,6 +239,9 @@ Every asset PdfCraft includes, bundles or uses to build its published material, | `.github/assets/banner-phone-light.svg` | PlutarchPages README phone banner (light) | EquityBot (generated by readme-banner) | MIT OR Apache-2.0 | this repository | README header; text and emblem drawn as SVG paths, no embedded fonts or third-party art | | `.github/assets/banner-phone.svg` | PlutarchPages README phone banner (dark) | EquityBot (generated by readme-banner) | MIT OR Apache-2.0 | this repository | README header; text and emblem drawn as SVG paths, no embedded fonts or third-party art | | `.github/assets/banner.svg` | PlutarchPages README banner (dark) | EquityBot (generated by readme-banner) | MIT OR Apache-2.0 | this repository | README header; text and emblem drawn as SVG paths, no embedded fonts or third-party art | +| `.github/assets/badges/fork-of.svg` | PlutarchPages README badge: fork of PdfCraft | shields.io contributors (static badge template); badge text by EquityBot | Apache-2.0 | https://img.shields.io/badge/fork%20of-PdfCraft-66023C?labelColor=000000&style=flat&color=66023C (badges/shields) | README badge row; committed static SVG, text names the font family only, no embedded fonts | +| `.github/assets/badges/licence.svg` | PlutarchPages README badge: licence | shields.io contributors (static badge template); badge text by EquityBot | Apache-2.0 | https://img.shields.io/badge/licence-MIT%20OR%20Apache--2.0-66023C?labelColor=000000&style=flat&color=66023C (badges/shields) | README badge row; committed static SVG, text names the font family only, no embedded fonts | +| `.github/assets/badges/rust.svg` | PlutarchPages README badge: Rust version | shields.io contributors (static badge template); badge text by EquityBot | Apache-2.0 | https://img.shields.io/badge/rust-1.90%2B-66023C?labelColor=000000&style=flat&color=66023C (badges/shields) | README badge row; committed static SVG, text names the font family only, no embedded fonts | | `docs/images/pdfcraft-bookmarks.png` | PdfCraft screenshot: Bookmarks | PdfCraft contributors (generated by `cargo xtask screenshots`) | MIT OR Apache-2.0 | this repository | README: navigation. Shows only PdfCraft UI, Lucide icons and the showcase PDF built from the [[fetched]] OFL fonts | | `docs/images/pdfcraft-dark.png` | PdfCraft screenshot: Dark theme | PdfCraft contributors (generated by `cargo xtask screenshots`) | MIT OR Apache-2.0 | this repository | README: themes. Shows only PdfCraft UI, Lucide icons and the showcase PDF built from the [[fetched]] OFL fonts | | `docs/images/pdfcraft-find.png` | PdfCraft screenshot: Find text | PdfCraft contributors (generated by `cargo xtask screenshots`) | MIT OR Apache-2.0 | this repository | README: search. Shows only PdfCraft UI, Lucide icons and the showcase PDF built from the [[fetched]] OFL fonts | diff --git a/ATTRIBUTION.toml b/ATTRIBUTION.toml index 92724763aa..2ed16dbe7b 100644 --- a/ATTRIBUTION.toml +++ b/ATTRIBUTION.toml @@ -2885,6 +2885,39 @@ kind = "image" usage = "README header; text and emblem drawn as SVG paths, no embedded fonts or third-party art" sha256 = "366d5f1c81ae268af8077542e32e746f98c2c9f51fbc5b53805c653078543a89" +[[asset]] +path = ".github/assets/badges/fork-of.svg" +title = "PlutarchPages README badge: fork of PdfCraft" +author = "shields.io contributors (static badge template); badge text by EquityBot" +source = "https://img.shields.io/badge/fork%20of-PdfCraft-66023C?labelColor=000000&style=flat&color=66023C (badges/shields)" +licence = "Apache-2.0" +licence_file = "LICENSE-APACHE" +kind = "image" +usage = "README badge row; committed static SVG, text names the font family only, no embedded fonts" +sha256 = "d71088659bb81995bdc9661fa77f32bea68db7cd2e796f08e01ca0361a564fa7" + +[[asset]] +path = ".github/assets/badges/licence.svg" +title = "PlutarchPages README badge: licence" +author = "shields.io contributors (static badge template); badge text by EquityBot" +source = "https://img.shields.io/badge/licence-MIT%20OR%20Apache--2.0-66023C?labelColor=000000&style=flat&color=66023C (badges/shields)" +licence = "Apache-2.0" +licence_file = "LICENSE-APACHE" +kind = "image" +usage = "README badge row; committed static SVG, text names the font family only, no embedded fonts" +sha256 = "ada8e4dc852da4fbf181e877e2fb3961333b7696145792bb43123118e430d8c1" + +[[asset]] +path = ".github/assets/badges/rust.svg" +title = "PlutarchPages README badge: Rust version" +author = "shields.io contributors (static badge template); badge text by EquityBot" +source = "https://img.shields.io/badge/rust-1.90%2B-66023C?labelColor=000000&style=flat&color=66023C (badges/shields)" +licence = "Apache-2.0" +licence_file = "LICENSE-APACHE" +kind = "image" +usage = "README badge row; committed static SVG, text names the font family only, no embedded fonts" +sha256 = "4ad8c783ef128abc2398825c4248b840938e04f86503f83b4de4452673d0bd57" + [[asset]] path = "docs/images/pdfcraft-bookmarks.png" title = "PdfCraft screenshot: Bookmarks" diff --git a/README.md b/README.md index 8b28e73e18..7e75f9fca3 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@
-[![tests](https://img.shields.io/github/actions/workflow/status/EquityBot/PlutarchPages/ci.yml?branch=main&label=tests&labelColor=000000&style=flat)](https://github.com/EquityBot/PlutarchPages/actions/workflows/ci.yml) [![CodeQL](https://img.shields.io/github/actions/workflow/status/EquityBot/PlutarchPages/codeql.yml?branch=main&label=CodeQL&labelColor=000000&style=flat)](https://github.com/EquityBot/PlutarchPages/actions/workflows/codeql.yml)
-[![rust: 1.90+](https://img.shields.io/badge/rust-1.90%2B-66023C?labelColor=000000&style=flat&color=66023C)](https://www.rust-lang.org/) [![licence: MIT OR Apache-2.0](https://img.shields.io/badge/licence-MIT%20OR%20Apache--2.0-66023C?labelColor=000000&style=flat&color=66023C)](#license-and-credits) [![fork of: PdfCraft](https://img.shields.io/badge/fork%20of-PdfCraft-66023C?labelColor=000000&style=flat&color=66023C)](https://github.com/storytold/pdfcraft) +[![tests](https://github.com/EquityBot/PlutarchPages/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/EquityBot/PlutarchPages/actions/workflows/ci.yml) [![CodeQL](https://github.com/EquityBot/PlutarchPages/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/EquityBot/PlutarchPages/actions/workflows/codeql.yml)
+[![rust: 1.90+](.github/assets/badges/rust.svg)](https://www.rust-lang.org/) [![licence: MIT OR Apache-2.0](.github/assets/badges/licence.svg)](#license-and-credits) [![fork of: PdfCraft](.github/assets/badges/fork-of.svg)](https://github.com/storytold/pdfcraft)