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

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