Browse Source

Remove :option:

Sphinx 1.5 warns about :option: usage without .. option:: description.
Since we do not use .. option:: to describe parameter, remove
:option: from the tools.

Change-Id: I995ad6772b8cc65b8ff255a1c2dad96bdff8adbc
changes/51/418951/4
Andreas Jaeger 5 years ago
committed by KATO Tomoyuki
parent
commit
7422b86569
  1. 6
      os_doc_tools/commands.py

6
os_doc_tools/commands.py

@ -14,7 +14,6 @@
import argparse
import os
import re
import subprocess
import sys
import yaml
@ -40,11 +39,6 @@ def quote_rst(line):
line = line.replace('\\', '\\\\').replace('`', '\\`').replace('*', '\\*')
if '--' in line:
line = re.sub(r'(--[^ .\'\\]*)', r":option:`\1`", line)
# work around for "`--`" at murano
line = line.replace('\\`:option:`--`\\`', '```--```')
if 'DEPRECATED!' in line:
line = line.replace('DEPRECATED!', '**DEPRECATED!**')
elif 'DEPRECATED' in line:

Loading…
Cancel
Save