Debian Codegraph @

docs/usage/docstrings/google.md

raw
1 # Google style
2
3 ## :warning: Work in Progress!
4
5 ### Google-style admonitions
6
7 With Google-style docstrings, any section that is not recognized will be transformed into its admonition equivalent.
8 For example:
9
10 === "Docstring"
11 ```python
12 """
13 Note:
14 It looks like a section, but it will be rendered as an admonition.
15
16 Tip: You can even choose a title.
17 This admonition has a custom title!
18 """
19 ```
20
21 === "Result"
22 NOTE: It looks like a section, but it will be rendered as an admonition.
23
24 TIP: **You can even choose a title.**
25 This admonition has a custom title!
26
27 See [Napoleon's documentation](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html).
28 See the supported docstring sections on [Griffe's documentation](https://mkdocstrings.github.io/griffe/docstrings/).