diff options
author | Stephan Hoyer <shoyer@google.com> | 2018-07-01 14:31:35 -0700 |
---|---|---|
committer | Stephan Hoyer <shoyer@google.com> | 2018-07-01 14:31:35 -0700 |
commit | 067cb067cb17a20422e51da908920a4fbb3ab851 (patch) | |
tree | 4b255406f8282639492035abb5cd3d84edb7f4be /doc/neps/tools/build_index.py | |
parent | e8dca047fbc23f0ed97af01ba791d5589fd0925e (diff) | |
download | numpy-067cb067cb17a20422e51da908920a4fbb3ab851.tar.gz |
DOC: include NEP number on each NEP page
Diffstat (limited to 'doc/neps/tools/build_index.py')
-rw-r--r-- | doc/neps/tools/build_index.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/neps/tools/build_index.py b/doc/neps/tools/build_index.py index 65225c995..d9c4f690b 100644 --- a/doc/neps/tools/build_index.py +++ b/doc/neps/tools/build_index.py @@ -40,6 +40,10 @@ def nep_metadata(): tags['Title'] = lines[1].strip() tags['Filename'] = source + if not tags['Title'].startswith(f'NEP {nr} — '): + raise RuntimeError( + f'Title for NEP {nr} does not start with "NEP {nr} — " ' + '(note that — here is a special, enlongated dash)') if tags['Status'] in ('Accepted', 'Rejected', 'Withdrawn'): if not 'Resolution' in tags: |