add api-path to project configuration #112
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First, thanks for this very helpful MkDocs plugin!
We have been using it for including our C++ code documentation which has been working well but is missing a useful feature. We generally put auto-generated code documentation in a sub-path of our main documentation to keep it organized, but MkDoxy currently always uses the project name as the output path.
To enable customizing the output path I made
api-path
a MkDoxy configurable setting.I am also using the
src-dirs
as part of the generated API path but that could be removed. Some other options that could work is instead of:are either:
or:
and assume the user will put the full path for each project in the
api-path
configuration setting if they want to override the default.Any of these would work for us. Is there any interest in merging this feature?
Summary by Sourcery
This pull request adds a new 'api-path' configuration setting to the MkDoxy plugin, enabling users to customize the output path for auto-generated code documentation. The API path generation logic has been enhanced to incorporate this new setting along with 'src-dirs' for improved documentation organization.