Skip to content

Commit

Permalink
sphinx_lesson/exerciselist: Set default includenodes and excludenodes
Browse files Browse the repository at this point in the history
- Ref: #107
- There was a problem where the includenodes and excludenodes
  attributes aren't set in singlehtml and pdf builds.  I guess it's
  something about the order of initialzation being wrong.  Anyway, in
  existing builds these aren't correct and the exercise list appears
  empty.  This fixes builds and then we can fix things more later.
  • Loading branch information
rkdarst committed Oct 23, 2024
1 parent fbdf2a3 commit 074a8b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sphinx_lesson/exerciselist.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class exerciselist(nodes.General, nodes.Element):
Gets replaced with contents in the second pass.
"""
include_classes = frozenset()
exclude_classes = frozenset()
def __init__(self, *args,
include_classes=DEFAULT_EXERCISELIST_CLASSES,
exclude_classes=DEFAULT_EXERCISELIST_CLASSES_EXCLUDE):
Expand Down

0 comments on commit 074a8b2

Please sign in to comment.