Skip to content

Commit 2672fe3

Browse files
committed
force use ReducedJupyterBookTutorial
1 parent 3a5faaa commit 2672fe3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

astropylibrarian/reducers/tutorial.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@
3333

3434
def get_tutorial_reducer(html_page: HtmlPage) -> Type[ReducedTutorial]:
3535
"""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
4142
# else:
4243
# logger.debug("Using sphinx tutorial reducer")
4344
# return ReducedSphinxTutorial

0 commit comments

Comments
 (0)