From cf5b68103c3b688fd7e4f4b5c0c4fa05d23f8e58 Mon Sep 17 00:00:00 2001 From: MultisampledNight Date: Thu, 11 Jan 2024 14:01:29 +0100 Subject: [PATCH] docs(template): make outline rendering configurable --- docs/design/util/graphics.typ | 2 +- docs/template.typ | 25 ++++++++++++++----------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/docs/design/util/graphics.typ b/docs/design/util/graphics.typ index c9b9fef..909f436 100644 --- a/docs/design/util/graphics.typ +++ b/docs/design/util/graphics.typ @@ -248,7 +248,7 @@ // literally just for standalone display of the graphics alone #import "../../template.typ": conf -#show: conf +#show: conf.with(render-outline: false) #set page(width: auto, height: auto) #graph-example diff --git a/docs/template.typ b/docs/template.typ index a7ce038..a624cc7 100644 --- a/docs/template.typ +++ b/docs/template.typ @@ -56,6 +56,7 @@ #let conf( title: none, subtitle: none, + render-outline: true, doc, ) = { set page( @@ -134,18 +135,20 @@ } // outline and other prelude info - outline( - indent: auto, - fill: line( - length: 100%, - stroke: ( - cap: "round", - join: "round", - thickness: 0.5pt, - paint: luma(75%), + if render-outline { + outline( + indent: auto, + fill: line( + length: 100%, + stroke: ( + cap: "round", + join: "round", + thickness: 0.5pt, + paint: luma(75%), + ), ), - ), - ) + ) + } // content itself doc