Skip to content

Commit

Permalink
more Print statements
Browse files Browse the repository at this point in the history
in the 3 argument method for `WriteDocumentation`
  • Loading branch information
ThomasBreuer committed May 11, 2023
1 parent afc77c8 commit 3ba192b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkg/JuliaInterface/makedoc.g
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,38 @@ Print( "AUTODOC_ExtractMyManualExamples: for loop, append to file ", name, "\n"
od;
end);

#############################################################################
InstallMethod( WriteDocumentation, [ IsTreeForDocumentation, IsDirectory, IsInt ],
function( tree, path_to_xmlfiles, level_value )
local stream, i;

Print( "WriteDocumentation with 3 arguments called\n" );
stream := AUTODOC_OutputTextFile( path_to_xmlfiles, _AUTODOC_GLOBAL_OPTION_RECORD.AutoDocMainFile );
AppendTo( stream, AUTODOC_XML_HEADER );
Print( "WriteDocumentation: after AppendTo\n" );
for i in tree!.content do
if not IsTreeForDocumentationNodeForChapterRep( i ) then
Error( "this should never happen" );
fi;
## FIXME: If there is anything else than a chapter, this will break!
Print( "before WriteDocumentation with 4 arguments\n" );
WriteDocumentation( i, stream, path_to_xmlfiles, level_value );
Print( "after WriteDocumentation with 4 arguments\n" );
od;

Print( "WriteDocumentation: before WriteChunks\n" );
WriteChunks( tree, path_to_xmlfiles, level_value );
Print( "WriteDocumentation: after WriteChunks\n" );

# Workaround for issue #65
if IsEmpty( tree!.content ) then
AppendTo( stream, " \n" );
fi;
Print( "WriteDocumentation: before CloseStream\n" );
CloseStream( stream );
Print( "leave WriteDocumentation with 3 arguments\n" );
end );

#############################################################################

AutoDoc(rec(
Expand Down

0 comments on commit 3ba192b

Please sign in to comment.