Skip to content

Commit 00f9279

Browse files
committed
Build director: add pre/post build to the flow
1 parent a52fa2c commit 00f9279

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

readthedocs/doc_builder/director.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,18 @@ def build(self):
169169
3. build PDF
170170
4. build ePub
171171
"""
172+
173+
self.pre_build()
174+
172175
self.data.outcomes = defaultdict(lambda: False)
173176
self.data.outcomes["html"] = self.build_html()
174177
self.data.outcomes["search"] = self.is_type_sphinx()
175178
self.data.outcomes["localmedia"] = self.build_htmlzip()
176179
self.data.outcomes["pdf"] = self.build_pdf()
177180
self.data.outcomes["epub"] = self.build_epub()
178181

182+
self.post_build()
183+
179184
after_build.send(
180185
sender=self.data.version,
181186
)

0 commit comments

Comments
 (0)