Commit 48fc421 1 parent 8170935 commit 48fc421 Copy full SHA for 48fc421
File tree 1 file changed +5
-17
lines changed
mathics_django/web/controllers
1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ def check_for_pymathics_load():
31
31
print ("XXX refresh pymathics doc" , pymathics_modules )
32
32
new_modules = pymathics_modules - seen_pymathics_modules
33
33
for new_module in new_modules :
34
- title , _ = get_module_doc (new_module )
35
34
mathics3_module_part = documentation .parts_by_slug .get (
36
35
"mathics3-modules" , None
37
36
)
@@ -46,25 +45,14 @@ def check_for_pymathics_load():
46
45
seen_pymathics_modules = copy (pymathics_modules )
47
46
return
48
47
49
- # The part already exists. Lets add the new chapter.
50
-
51
- chapter = mathics3_module_part .doc .gather_chapter_doc_fn (
52
- mathics3_module_part ,
53
- title ,
54
- mathics3_module_part .doc ,
55
- )
56
- from trepan .api import debug
57
-
58
- debug ()
59
- submodule_names_seen = set ()
60
- chapter .doc .doc_chapter (
48
+ # The "Mathics3 modules" part already exists. Lets add the new chapter.
49
+ chapter = documentation .doc_chapter (
61
50
new_module ,
62
51
mathics3_module_part ,
63
- pymathics_builtins_by_module ,
64
- seen_pymathics_modules ,
65
- submodule_names_seen ,
52
+ pymathics_builtins_by_module
66
53
)
67
- chapter .get_tests ()
54
+ mathics3_module_part .chapters .append (chapter )
55
+
68
56
seen_pymathics_modules = copy (pymathics_modules )
69
57
pass
70
58
You can’t perform that action at this time.
0 commit comments