Skip to content

Commit 14eb1a8

Browse files
committed
check tutorial reducer type
1 parent d0e5178 commit 14eb1a8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

astropylibrarian/reducers/tutorial.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@
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-
if len(doc.cssselect(".jp-Notebook")) > 0:
38-
logger.debug("Using nbcollection tutorial reducer")
39-
return ReducedNbcollectionTutorial
40-
else:
41-
logger.debug("Using sphinx tutorial reducer")
42-
return ReducedSphinxTutorial
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
41+
# else:
42+
# logger.debug("Using sphinx tutorial reducer")
43+
# return ReducedSphinxTutorial
4344

4445

4546
class ReducedTutorial:

0 commit comments

Comments
 (0)