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

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