File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -692,6 +692,7 @@ def build_docs(self):
692
692
version = self .version ,
693
693
max_lock_age = getattr (settings , 'REPO_LOCK_SECONDS' , 30 )):
694
694
outcomes ['html' ] = self .build_docs_html ()
695
+ outcomes ['search' ] = self .build_docs_search ()
695
696
outcomes ['localmedia' ] = self .build_docs_localmedia ()
696
697
outcomes ['pdf' ] = self .build_docs_pdf ()
697
698
outcomes ['epub' ] = self .build_docs_epub ()
@@ -723,6 +724,14 @@ def build_docs_html(self):
723
724
724
725
return success
725
726
727
+ def build_docs_search (self ):
728
+ """Build search data."""
729
+ # TODO rely on config parameter here when Project.documentation_type is
730
+ # removed in #4638. Mkdocs has no search currently
731
+ if self .project .documentation_type == 'mkdocs' :
732
+ return False
733
+ return self .build_search
734
+
726
735
def build_docs_localmedia (self ):
727
736
"""Get local media files with separate build."""
728
737
if 'htmlzip' not in self .config .formats :
You can’t perform that action at this time.
0 commit comments