diff options
| -rw-r--r-- | doc/neps/index.rst.tmpl | 5 | ||||
| -rw-r--r-- | doc/neps/tools/build_index.py | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/neps/index.rst.tmpl b/doc/neps/index.rst.tmpl index 4c5b7766f..0299f8671 100644 --- a/doc/neps/index.rst.tmpl +++ b/doc/neps/index.rst.tmpl @@ -29,6 +29,9 @@ Meta-NEPs (NEPs about NEPs or Processes) nep-template + +{% if has_provisional %} + Provisional NEPs (provisionally accepted; interface may change) --------------------------------------------------------------- @@ -39,6 +42,8 @@ Provisional NEPs (provisionally accepted; interface may change) {{ tags['Title'] }} <{{ tags['Filename'] }}> {% endfor %} +{% endif %} + Accepted NEPs (implementation in progress) ------------------------------------------ diff --git a/doc/neps/tools/build_index.py b/doc/neps/tools/build_index.py index 7d159fdb3..51227a6f1 100644 --- a/doc/neps/tools/build_index.py +++ b/doc/neps/tools/build_index.py @@ -22,6 +22,7 @@ def nep_metadata(): meta_re = r':([a-zA-Z\-]*): (.*)' + has_provisional = False neps = {} print('Loading metadata for:') for source in sources: @@ -58,6 +59,8 @@ def nep_metadata(): f'NEP {nr} is Accepted/Rejected/Withdrawn but ' 'has no Resolution tag' ) + if tags['Status'] == 'Provisional': + has_provisional = True neps[nr] = tags @@ -95,7 +98,7 @@ def nep_metadata(): f'been set to Superseded' ) - return {'neps': neps} + return {'neps': neps, 'has_provisional': has_provisional} infile = 'index.rst.tmpl' |
