jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/676934 )
Change subject: [sphinx] Improvements for docs/conf.py ......................................................................
[sphinx] Improvements for docs/conf.py
- highlight the first line of a script
Change-Id: I397f5702b62a0edd292443b59b651ab10fc13083 --- M docs/conf.py 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/docs/conf.py b/docs/conf.py index 7b28b2d..c041d9d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -417,7 +417,9 @@
length = 0 for index, line in enumerate(lines): - if line == '¶ms;': + if index == 0: # highlight the first line + lines[0] = '**{}**'.format(line.strip('.')) + elif line == '¶ms;': lines[index] = ('This script supports use of ' ':py:mod:`pywikibot.pagegenerators` arguments.') elif name == 'scripts.replace' and line == '&fixes-help;':