jenkins-bot submitted this change.
[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 == '¶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;':
To view, visit change 676934. To unsubscribe, or for help writing mail filters, visit settings.