jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[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(-)

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 == '&params;':
+ if index == 0: # highlight the first line
+ lines[0] = '**{}**'.format(line.strip('.'))
+ elif line == '&params;':
lines[index] = ('This script supports use of '
':py:mod:`pywikibot.pagegenerators` arguments.')
elif name == 'scripts.replace' and line == '&fixes-help;':

To view, visit change 676934. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I397f5702b62a0edd292443b59b651ab10fc13083
Gerrit-Change-Number: 676934
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged