]> granicus.if.org Git - graphviz/commitdiff
Remove colors.html.j2, it's migrated to docs repo
authorMark Hansen <markhansen@google.com>
Tue, 2 Mar 2021 09:10:05 +0000 (20:10 +1100)
committerMark Hansen <markhansen@google.com>
Tue, 2 Mar 2021 09:10:05 +0000 (20:10 +1100)
Moved to graphviz.gitlab.io in
https://gitlab.com/graphviz/graphviz.gitlab.io/-/merge_requests/269

Fixes https://gitlab.com/graphviz/graphviz/-/issues/1968

doc/infosrc/Makefile
doc/infosrc/mkcolors.py [deleted file]
doc/infosrc/templates/colors.html.j2 [deleted file]

index 39b1974f14019508bfd5ab4fa8bc55bc5aebba0e..65beecdbbe38c1213a8f9721ec7aeac1001abf0d 100644 (file)
@@ -14,7 +14,6 @@
 #
 # The main products are web pages:
 #    arrows.html  - arrow_grammar
-#    colors.html  - color_names svgcolor_names brewer_colors
 #    shapes.html  - shapelist, html_grammar
 #
 # The files listed after each give the main data files used to
@@ -81,7 +80,7 @@ A2GIF= aa_box.gif aa_lbox.gif aa_rbox.gif aa_obox.gif aa_olbox.gif aa_orbox.gif\
 
 GIF = $(SGIF) $(AGIF) $(MGIF) $(A2GIF) $(XGIF)
 DOTS = html2.gv html3.gv html4.gv tee.gv
-HTML = colors.html \
+HTML = \
        grammar.html \
        shapes.html \
        arrows.html \
@@ -131,9 +130,6 @@ brewer_colors.html : mkcolors.awk brewer.awk ../../lib/common/brewer_colors
        (for f in $$(ls colortmp); do awk -f mkcolors.awk --single-line colortmp/$$f; done) > brewer_colors.html
        rm -rf colortmp
 
-colors.html : mkcolors.py x11_colors.html svg_colors.html brewer_colors.html
-       ./mkcolors.py x11_colors.html svg_colors.html brewer_colors.html > colors.html
-
 schema.html : jconvert.py graphviz_json_schema.json
        ./jconvert.py graphviz_json_schema.json schema.html
 
diff --git a/doc/infosrc/mkcolors.py b/doc/infosrc/mkcolors.py
deleted file mode 100755 (executable)
index 73c8f78..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env python3
-# Generates colors.html. Takes color files as args.
-
-import markupsafe
-import sys
-import templates
-
-template = templates.env().get_template('colors.html.j2')
-print(template.render(
-    x11_colors=markupsafe.Markup(open(sys.argv[1]).read()),
-    svg_colors=markupsafe.Markup(open(sys.argv[2]).read()),
-    brewer_colors=markupsafe.Markup(open(sys.argv[3]).read()),
-))
diff --git a/doc/infosrc/templates/colors.html.j2 b/doc/infosrc/templates/colors.html.j2
deleted file mode 100644 (file)
index 8adebc9..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<!--
-This is a generated document.  Do not edit.
--->
-<HTML VERSION=\"2.0\">
-<HEAD>
-<TITLE>Color Names</TITLE>
-</HEAD>
-<BODY BGCOLOR=#ffffff>
-
-<H1 ALIGN=CENTER>Color Names</H1>
-Color names are resolved in the context of a 
-<A HREF="attrs.html#d:colorscheme">color scheme</A>. Graphviz currently
-supports the <A HREF="#x11">X11 scheme</A>, 
-the <A HREF="#svg">SVG scheme</A>, and the <A HREF="#brewer">Brewer schemes</A>,
-with X11 being the default.
-<P>
-Color names are case-insensitive.
-<P>
-The Brewer color schemes below are covered by this <A HREF=#brewer_license>license</A>.
-<HR>
-<H2><A NAME="x11">The X11 color scheme</A></H2>
-{{ x11_colors }}
-<H2><A NAME="svg">The SVG color scheme</A></H2>
-{{ svg_colors }}
-<H2><A NAME="brewer">Brewer color schemes</A></H2>
-{{ brewer_colors }}
-<BR>
-<A NAME=brewer_license>Apache-Style Software License for ColorBrewer software and ColorBrewer
-Color Schemes, Version 1.1</A>
-<P>
-Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania
-State University. All rights reserved.
-<P>
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-<OL>
-<LI>Redistributions as source code must retain the above copyright notice,
-this list of conditions and the following disclaimer.
-<LI>The end-user documentation included with the redistribution, if any,
-must include the following acknowledgment:
-<P>
-<I>This product includes color specifications and designs developed
-by Cynthia Brewer (http://colorbrewer.org/)</I>.
-<P>
-Alternately, this acknowledgment may appear in the software itself, if and
-wherever such third-party acknowledgments normally appear.
-<LI>The name "ColorBrewer" must not be used to endorse or promote products
-derived from this software without prior written permission. For written
-permission, please contact Cynthia Brewer at cbrewer@psu.edu.
-<LI>Products derived from this software may not be called "ColorBrewer", nor
-may "ColorBrewer" appear in their name, without prior written permission
-of Cynthia Brewer.
-</OL>
-THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
-INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CYNTHIA
-BREWER, MARK HARROWER, OR THE PENNSYLVANIA STATE UNIVERSITY BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-</body>
-</html>