tikz-gallery-generator

Custum build of stapix for tikz.pablopie.xyz

Commit
bff4a7f4f5e96c9550948e1cc1cb196e32eeecd9
Parent
0a94966a0fd6f0d177e23aa004a4486af819ab07
Author
Pablo <pablo-escobar@riseup.net>
Date

Rewrote the intro message at the top of the gallery

Diffstat

1 file changed, 5 insertions, 8 deletions

Status File Name N° Changes Insertions Deletions
Modified src/main.rs 13 5 8
diff --git a/src/main.rs b/src/main.rs
@@ -34,13 +34,10 @@ const PAGE_TITLE: &str = "TikZ Gallery";
 const AUTHOR:     &str = "Pablo";
 const LICENSE:    &str = "GPLv3";
 
-const INTRO_MSG: &str = "This is a gallery with most of the mathematical
-drawings I've ever used on lectures of mine. Most of the files in here are
-<code>.tikz</code> files containing
-<a href=\"https://github.com/pgf-tikz/pgf\">TikZ</a> code I wrote, but some
-other files are included too. For further information on how to use the
-pictures in this gallery and what the licensing terms are please check out
-the <a href=\"/using.html\">Using This Gallery</a> page.";
+const INTRO_MSG: &str = "A gallery with ready-made mathematical drawings for
+use in LaTeX documents and Beamer presentations &mdash; as well as their source
+code! Please see <a href=\"/using.html\">Using This Gallery</a> for information
+on how to include pictures from this gallery in your documents.";
 
 /// WebP image quality
 const WEBP_IMAGE_QUALITY: f32 = 90.0;
@@ -282,7 +279,7 @@ fn render_index(pics: &Vec<GalleryEntry>) -> io::Result<()> {
     writeln!(f, "<body>")?;
 
     writeln!(f, "<main>")?;
-    writeln!(f, "<h1>Tikz Gallery</h1>")?;
+    writeln!(f, "<h1>{PAGE_TITLE}</h1>")?;
     writeln!(f, "<p>\n{}\n</p>", INTRO_MSG)?;
 
     writeln!(f, "<div id=\"gallery\" role=\"feed\">")?;