Skip to content

Commit 61e2412

Browse files
committed
Only build htmlzip on RTD, fix do-nothing
1 parent 12a68e8 commit 61e2412

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.readthedocs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ sphinx:
55
configuration: docs/src/conf.py
66
fail_on_warning: false
77

8-
formats: all
8+
formats:
9+
- htmlzip
910

1011
python:
1112
version: "3.8"

src/sphinx_codeautolink/extension/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def parse_blocks(self, app, doctree):
6565

6666
def once_on_doctree_resolved(self, app):
6767
"""Clean source transforms and create code references."""
68-
if self.code_refs:
68+
if self.code_refs or self.do_nothing:
6969
return
7070

7171
for transforms in self.cache.transforms.values():

0 commit comments

Comments
 (0)