From d58fd14944d8ad588598ba7e51c5d87b1b85c3b0 Mon Sep 17 00:00:00 2001 From: Simon Ruggier Date: Sat, 5 Oct 2024 00:18:51 -0400 Subject: [PATCH 1/3] Add print styles to remove navigation elements and excess whitespace This makes it much easier to export the documentation to PDF or paper for offline reading. --- components/content.tsx | 6 +++--- components/nav.tsx | 2 +- package-lock.json | 11 +++++++++++ package.json | 1 + styles/styles.scss | 19 +++++++++++++++++++ 5 files changed, 35 insertions(+), 4 deletions(-) diff --git a/components/content.tsx b/components/content.tsx index 731cd9a9..1069758d 100644 --- a/components/content.tsx +++ b/components/content.tsx @@ -6,7 +6,7 @@ import Link from "next/link"; function Footer({ next, prev, mdPath }) { let edit = `https://github.com/tokio-rs/website/edit/master/content/${mdPath}`; return ( -
+
@@ -98,7 +98,7 @@ function TableOfContents({ headings }) { }, [headings]); return ( -