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

Add defaults scraping to settings docs updater #6406

Merged

Conversation

nmaggioni
Copy link
Contributor

@nmaggioni nmaggioni commented Dec 12, 2020

Some default values in the settings' YAML spec didn't match the actual values in the code. This PR updates them and adds a new {-d,--defaults} option to the updater script to check for such mismatches.

Since this check is done by scraping the C sources it's not effective when default values aren't directly referenced in their page reset structs, but it's better than nothing. Exact matches would require far more complex parsing strategies.

If this proves to be useful it could be added to the docs' CI workflow.

As of 01f0ff7, this PR brings docs compatibility with #6595.

@nmaggioni nmaggioni force-pushed the nm_settings_md_check_defaults branch from 9c8ce6f to 688485e Compare March 31, 2021 13:12
nmaggioni added a commit to nmaggioni/inav that referenced this pull request Mar 31, 2021
@nmaggioni nmaggioni force-pushed the nm_settings_md_check_defaults branch from 01f0ff7 to acabefe Compare April 7, 2021 16:01
@nmaggioni nmaggioni force-pushed the nm_settings_md_check_defaults branch from d5ee1d6 to 0db0725 Compare April 7, 2021 16:13
Copy link
Collaborator

@shellixyz shellixyz left a comment

Choose a reason for hiding this comment

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

LGTM

@shellixyz shellixyz merged commit c26a676 into iNavFlight:master Apr 7, 2021
@nmaggioni nmaggioni deleted the nm_settings_md_check_defaults branch April 7, 2021 16:41
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