[Sphinx] Support older recommonmark versions.
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 29 Jun 2020 16:44:26 +0000 (09:44 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 29 Jun 2020 16:48:34 +0000 (09:48 -0700)
commit29ea1b4baaa8b9ec5dbd25f91693e422c958db2d
tree137ad5259dccd62015bd74258e8bb2f43e409f4e
parentda940b1a2d06382f11ead4369a48edf617697183
[Sphinx] Support older recommonmark versions.

The "new way" of enabling recommonmark is only supported in recommonmark
0.5 and later. Use the deprecated approach with versions of Sphinx that
still support it.

If I understand correctly there's no way to use older versions of
recommonmark (<0.5) with newer versions of Sphinx (>3.0) because the old
approach got removed.

Differential revision: https://reviews.llvm.org/D75284
llvm/docs/conf.py