tikz-gallery-generator

Custum build of stapix for tikz.pablopie.xyz

Commit
33f7b82e03a1701d96d87b6cbeee75bc6fa01b55
Parent
884a215372d86ce3c6a6bb496ee87d3cb462aa4f
Author
Pablo <pablo-pie@riseup.net>
Date

Changed the loyout of the entrypage

Diffstat

3 files changed, 38 insertions, 8 deletions

Status File Name N° Changes Insertions Deletions
Modified src/intro.html 7 0 7
Modified src/main.rs 4 3 1
Added src/outro.html 35 35 0
diff --git a/src/intro.html b/src/intro.html
@@ -7,10 +7,3 @@ to be an educational resource on
 <a href="https://github.com/pgf-tikz/pgf">TikZ</a>, allowing users to inspect
 and modify the source code of the drawings to fit their needs.
 </p>
-
-<p>
-Please see <a href="/using.html">Using This Gallery</a> for instructions on
-how to include pictures from this gallery in your documents. To add a picture
-to this gallery please contact
-<a href="mailto:&#112;&#97;&#98;&#108;&#111;-&#112;&#105;&#101;@&#114;&#105;&#115;&#101;&#117;&#112;.&#110;&#101;&#116;">&#112;&#97;&#98;&#108;&#111;-&#112;&#105;&#101; [&#97;&#116;] &#114;&#105;&#115;&#101;&#117;&#112;.&#110;&#101;&#116;</a>.
-</p>
diff --git a/src/main.rs b/src/main.rs
@@ -34,8 +34,9 @@ const PAGE_TITLE: &str = "TikZ Gallery";
 const AUTHOR:     &str = "Pablo";
 const LICENSE:    &str = "GPLv3";
 
-/// HTML to be inserted in the beginning of index.html during generation
+/// HTML to be inserted in the beginning/end of index.html during generation
 const INTRO_MSG: &str = include_str!("intro.html");
+const OUTRO_MSG: &str = include_str!("outro.html");
 
 /// WebP image quality
 const WEBP_IMAGE_QUALITY: f32 = 90.0;
@@ -298,6 +299,7 @@ fn render_index(pics: &Vec<GalleryEntry>) -> io::Result<()> {
 
     writeln!(f, "</div>")?;
 
+    writeln!(f, "{}", OUTRO_MSG)?;
     writeln!(f, "</main>")?;
 
     writeln!(f, "<footer>")?;
diff --git a/src/outro.html b/src/outro.html
@@ -0,0 +1,35 @@
+<section id="using">
+<h2>Using This Gallery</h2>
+<p>
+For details on a figure in this gallery please access its entry page, where you
+will find information such as captions and pointers the original source, if
+available. In this page you may also find pointers to the author, as well
+licensing information.
+</p>
+<p>
+Most (<strong><em>but not all</em></strong>) of the drawings in here are
+licensed under free <a href="https://creativecommons.org/">Creative Commons</a>
+licenses, allowing users to modify and distribute their source code. Please
+verify the license terms of each specific figure before using it in your
+documents. See <a href="/include.html">Including the Figures</a> for
+instructions on how to include a given picture in your documents.
+</p>
+</section>
+
+<section id="contributing">
+<h2>Contributing</h2>
+<p>
+As of now, this gallery is run by <a href="https://pablopie.xyz">@pablo</a>. If
+you would like to add your drawings to here please contact
+<a href="mailto:&#112;&#97;&#98;&#108;&#111;-&#112;&#105;&#101;@&#114;&#105;&#115;&#101;&#117;&#112;.&#110;&#101;&#116;">&#112;&#97;&#98;&#108;&#111;-&#112;&#105;&#101; [&#97;&#116;] &#114;&#105;&#115;&#101;&#117;&#112;.&#110;&#101;&#116;</a>.
+</p>
+</section>
+
+<section id="other-galleries">
+<h2>Other Galleries</h2>
+<ul>
+<li><a href="https://texample.net/tikz/examples/">TeXample.net</a></li>
+<li><a href="https://tikz.net/">TikZ.net</a></li>
+<li><a href="https://tikz.fr/">TikZ.fr</a></li>
+</ul>
+</section>