Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use root package.json values if not in apidoc key #1164

Merged
merged 2 commits into from
Feb 17, 2022
Merged

Conversation

gnickm
Copy link
Contributor

@gnickm gnickm commented Feb 16, 2022

This was the default behavior around 0.30 or so. I upgraded recently and found the behavior described in issue #1137 . This PR restores the original behavior of pulling version, name, and description from the root config but does it in a way that will not override anything set directly into the apidoc key. This is preferable when using package.json, since then we do not have to maintain two copies of each key (one in root and one in apidoc). This would be particularly annoying with a quickly changing version.

Make sure to read the contributing documentation.

IMPORTANT: Base your PR off the 'dev' branch and target that branch for merging.

gnickm and others added 2 commits February 15, 2022 20:10
This was the previous behavior in around 0.30 when using apidoc from package.json. I upgraded recently and my docs wound up blank. This is particularly helpful so we don't have to maintain two copies of version in our package.json.
Copy link
Collaborator

@NicolasCARPi NicolasCARPi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this looks good for me!

@NicolasCARPi NicolasCARPi merged commit 1d14ff9 into apidoc:dev Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants