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

📝 [open-zaak/open-zaak#1649] Document envvars #206

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

stevenbal
Copy link
Collaborator

@stevenbal stevenbal commented Jul 23, 2024

Fixes open-zaak/open-zaak#1649 partially

Changes

  • Document the envvars
  • Add CI job to check if envvar docs were updated

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.79%. Comparing base (ba752ea) to head (cefabbf).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #206   +/-   ##
=======================================
  Coverage   96.79%   96.79%           
=======================================
  Files         143      143           
  Lines        6272     6272           
=======================================
  Hits         6071     6071           
  Misses        201      201           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stevenbal stevenbal force-pushed the feature/envvar-documentation branch from cefabbf to a5fb7d8 Compare July 23, 2024 13:06
@stevenbal stevenbal changed the title Feature/envvar documentation 📝 [open-zaak/open-zaak#1649] Document envvars Jul 23, 2024
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@stevenbal stevenbal force-pushed the feature/envvar-documentation branch 2 times, most recently from af6279b to 9e12992 Compare July 23, 2024 14:14
.github/workflows/ci.yml Outdated Show resolved Hide resolved
run: pip install -r requirements/ci.txt pytest
- name: Generate environment variable documentation using OAf and check if it was updated
run: |
python src/manage.py generate_envvar_docs --file docs/installation/config.rst --exclude-group Celery
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's have a bash file with it, it can be useful for generating docs
Too bad it seems impossible to add it as sphinx event

.github/workflows/ci.yml Outdated Show resolved Hide resolved
replace the manual envvar docs with OAf `generate_envvar_docs`, this ensure that generic envvars that are used by every component are documented centrally in OAF and custom envvars can be documented in the code where they are declared
Copy link
Contributor

@annashamray annashamray left a comment

Choose a reason for hiding this comment

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

Looks nice and neat

@stevenbal stevenbal merged commit b5bcf33 into master Aug 22, 2024
17 checks passed
@stevenbal stevenbal deleted the feature/envvar-documentation branch August 22, 2024 12:18
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.

Automatically generate documentation from environment variables
3 participants