Blame SOURCES/fontforge-20200314-minor-backward-compatible-sphinx-changes.patch

1c70a4
From 1a03ca2de0b4c99ee72b330b56e89cc90fe773ae Mon Sep 17 00:00:00 2001
1c70a4
From: Jeremy Tan <jtanx@outlook.com>
1c70a4
Date: Sat, 4 Apr 2020 11:43:34 +1100
1c70a4
Subject: [PATCH] Minor changes for backwards compatibility with older versions
1c70a4
 of Sphinx
1c70a4
1c70a4
Closes #4256
1c70a4
---
1c70a4
 doc/sphinx/conf.py                      |  3 +++
1c70a4
 doc/sphinx/techref/splinefont.rst       | 26 ++++++++++++-------------
1c70a4
 doc/sphinx/ui/misc/fontforge-themes.rst |  2 +-
1c70a4
 3 files changed, 17 insertions(+), 14 deletions(-)
1c70a4
1c70a4
diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py
1c70a4
index 4b22e2eaf6..f2df68676e 100644
1c70a4
--- a/doc/sphinx/conf.py
1c70a4
+++ b/doc/sphinx/conf.py
1c70a4
@@ -68,6 +68,9 @@
1c70a4
 # Don't copy source rst files into the output
1c70a4
 html_copy_source = False
1c70a4
 
1c70a4
+# Set the main page
1c70a4
+master_doc = 'index'
1c70a4
+
1c70a4
 # Custom roles must be in the prolog, not the epilog!
1c70a4
 rst_prolog = '''
1c70a4
 .. role:: small
1c70a4
diff --git a/doc/sphinx/techref/splinefont.rst b/doc/sphinx/techref/splinefont.rst
1c70a4
index 98248f7a5e..60399d3912 100644
1c70a4
--- a/doc/sphinx/techref/splinefont.rst
1c70a4
+++ b/doc/sphinx/techref/splinefont.rst
1c70a4
@@ -195,7 +195,7 @@ The bounding box of a :ref:`Spline <splinefont.Spline>`,
1c70a4
 :ref:`SplineChar <splinefont.SplineChar>`, :ref:`RefChar <splinefont.RefChar>`,
1c70a4
 :ref:`Image <splinefont.ImageList>`, or whatever else needs a bounding box.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.BDFFloat
1c70a4
 
1c70a4
    typedef struct bdffloat {
1c70a4
@@ -206,7 +206,7 @@ The bounding box of a :ref:`Spline <splinefont.Spline>`,
1c70a4
 
1c70a4
 The floating selection in a :ref:`BDFChar <splinefont.BDFChar>`.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.Undoes
1c70a4
 
1c70a4
    typedef struct undoes {
1c70a4
@@ -277,7 +277,7 @@ both the splines and the bitmaps of a character.
1c70a4
 ut_mult is used when doing a copy from the FontView where you are copying more
1c70a4
 than one character.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.BDFChar
1c70a4
 
1c70a4
    typedef struct bdfchar {
1c70a4
@@ -318,7 +318,7 @@ represented by a byte rather than a bit. There is a clut for this in the BDFFont
1c70a4
 The last thing in the BDFChar is a (/an optional) floating selection. Only
1c70a4
 present if the user has made a selection or done a paste or something like that.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.BDFFont
1c70a4
 
1c70a4
    typedef struct bdffont {
1c70a4
@@ -345,7 +345,7 @@ contains a count of the number of entries in the array, and then the array
1c70a4
 itself. Currently the number of entries here is always 16, but that could
1c70a4
 change.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.SplinePoint
1c70a4
 
1c70a4
    enum pointtype { pt_curve, pt_corner, pt_tangent };
1c70a4
@@ -405,7 +405,7 @@ drawing it. They are cached so they don't need to be regenerated each time.
1c70a4
 There's a different set of lines for every scale (as there is a different amount
1c70a4
 of visible detail). They get freed and regenerated if the Spline changes.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.Spline
1c70a4
 
1c70a4
    typedef struct spline1d {
1c70a4
@@ -439,7 +439,7 @@ some are used in other places too.
1c70a4
 The Spline1D structures give the equations for the x and y coordinates
1c70a4
 respectively (splines[0] is for x, splines[1] is for y).
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.SplinePointList
1c70a4
 
1c70a4
    typedef struct splinepointlist {
1c70a4
@@ -463,7 +463,7 @@ to). A SplinePointList is a connected path. There are three cases:
1c70a4
 Generally a series of paths will make up a character, and they are linked
1c70a4
 together on the next field.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.RefChar
1c70a4
 
1c70a4
    typedef struct refchar {
1c70a4
@@ -498,7 +498,7 @@ themselves). The selected field indicates that the reference is selected. The bb
1c70a4
 field provides a transformed bounding box. And the sc field points to the
1c70a4
 SplineChar we are referring to.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.KernPair
1c70a4
 
1c70a4
    typedef struct kernpair {
1c70a4
@@ -514,7 +514,7 @@ offset between them (or rather the difference from what their respective left
1c70a4
 and right bearings would lead you to believe it should be). Next points to the
1c70a4
 next kernpair.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.Hints
1c70a4
 
1c70a4
    typedef struct hints {
1c70a4
@@ -532,7 +532,7 @@ y space) of where the stem starts, and width is how long it is. Width may be
1c70a4
 negative (in which case base is where the stem ends). Next points to the next
1c70a4
 hint for the character.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.ImageList
1c70a4
 
1c70a4
    typedef struct imagelist {
1c70a4
@@ -551,7 +551,7 @@ not support any other transformations on images). The bounding box is after the
1c70a4
 transformations have been applied. The next field points to the next image, and
1c70a4
 selected indicates whether this one is selected or not.
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.SplineChar
1c70a4
 
1c70a4
    typedef struct splinechar {
1c70a4
@@ -623,7 +623,7 @@ follow this one. For instance the combination "VA" might need kerning, then the
1c70a4
 SplineChar representing "V" would have a pointer to a
1c70a4
 :ref:`KernPair <splinefont.KernPair>` with data on "A".
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: splinefont.SplineFont
1c70a4
 
1c70a4
    typedef struct splinefont {
1c70a4
diff --git a/doc/sphinx/ui/misc/fontforge-themes.rst b/doc/sphinx/ui/misc/fontforge-themes.rst
1c70a4
index 8df505634f..5bf3f6edd5 100644
1c70a4
--- a/doc/sphinx/ui/misc/fontforge-themes.rst
1c70a4
+++ b/doc/sphinx/ui/misc/fontforge-themes.rst
1c70a4
@@ -4,7 +4,7 @@ FontForge color schemes
1c70a4
 The following are some suggestions for color schemes. You simply copy these into
1c70a4
 your ~/.Xdefaults file and then run
1c70a4
 
1c70a4
-.. code-block::
1c70a4
+.. code-block:: default
1c70a4
    :name: fontforge-themes.shell
1c70a4
 
1c70a4
    $ xrdb ~/.Xdefaults