Goto Chapter: Top 1 2 Ind
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 

2 The main functions in the AutoDoc Package
 2.1 The functions

2 The main functions in the AutoDoc Package

2.1 The functions

2.1-1 AUTOMATIC_DOCUMENTATION
‣ AUTOMATIC_DOCUMENTATION( global variable )

This global variable stores all the streams and some additional data, like chapter names.

2.1-2 CreateAutoDoc
‣ CreateAutoDoc( package_name, documentation_file, path_to_xml_file, create_full_docu[, section_intros] )( function )

Returns: true

This is the main method of the package. After loading the package, run it with the name of the pacckage you want to create a documentation of as first argument, with an (empty) filepath (everything will be overwritten) as second argument. Make sure you have included this file as source if you run your GAPDoc documentation creating script. The third argument is a path to the directory where it can store the GAPDoc XML files. The path MUST end with a slash. It will produce several files out of the Declare*WithDocumentation declarations you have used in your package package_name, and one named AutoDocMainFile.xml, which you can simply include to your documentation. create_full_docu can either be true or false. If true, a full documentation with title file is created. The only thing left for you to do is run GAPDoc and provide a bibliography. section_intros is optional, it must be a list containing lists of of either two or three strings. If two are given, first one must be a chapter title, with underscores instead of spaces, and the second one a string which will be displayed in the documentation at the beginning of the chapter. If three are given, first one must be a chapter, second a section, third the description.

2.1-3 DeclareCategoryWithDocumentation
‣ DeclareCategoryWithDocumentation( name, filter, description[, arguments][, chapter_and_section] )( function )

Returns: true

This method declares a category, like DeclareCategory( name, filter ) would do. The description string is added to the documentation if CreateAutoDoc is called. It can either be a string or a list of strings. Lists will be concatenated with a space between them. arguments is an optional string which is displayed in the documentation as attribute of the tester. chapter_and_section is an optional arguments which must be a list with two strings, naming the chapter and the section in which this category should be displayed in the automatic generated documentation. There are no spaces allowed in this string, underscores will be converted to spaces in the header of the chapter or the section.

2.1-4 DeclareRepresentationWithDocumentation
‣ DeclareRepresentationWithDocumentation( name, filter, list_of_req_entries, description[, arguments][, chapter_and_section] )( function )

Returns: true

This method declares a representation, like DeclareRepresentation( name, filter, list_of_req_entries ) would do. The description string is added to the documentation if CreateAutoDoc is called. It can either be a string or a list of strings. Lists will be concatenated with a space between them. arguments is an optional string which is displayed in the documentation as attribute of the tester. chapter_and_section is an optional arguments which must be a list with two strings, naming the chapter and the section in which this category should be displayed in the automatic generated documentation. There are no spaces allowed in this string, underscores will be converted to spaces in the header of the chapter or the section.

2.1-5 DeclareOperationWithDocumentation
‣ DeclareOperationWithDocumentation( name, list_of_filters, description, return_value[, arguments][, chapter_and_section] )( function )

Returns: true

This method declares a operation, like DeclareOperation( name, list_of_filters ) would do. The description string is added to the documentation if CreateAutoDoc is called. It can either be a string or a list of strings. Lists will be concatenated with a space between them. return_value is a string displayed as the return value of the method. It is not optional. arguments is an optional string which is displayed in the documentation as attributes of the operation. chapter_and_section is an optional arguments which must be a list with two strings, naming the chapter and the section in which this method should be displayed in the automatic generated documentation. There are no spaces allowed in this string, underscores will be converted to spaces in the header of the chapter or the section.

2.1-6 InstallMethodWithDocumentation
‣ InstallMethodWithDocumentation( name, short_descr, list_of_filters, func, description, return_value[, arguments][, chapter_and_section] )( function )

Returns: true

This method declares a operation, like InstallMethod( name, short_descr, list_of_filters, func ) would do. The description string is added to the documentation if CreateAutoDoc is called. It can either be a string or a list of strings. Lists will be concatenated with a space between them. return_value is a string displayed as the return value of the method. It is not optional. arguments is an optional string which is displayed in the documentation as attributes of the operation. chapter_and_section is an optional arguments which must be a list with two strings, naming the chapter and the section in which this method should be displayed in the automatic generated documentation. There are no spaces allowed in this string, underscores will be converted to spaces in the header of the chapter or the section.

2.1-7 DeclareAttributeWithDocumentation
‣ DeclareAttributeWithDocumentation( name, filter, description, return_value[, argument][, chapter_and_section] )( function )

Returns: true

This method declares an attribute, like DeclareAttribute( name, filter ) would do. The description string is added to the documentation if CreateAutoDoc is called. It can either be a string or a list of strings. Lists will be concatenated with a space between them. return_value is a string displayed as the return value of the attribute. It is not optional. argument is an optional string which is displayed in the documentation as attribute of the attribute. chapter_and_section is an optional arguments which must be a list with two strings, naming the chapter and the section in which this attribute should be displayed in the automatic generated documentation. There are no spaces allowed in this string, underscores will be converted to spaces in the header of the chapter or the section.

2.1-8 DeclarePropertyWithDocumentation
‣ DeclarePropertyWithDocumentation( name, filter, description[, arguments][, chapter_and_section] )( function )

Returns: true

This method declares a property, like DeclareProperty( name, filter ) would do. The description string is added to the documentation if CreateAutoDoc is called. It can either be a string or a list of strings. Lists will be concatenated with a space between them. arguments is an optional string which is displayed in the documentation as attribute of the tester. chapter_and_section is an optional arguments which must be a list with two strings, naming the chapter and the section in which this property should be displayed in the automatic generated documentation. There are no spaces allowed in this string, underscores will be converted to spaces in the header of the chapter or the section.

2.1-9 DeclareGlobalFunctionWithDocumentation
‣ DeclareGlobalFunctionWithDocumentation( name, description, return_value[, arguments][, chapter_and_section] )( function )

Returns: true

This method declares a global function like DeclareGlobalFunction( name ) would do. The description string is added to the documentation if CreateAutoDoc is called. It can either be a string or a list of strings. Lists will be concatenated with a space between them.return_value is a string displayed as the return value of the function. It is not optional. arguments is an optional string which is displayed in the documentation as attributes of the operation. chapter_and_section is an optional arguments which must be a list with two strings, naming the chapter and the section in which this function should be displayed in the automatic generated documentation. There are no spaces allowed in this string, underscores will be converted to spaces in the header of the chapter or the section.

2.1-10 DeclareGlobalVariableWithDocumentation
‣ DeclareGlobalVariableWithDocumentation( name, description[, chapter_and_section] )( function )

Returns: true

This method declares a global variable like DeclareGlobalVariable( name ) would do. The description string is added to the documentation if CreateAutoDoc is called. It can either be a string or a list of strings. Lists will be concatenated with a space between them. chapter_and_section is an optional arguments which must be a list with two strings, naming the chapter and the section in which this variable should be displayed in the automatic generated documentation. There are no spaces allowed in this string, underscores will be converted to spaces in the header of the chapter or the section.

 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 
Goto Chapter: Top 1 2 Ind

generated by GAPDoc2HTML