From: Mark Hansen Date: Tue, 2 Mar 2021 09:10:05 +0000 (+1100) Subject: Remove colors.html.j2, it's migrated to docs repo X-Git-Tag: 2.47.0~12^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45878d0f463e877e6cf2d5924a38a9ba5f0c77b0;p=graphviz Remove colors.html.j2, it's migrated to docs repo Moved to graphviz.gitlab.io in https://gitlab.com/graphviz/graphviz.gitlab.io/-/merge_requests/269 Fixes https://gitlab.com/graphviz/graphviz/-/issues/1968 --- diff --git a/doc/infosrc/Makefile b/doc/infosrc/Makefile index 39b1974f1..65beecdbb 100644 --- a/doc/infosrc/Makefile +++ b/doc/infosrc/Makefile @@ -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 index 73c8f78b6..000000000 --- a/doc/infosrc/mkcolors.py +++ /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 index 8adebc972..000000000 --- a/doc/infosrc/templates/colors.html.j2 +++ /dev/null @@ -1,66 +0,0 @@ - - - - -Color Names - - - -

Color Names

-Color names are resolved in the context of a -color scheme. Graphviz currently -supports the X11 scheme, -the SVG scheme, and the Brewer schemes, -with X11 being the default. -

-Color names are case-insensitive. -

-The Brewer color schemes below are covered by this license. -


-

The X11 color scheme

-{{ x11_colors }} -

The SVG color scheme

-{{ svg_colors }} -

Brewer color schemes

-{{ brewer_colors }} -
-Apache-Style Software License for ColorBrewer software and ColorBrewer -Color Schemes, Version 1.1 -

-Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania -State University. All rights reserved. -

-Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: -

    -
  1. Redistributions as source code must retain the above copyright notice, -this list of conditions and the following disclaimer. -
  2. The end-user documentation included with the redistribution, if any, -must include the following acknowledgment: -

    -This product includes color specifications and designs developed -by Cynthia Brewer (http://colorbrewer.org/). -

    -Alternately, this acknowledgment may appear in the software itself, if and -wherever such third-party acknowledgments normally appear. -

  3. 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. -
  4. Products derived from this software may not be called "ColorBrewer", nor -may "ColorBrewer" appear in their name, without prior written permission -of Cynthia Brewer. -
-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. - -