@@ -104,6 +104,13 @@ BindGlobal( "TheTypeOfDocumentationTreeExampleNodes",
104104 NewType( TheFamilyOfDocumentationTreeNodes,
105105 IsTreeForDocumentationExampleNodeRep ) );
106106
107+
108+ # # DeclareRepresentation
109+ DeclareRepresentation( " IsTreeForDocumentationChunkContentNodeRep" , IsTreeForDocumentationNodeRep, [ ] );
110+ BindGlobal( " TheTypeOfDocumentationTreeChunkContentNodes" , NewType( TheFamilyOfDocumentationTreeNodes, IsTreeForDocumentationChunkContentNodeRep ) );
111+
112+
113+
107114# ##################################
108115# #
109116# # Tools
@@ -230,6 +237,16 @@ InstallMethod( DocumentationChunk, [ IsTreeForDocumentation, IsString ],
230237 return node;
231238end );
232239
240+ # #
241+ InstallMethod( DocumentationChunkContent, [ IsObject ] ,
242+ function ( content )
243+ local node;
244+
245+ node := rec ( content := content );
246+ ObjectifyWithAttributes( node, TheTypeOfDocumentationTreeChunkContentNodes );
247+ return node;
248+ end );
249+
233250# #
234251InstallMethod( DocumentationManItem, [ IsTreeForDocumentation ] ,
235252 function ( tree )
@@ -588,6 +605,14 @@ InstallMethod( WriteDocumentation, [ IsTreeForDocumentationChunkNodeRep, IsStrea
588605 WriteDocumentation( Concatenation( " <#Include Label=\" " , Label( node ), " \" >" ), filestream, level_value );
589606end );
590607
608+ InstallMethod( WriteDocumentation, [ IsTreeForDocumentationChunkContentNodeRep, IsStream, IsInt ] ,
609+ function ( node, filestream, level_value )
610+ local s;
611+ for s in node!. content do
612+ AppendTo( filestream, s );
613+ od ;
614+ end );
615+
591616# #
592617InstallMethod( WriteDocumentation, [ IsTreeForDocumentationExampleNodeRep, IsStream, IsInt ] ,
593618 function ( node, filestream, level_value )
0 commit comments