Move general utility functions to the utility module
This pull request moves the general utility functions _fit_row_length and _markdown_table from the Python documentation generator core module to the utility module. The trailing underscores were removed from their names as they are no longer internal functions of the Python documentation generator core module. All imports were updated and test files were moved the the appropriate new location. The testing functions were renamed to indicate that the utility functions are not internal.
Motivation
Those functions were general utility functions. They are not specific to the Python documentation generator and may also be required by documentation generators for other languages.
# Move general utility functions to the utility module
This pull request moves the general utility functions `_fit_row_length` and `_markdown_table` from the Python documentation generator core module to the utility module. The trailing underscores were removed from their names as they are no longer internal functions of the Python documentation generator core module. All imports were updated and test files were moved the the appropriate new location. The testing functions were renamed to indicate that the utility functions are not internal.
## Motivation
Those functions were general utility functions. They are not specific to the Python documentation generator and may also be required by documentation generators for other languages.
## Related issues
Closes #72
jakob.scheid
added this to the 0.2.3 milestone 2026-10-21 13:06:59 +02:00
Moved the _fit_row_length function from the Python generator core module
to fit_row_length in the utility module. The public exports definition
of the utility module and all imports were updated.
The test module was also moved to the appropriate new path and the
testing functions were renamed.
Moved the markdown_table utility function from the Python documentation
generator core module to the utility module. The public exports
definition of the utility module and all imports were updated.
The test module was also moved to the appropriate new path and the
testing functions were renamed.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Move general utility functions to the utility module
This pull request moves the general utility functions
_fit_row_lengthand_markdown_tablefrom the Python documentation generator core module to the utility module. The trailing underscores were removed from their names as they are no longer internal functions of the Python documentation generator core module. All imports were updated and test files were moved the the appropriate new location. The testing functions were renamed to indicate that the utility functions are not internal.Motivation
Those functions were general utility functions. They are not specific to the Python documentation generator and may also be required by documentation generators for other languages.
Related issues
Closes #72