summaryrefslogtreecommitdiff
path: root/doc/neps/tools/build_index.py
diff options
context:
space:
mode:
authorStephan Hoyer <shoyer@google.com>2018-07-01 14:31:35 -0700
committerStephan Hoyer <shoyer@google.com>2018-07-01 14:31:35 -0700
commit067cb067cb17a20422e51da908920a4fbb3ab851 (patch)
tree4b255406f8282639492035abb5cd3d84edb7f4be /doc/neps/tools/build_index.py
parente8dca047fbc23f0ed97af01ba791d5589fd0925e (diff)
downloadnumpy-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.py4
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: