From a3cfdffa9b91322bca2ba97db47441b237f94007 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 9 Sep 2018 19:50:49 +0900 Subject: [PATCH 1/2] Run epubcheck on Circle CI --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6b5c7379b..9ded24cff 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,8 @@ jobs: build: docker: - image: sphinxdoc/docker-ci + environment: + DO_EPUBCHECK: 1 working_directory: /sphinx steps: - checkout From 081dcd23c156cb65ab4aaa21e1a70437a4ee4884 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 3 Feb 2019 22:42:58 +0900 Subject: [PATCH 2/2] test: Remove search link from test-root To make EPUB output valid, remove a search link from test-root. --- tests/roots/test-root/index.txt | 1 - tests/test_build_html.py | 1 - 2 files changed, 2 deletions(-) diff --git a/tests/roots/test-root/index.txt b/tests/roots/test-root/index.txt index 508e14077..e39c958b3 100644 --- a/tests/roots/test-root/index.txt +++ b/tests/roots/test-root/index.txt @@ -37,7 +37,6 @@ Indices and tables * :ref:`genindex` * :ref:`modindex` -* :ref:`search` References ========== diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 36dae0d0e..e949f1157 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -357,7 +357,6 @@ def test_html4_output(app, status, warning): "[@class='reference external']", ''), (".//li/p/a[@href='genindex.html']/span", 'Index'), (".//li/p/a[@href='py-modindex.html']/span", 'Module Index'), - (".//li/p/a[@href='search.html']/span", 'Search Page'), # custom sidebar only for contents (".//h4", 'Contents sidebar'), # custom JavaScript