diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-01-20 08:10:41 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-01-20 08:23:44 +0100 |
commit | 85fdd6032f45f12f5c5fc68354f085e4d1301f78 (patch) | |
tree | c88d4631fc8347c71871dddbdcef4433bf21d4f4 /sq | |
parent | 5c4faf806ba7b27cd0ff3db9b3fe435434b9ae18 (diff) |
Add branding to all crates.
Diffstat (limited to 'sq')
-rw-r--r-- | sq/build.rs | 4 | ||||
-rw-r--r-- | sq/src/sq-usage.rs | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sq/build.rs b/sq/build.rs index 25a9af8d..2a09a1e0 100644 --- a/sq/build.rs +++ b/sq/build.rs @@ -19,6 +19,10 @@ fn main() { &mut sq, vec![], "#").unwrap(); + writeln!(main, "\n#![doc(html_favicon_url = \"https://docs.sequoia-pgp.org/favicon.png\")]") + .unwrap(); + writeln!(main, "#![doc(html_logo_url = \"https://docs.sequoia-pgp.org/logo.svg\")]") + .unwrap(); writeln!(main, "\ninclude!(\"sq.rs\");").unwrap(); let outdir = match env::var_os("CARGO_TARGET_DIR") { diff --git a/sq/src/sq-usage.rs b/sq/src/sq-usage.rs index 761b7aab..1a70741d 100644 --- a/sq/src/sq-usage.rs +++ b/sq/src/sq-usage.rs @@ -733,4 +733,7 @@ //! <EMAIL_ADDRESS> The email address from which to obtain the WKD URI. //! ``` +#![doc(html_favicon_url = "https://docs.sequoia-pgp.org/favicon.png")] +#![doc(html_logo_url = "https://docs.sequoia-pgp.org/logo.svg")] + include!("sq.rs"); |