Skip to content

Commit 748ed4d

Browse files
Merge pull request #35 from EricCousineau-TRI/feature-py-napoleon
pyguide: Mention Napoleon
2 parents 32caa7e + 09ad111 commit 748ed4d

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,15 @@ Relevant Pages
3939

4040
The relevant modified style guides used by Drake are:
4141

42-
* [C++ Style Guide](./cppguide.html)
43-
* [Python Style Guide](./pyguide.html) (*generation required*)
42+
* C++ Style Guide:
43+
[local preview](./cppguide.html) |
44+
[rendered online](https://drake.mit.edu/styleguide/cppguide.html)
45+
* Python Style Guide:
46+
[local preview](./pyguide.html)\* |
47+
[rendered online](https://drake.mit.edu/styleguide/pyguide.html)
48+
49+
\* These docs must be generated to preview locally. Please see
50+
<https://drake.mit.edu/documentation_instructions.html> for instructions.
4451

4552
Making New Changes
4653
------------------

pyguide.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,20 @@ required (but are acceptable).
21322132
There are more formatting guidelines for
21332133
docstrings below.
21342134

2135+
<!--
2136+
N.B. We use //br because 2+ line breaks will make Markdown break the continuity
2137+
across the //span element.
2138+
-->
2139+
<span class="drake">
2140+
`pydrake` documentation uses Sphinx to generate documentation
2141+
(see Drake's [Documentation Generation Instructions](https://drake.mit.edu/documentation_instructions.html)),
2142+
and uses the Sphinx Napoleon plugin to process Google-style docstrings.
2143+
<br/>
2144+
This guide itself does not have comprehensive documentation on all directives
2145+
available, but the Sphinx Napoleon documentation does:
2146+
[`sphinx.ext.napoleon` docs](https://www.sphinx-doc.org/en/1.6.7/ext/napoleon.html)
2147+
</span>
2148+
21352149
<a id="s3.8.2-comments-in-modules"></a>
21362150
<a id="382-modules"></a>
21372151
<a id="comments-in-modules"></a>

0 commit comments

Comments
 (0)