Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-39334: FIX: Deprecated sphinx index notations. #18004

Open
wants to merge 1 commit into
base: master
from

Conversation

@JulienPalard
Copy link
Member

JulienPalard commented Jan 14, 2020

I used:

sed -i 's/^\([[:space:]]*\)\.\. index:: \(module\|keyword\|operator\|object\|exception\|statement\|builtin\): \(.*\)$/\1.. index:: pair: \2; \3/' Doc/**/*.rst
sed -i '/^[[:space:]]*\.\.[[:space:]]index::/,/^$/{s/^\([[:space:]]\+\)\(! \)\?\(module\|keyword\|operator\|object\|exception\|statement\|builtin\): \(.*\)$/\1pair: \3; \2\4/}' Doc/**/*.rst

see: sphinx-doc/sphinx#6970

https://bugs.python.org/issue39334

I used:

sed -i 's/^\([[:space:]]*\)\.\. index:: \(module\|keyword\|operator\|object\|exception\|statement\|builtin\): \(.*\)$/\1.. index:: pair: \2; \3/' Doc/**/*.rst
sed -i '/^[[:space:]]*\.\.[[:space:]]index::/,/^$/{s/^\([[:space:]]\+\)\(! \)\?\(module\|keyword\|operator\|object\|exception\|statement\|builtin\): \(.*\)$/\1pair: \3; \2\4/}' Doc/**/*.rst
@JulienPalard JulienPalard requested a review from tiran as a code owner Jan 14, 2020
@JulienPalard JulienPalard changed the title FIX: Deprecated sphinx index notations. bpo-39334: FIX: Deprecated sphinx index notations. Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.