Closed jackdewinter closed 1 month ago
This pull request updates the API documentation for the PyMarkdown project, enhancing its usability. The changes primarily focus on adding detailed documentation to various methods in the PyMarkdownApi
class, including parameter descriptions, return values, and exceptions. Additionally, there are some bug fixes and improvements to the test suite and related files.
classDiagram
class PyMarkdownApi {
- bool inherit_logging
+ str application_version()
+ int interface_version()
+ PyMarkdownApi enable_stack_trace()
+ PyMarkdownApi log_debug_and_above()
+ PyMarkdownApi log_info_and_above()
+ PyMarkdownApi log_warning_and_above()
+ PyMarkdownApi log_error_and_above()
+ PyMarkdownApi log_critical_and_above()
+ PyMarkdownApi log(str log_level)
+ PyMarkdownApi log_to_file(str log_file_path)
+ PyMarkdownApi add_plugin_path(str path_to_plugin)
+ PyMarkdownApi configuration_file_path(str path_to_config_file)
+ PyMarkdownApi set_boolean_property(str property_name, bool property_value)
+ PyMarkdownApi set_integer_property(str property_name, int property_value)
+ PyMarkdownApi set_string_property(str property_name, str property_value)
+ PyMarkdownApi set_property(str property_name, Any property_value)
+ PyMarkdownApi enable_strict_configuration()
+ PyMarkdownApi disable_rule_by_identifier(str rule_identifier)
+ PyMarkdownApi enable_rule_by_identifier(str rule_identifier)
+ PyMarkdownListPathResult list_path(str path_to_scan, bool recurse_if_directory, str alternate_extensions)
+ PyMarkdownScanPathResult scan_path(str path_to_scan, bool recurse_if_directory, Any alternate_extensions)
+ PyMarkdownFixResult fix_path(str path_to_scan, bool recurse_if_directory, Any alternate_extensions)
}
Change | Details | Files |
---|---|---|
Enhanced API documentation for PyMarkdownApi class methods |
|
pymarkdown/api.py docs/api.md |
Fixed issues with nested structures in Markdown parsing |
|
pymarkdown/plugins/rule_md_031.py test/rules/test_md031.py test/test_markdown_extra.py |
Updated test suite and related files |
|
test/api/test_api_scan.py publish/coverage.json publish/test-results.json prof_list.cmd |
Updated changelog and documentation generation |
|
newdocs/src/changelog.md utils/correct_pdoc_issues.py |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
2bce8ca
) to head (71b255c
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
https://github.com/jackdewinter/pymarkdown/issues/1226
Updating API documentation to make it easier to use.
Summary by Sourcery
Update API documentation and enhance markdown processing by adding detailed method descriptions and handling special cases in list spacing. Improve test coverage with new test cases for nested markdown structures. Update changelog and test result documentation to reflect recent changes.
Enhancements:
pymarkdown/api.py
by adding detailed descriptions of parameters, exceptions, and return values for various methods to improve usability and clarity.pymarkdown/plugins/rule_md_031.py
by adding new methods to handle special cases in list spacing and adjusting container adjustments for better markdown processing.Documentation:
docs/api.md
to include detailed method descriptions, parameters, exceptions, and return values, enhancing the clarity and usability of the documentation.Tests:
test/rules/test_md031.py
andtest/test_markdown_extra.py
to cover additional scenarios and ensure the correctness of markdown processing, particularly for nested structures and special cases.Chores:
publish/coverage.json
andpublish/test-results.json
to reflect the latest test coverage and results, including changes in the number of tests and skipped tests.newdocs/src/changelog.md
to include references to issues 1166, 1167, and 1168, documenting fixes for deeply nested markdown issues.