Skip to content

Commit

Permalink
🔧 Add necessary settings for autorisaties/notificaties.md generation
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Dec 11, 2020
1 parent 4408f04 commit 18f3628
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/drc/conf/api.py
@@ -1,3 +1,5 @@
import os

from vng_api_common.conf.api import * # noqa - imports white-listed

API_VERSION = "1.0.1"
Expand Down Expand Up @@ -46,3 +48,7 @@
brc_repo = "vng-Realisatie/gemma-besluitregistratiecomponent"
brc_commit = "87dde6338e6417f307d1d935983ce50466d77f48"
BRC_API_SPEC = f"https://raw.githubusercontent.com/{brc_repo}/{brc_commit}/src/openapi.yaml" # noqa

SELF_REPO = "VNG-Realisatie/gemma-documentregistratiecomponent"
SELF_BRANCH = os.getenv("SELF_BRANCH") or API_VERSION
GITHUB_API_SPEC = f"https://raw.githubusercontent.com/{SELF_REPO}/{SELF_BRANCH}/src/openapi.yaml" # noqa
3 changes: 3 additions & 0 deletions src/drc/utils/context_processors.py
Expand Up @@ -10,6 +10,9 @@ def settings(request):
"SITE_TITLE",
"API_VERSION",
"GIT_SHA",
"GITHUB_API_SPEC",
"SELF_REPO",
"SELF_BRANCH",
)

return {
Expand Down

0 comments on commit 18f3628

Please sign in to comment.