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
tags/1.4.0
Andreas Jaeger 2 years ago
parent
commit
7422b86569
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      os_doc_tools/commands.py

+ 0
- 6
os_doc_tools/commands.py View File

@@ -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