Skip to content

Commit 2142048

Browse files
committed
fix loading documentation
1 parent 6e85fbe commit 2142048

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ubuntu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-22.04
1212
strategy:
1313
matrix:
14-
python-version: ['3.7', '3.8', '3.9', '3.10']
14+
python-version: ['3.8', '3.9', '3.10', '3.11']
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Set up Python ${{ matrix.python-version }}

mathics_django/docpipeline.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,6 @@ def main():
598598
if args.logfilename:
599599
logfile = open(args.logfilename, "wt")
600600

601-
global documentation
602-
documentation = MathicsDjangoDocumentation()
603601

604602
# LoadModule Mathics3 modules
605603
if args.pymathics:
@@ -614,7 +612,11 @@ def main():
614612
else:
615613
print(f"Mathics3 Module {module_name} loaded")
616614

617-
documentation.gather_doctest_data()
615+
# MathicsDjangoDocumentation load the documentation automatically.
616+
# It must be loaded after loading modules.
617+
global documentation
618+
documentation = MathicsDjangoDocumentation()
619+
618620

619621
if args.sections:
620622
sections = set(args.sections.split(","))

0 commit comments

Comments
 (0)