From ff20af41fd363f9520f5e0083d7a49051353cd1c Mon Sep 17 00:00:00 2001 From: Ethan Harris Date: Thu, 2 Dec 2021 11:46:57 +0000 Subject: [PATCH] Fix mathjax in RTD build (#10889) * Update docs.txt * Update conf.py * Update .readthedocs.yml --- .readthedocs.yml | 10 +++++++++- requirements/docs.txt | 6 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index c148562e4f39f..5e60740931932 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -38,9 +38,17 @@ formats: - htmlzip #- pdf +build: + os: ubuntu-20.04 + tools: + python: "3.9" + apt_packages: + - texlive-latex-extra + - dvipng + - texlive-pictures + # Optionally set the version of Python and requirements required to build your docs python: - version: 3.7 install: - requirements: requirements/docs.txt #- requirements: requirements.txt diff --git a/requirements/docs.txt b/requirements/docs.txt index 40b7b5919f90d..4f8635c5a4694 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -1,9 +1,9 @@ -sphinx>=4.0,<4.1 -myst-parser +sphinx>=4.0,<5.0 +myst-parser>=0.15 nbsphinx>=0.8.5 ipython[notebook] pandoc>=1.0 -docutils>=0.16,<0.18 # Sphinx not yet compatible with docutils >= 0.18 +docutils>=0.16 sphinxcontrib-fulltoc>=1.0 sphinxcontrib-mockautodoc https://github.com/PyTorchLightning/lightning_sphinx_theme/archive/master.zip#egg=pt-lightning-sphinx-theme