diff options
author | Matthias Bussonnier <bussonniermatthias@gmail.com> | 2020-05-30 17:13:04 -0700 |
---|---|---|
committer | Matthias Bussonnier <bussonniermatthias@gmail.com> | 2020-05-30 19:55:32 -0700 |
commit | 42bff3e91bb2cac6a84d285c2475734e55663be1 (patch) | |
tree | 9c49aafbca9c19c1db925964bbdfb2d1476a7975 /doc/neps/nep-0018-array-function-protocol.rst | |
parent | cbde47818a821ef951ca73e851579ca75d23a82b (diff) | |
download | numpy-42bff3e91bb2cac6a84d285c2475734e55663be1.tar.gz |
DOC: Add a NEP link to all neps.
Usefull for crossreferencing and intersphinx
Here is a snippet to update it if other neps are missing it:
In [1]: neps = !ls nep-0*
...: for nep in neps:
...: number = nep[6:8]
...: with open(nep, 'r') as f:
...: data = f.read()
...:
...: if f'.. _NEP{number}:' in data:
...: continue
...: with open(nep, 'w') as f:
...: f.write('.. _NEP'+number+':\n')
...: f.write(data)
...:
Diffstat (limited to 'doc/neps/nep-0018-array-function-protocol.rst')
-rw-r--r-- | doc/neps/nep-0018-array-function-protocol.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/neps/nep-0018-array-function-protocol.rst b/doc/neps/nep-0018-array-function-protocol.rst index 3147d8cee..0dcb0ff7e 100644 --- a/doc/neps/nep-0018-array-function-protocol.rst +++ b/doc/neps/nep-0018-array-function-protocol.rst @@ -1,3 +1,5 @@ +.. _NEP18: + ==================================================================== NEP 18 — A dispatch mechanism for NumPy's high level array functions ==================================================================== |