From a4b5afe0d6c71d4dd2b1a1b5b7d6c98b638e9deb Mon Sep 17 00:00:00 2001 From: Camelid Date: Sat, 20 Mar 2021 18:53:38 -0700 Subject: [PATCH 1/2] Better fix code blocks in `/about` This is a followup to #1315 to fix the extra blank line at the top and to fix the indentation. --- templates/core/about/builds.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/core/about/builds.html b/templates/core/about/builds.html index 07c345c2b..43628605b 100644 --- a/templates/core/about/builds.html +++ b/templates/core/about/builds.html @@ -31,7 +31,7 @@

Setting a README

Detecting Docs.rs

To recognize Docs.rs from build.rs files, you can test for the environment variable DOCS_RS, e.g.: - {% filter dedent(levels=4) -%} + {% filter dedent(levels=3) -%}

if let Ok(_) = std::env::var("DOCS_RS") {
                 // ... your code here ...
             }
From 5e2c591950cbbb05c2434c2850284d17c2eec287 Mon Sep 17 00:00:00 2001 From: Camelid Date: Fri, 16 Apr 2021 14:17:40 -0700 Subject: [PATCH 2/2] Remove extraneous blank line in example `Cargo.toml` --- templates/core/Cargo.toml.example | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/core/Cargo.toml.example b/templates/core/Cargo.toml.example index 99adf847e..187b9ce45 100644 --- a/templates/core/Cargo.toml.example +++ b/templates/core/Cargo.toml.example @@ -1,5 +1,4 @@ -{# The example Cargo.toml used in about.html #} -[package] +{# The example Cargo.toml used in about.html #}[package] name = "test" [package.metadata.docs.rs]