Skip to content

Commit d6e4d41

Browse files
committed
Avoid non-backticked -- under <code>
dodoc converts this to mdash.
1 parent 2f9b4e5 commit d6e4d41

File tree

5 files changed

+33
-33
lines changed

5 files changed

+33
-33
lines changed

deprecations_to_md.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
with open(outfile, 'w') as f:
2121
f.write(Path(header).read_text())
2222
for (ver, features) in sorted(by_version.items()):
23-
f.write(f"""
24-
### Features available up to and including --simics-api={ver.str}
23+
f.write(rf"""
24+
### Features available up to and including -\-simics-api={ver.str}
2525
These features correspond to functionality removed when compiling using
2626
Simics API {ver.ordinal + 1} or newer. With older Simics API versions, these
27-
features can be disabled individually by passing <tt>--no-compat=<em>TAG</em></tt>
27+
features can be disabled individually by passing <tt>-\-no-compat=<em>TAG</em></tt>
2828
to the `dmlc` compiler.
2929
""")
3030
f.write("<dl>\n")

doc/1.2/deprecations-header.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ be used for a model. When building with the standard Simics build system, this
6363
is controlled by the `SIMICS_API_VERSION` variable in `make`, or the
6464
`SIMICS_API`/`MODULE_SIMICS_API` variable in `CMake`.
6565

66-
DMLC also provides the <code>--no-compat=_tag_</code> flag, which disables the
66+
DMLC also provides the <code>-\-no-compat=_tag_</code> flag, which disables the
6767
feature represented by _`tag`_. The available tags are listed in the next
6868
section. The tag also controls the name of a global boolean parameter that the
6969
DML program may use to check whether the feature is available. The parameter's

doc/1.4/deprecations-header.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ be used for a model. When building with the standard Simics build system, this
6363
is controlled by the `SIMICS_API_VERSION` variable in `make`, or the
6464
`SIMICS_API`/`MODULE_SIMICS_API` variable in `CMake`.
6565

66-
DMLC also provides the <code>--no-compat=_tag_</code> flag, which disables the
66+
DMLC also provides the <code>-\-no-compat=_tag_</code> flag, which disables the
6767
feature represented by _`tag`_. The available tags are listed in the next
6868
section. The tag also controls the name of a global boolean parameter that the
6969
DML program may use to check whether the feature is available. The parameter's

doc/1.4/running-dmlc.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The following are the available command line options to
6767

6868
<dl><dt>
6969

70-
-h, --help
70+
-h, -\-help
7171
</dt><dd>
7272

7373
Print usage help.
@@ -89,7 +89,7 @@ string, a boolean, an integer, or a floating point
8989
constant. The parameter will appear in the top-level scope.
9090
</dd><dt>
9191

92-
--dep
92+
-\-dep
9393
</dt><dd>
9494

9595
Output makefile rules describing dependencies.
@@ -110,7 +110,7 @@ This generates a DML debug file leveraged by debug-simics, and
110110
causes generated C code to follow the DML code more closely.
111111
</dd><dt>
112112

113-
--coverity
113+
-\-coverity
114114
</dt><dd>
115115

116116
Adds Synopsys® Coverity® analysis annotations to suppress common false positives
@@ -124,59 +124,59 @@ unexpected behavior. Because of this, it's recommended that `--coverity` is
124124
only used when needed.
125125
</dd><dt>
126126

127-
--warn=*tag*
127+
-\-warn=*tag*
128128
</dt><dd>
129129

130130
Enable selected warnings. The tags can be found using
131131
the `-T` option.
132132
</dd><dt>
133133

134-
--nowarn=*tag*
134+
-\-nowarn=*tag*
135135
</dt><dd>
136136

137137
Suppress selected warnings. The tags can be found using
138138
the `-T` option.
139139
</dd><dt>
140140

141-
--werror
141+
-\-werror
142142
</dt><dd>
143143

144144
Turn all warnings into errors.
145145
</dd><dt>
146146

147-
--strict
147+
-\-strict
148148
</dt><dd>
149149

150150
Report errors for some constructs that will be forbidden in
151151
future versions of the DML language
152152
</dd><dt>
153153

154-
--noline
154+
-\-noline
155155
</dt><dd>
156156

157157
Suppress line directives for the C preprocessor so
158158
that the C code can be debugged.
159159
</dd><dt>
160160

161-
--info
161+
-\-info
162162
</dt><dd>
163163

164164
Enable the output of an XML file describing register layout.
165165
</dd><dt>
166166

167-
--version
167+
-\-version
168168
</dt><dd>
169169

170170
Print version information.
171171
</dd><dt>
172172

173-
--simics-api=*version*
173+
-\-simics-api=*version*
174174
</dt><dd>
175175

176176
Use Simics API version *version*.
177177
</dd><dt>
178178

179-
--max-errors=*N*
179+
-\-max-errors=*N*
180180
</dt><dd>
181181

182182
Limit the number of error messages to *N*.

py/dml/dmlc.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def main(argv):
318318
# <file>dmlc</file>:
319319
# <dl>
320320

321-
# <dt>-h, --help</dt>
321+
# <dt>-h, -\-help</dt>
322322
# <dd>Print usage help.</dd>
323323

324324
# <dt>-I <i>path</i></dt>
@@ -341,22 +341,22 @@ def main(argv):
341341
default=[],
342342
help='set compile time constant NAME to VALUE')
343343

344-
# <dt>--dep</dt>
344+
# <dt>-\-dep</dt>
345345
# <dd>Output makefile rules describing dependencies.</dd>
346346
parser.add_argument(
347347
'--dep', action='store',
348348
help='generate makefile dependencies')
349349

350-
# <dt>--no-dep-phony</dt>
351-
# <dd>With --dep, avoid addition of a phony target for each dependency
350+
# <dt>-\-no-dep-phony</dt>
351+
# <dd>With -\-dep, avoid addition of a phony target for each dependency
352352
# other than the main file.</dd>
353353
parser.add_argument(
354354
'--no-dep-phony', action='store_true',
355355
help='With --dep, avoid addition of a phony target for each'
356356
+ ' dependency other than the main file.')
357357

358-
# <dt>--dep-target</dt>
359-
# <dd>With --dep, change the target of the rule emitted by dependency
358+
# <dt>-\-dep-target</dt>
359+
# <dd>With -\-dep, change the target of the rule emitted by dependency
360360
# generation. Specify multiple times to have multiple targets.</dd>
361361
parser.add_argument(
362362
'--dep-target', action='append', metavar='TARGET', default=[],
@@ -366,7 +366,7 @@ def main(argv):
366366

367367
# <dt>-T</dt>
368368
# <dd>Show tags on warning messages. The tags can be used with
369-
# the <tt>--nowarn</tt> and <tt>--warn</tt> options.</dd>
369+
# the <tt>-\-nowarn</tt> and <tt>-\-warn</tt> options.</dd>
370370
parser.add_argument(
371371
'-T', dest='include_tag', action='store_true',
372372
help='show tags on warning messages')
@@ -384,7 +384,7 @@ def main(argv):
384384
'-g', dest='debuggable', action='store_true',
385385
help='generate artifacts and C code that allow for easier debugging')
386386

387-
# <dt>--warn=<i>tag</i></dt>
387+
# <dt>-\-warn=<i>tag</i></dt>
388388
# <dd>Enable selected warnings. The tags can be found using
389389
# the <tt>-T</tt> option.</dd>
390390
parser.add_argument(
@@ -393,7 +393,7 @@ def main(argv):
393393
default=[],
394394
help='enable warning TAG')
395395

396-
# <dt>--nowarn=<i>tag</i></dt>
396+
# <dt>-\-nowarn=<i>tag</i></dt>
397397
# <dd>Suppress selected warnings. The tags can be found using
398398
# the <tt>-T</tt> option.</dd>
399399
parser.add_argument(
@@ -404,7 +404,7 @@ def main(argv):
404404

405405
parser.add_argument('--help-warn', action=WarnHelpAction,
406406
help='List warning tags available for --warn/--nowarn')
407-
# <dt>--werror</dt>
407+
# <dt>-\-werror</dt>
408408
# <dd>Turn all warnings into errors.</dd>
409409
parser.add_argument('--werror', action='store_true',
410410
help='Turn all warnings into errors')
@@ -415,7 +415,7 @@ def main(argv):
415415
parser.add_argument('--strict-int', action='store_true',
416416
help='Alias for --no-compat=dml12_int')
417417

418-
# <dt>--coverity</dt>
418+
# <dt>-\-coverity</dt>
419419
# <dd> Adds Synopsys® Coverity® analysis annotations to suppress common
420420
# false positives in generated C code created from DML 1.4 device models.
421421
# </dd>
@@ -424,20 +424,20 @@ def main(argv):
424424
help=('Adds Synopsys® Coverity® analysis annotations to suppress '
425425
+ 'common false positives in generated C code created from '
426426
+ 'DML 1.4 device models.'))
427-
# <dt>--noline</dt>
427+
# <dt>-\-noline</dt>
428428
# <dd>Suppress line directives for the C preprocessor so
429429
# that the C code can be debugged.</dd>
430430
parser.add_argument(
431431
'--noline', action='store_true',
432432
help='suppress line directives in generated C code')
433433

434-
# <dt>--info</dt>
434+
# <dt>-\-info</dt>
435435
# <dd>Enable the output of an XML file describing register layout.</dd>
436436
parser.add_argument(
437437
'--info', action='store_true',
438438
help='generate XML file describing register layout')
439439

440-
# <dt>--simics-api=<i>version</i></dt>
440+
# <dt>-\-simics-api=<i>version</i></dt>
441441
# <dd>Use Simics API version <i>version</i>.</dd>
442442
parser.add_argument(
443443
'--simics-api', action='store',
@@ -446,7 +446,7 @@ def main(argv):
446446
help=('specify Simics API version (default %s)'
447447
% default_api_version()))
448448

449-
# <dt>--max-errors=<i>N</i></dt>
449+
# <dt>-\-max-errors=<i>N</i></dt>
450450
# <dd>Limit the number of error messages to <i>N</i>.</dd>
451451
parser.add_argument(
452452
'--max-errors', action='store',
@@ -457,7 +457,7 @@ def main(argv):
457457
# </dl>
458458
# </add>
459459

460-
# <dt>--no-compat=<i>TAG</i></dt>
460+
# <dt>-\-no-compat=<i>TAG</i></dt>
461461
# <dd>Disable a compatibility feature</dd>
462462
parser.add_argument(
463463
'--no-compat', action='append', default=[],

0 commit comments

Comments
 (0)