File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
astropylibrarian/reducers Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 33
33
34
34
def get_tutorial_reducer (html_page : HtmlPage ) -> Type [ReducedTutorial ]:
35
35
"""Get the reducer appropriate for the tutorial's structure."""
36
- # doc = html_page.parse()
37
- return ReducedNbcollectionTutorial
38
- # if len(doc.cssselect(".jp-Notebook")) > 0:
39
- # logger.debug("Using nbcollection tutorial reducer")
40
- # return ReducedNbcollectionTutorial
36
+ logger .debug ("Using jupyterbook tutorial reducer" )
37
+ return ReducedJupyterBookTutorial
38
+ # doc = html_page.parse() # TODO
39
+ # if "tutorial--" in doc.cssselect("*")[0].text_content():
40
+ # logger.debug("Using jupyterbook tutorial reducer")
41
+ # return ReducedJupyterBookTutorial
41
42
# else:
42
43
# logger.debug("Using sphinx tutorial reducer")
43
44
# return ReducedSphinxTutorial
You can’t perform that action at this time.
0 commit comments