File tree Expand file tree Collapse file tree 6 files changed +100
-11
lines changed Expand file tree Collapse file tree 6 files changed +100
-11
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ - Added doxygen format support ([ #120 ] ( https://github.com/NilsJPWerner/autoDocstring/issues/120 ) ) (@daluar @PhilipNelson5 )
6+
57[ All Changes] ( https://github.com/NilsJPWerner/autoDocstring/compare/v0.6.1...master )
68
79## [ 0.6.1] ( https://github.com/NilsJPWerner/autoDocstring/tree/v0.6.1 ) - 2022-02-15
Original file line number Diff line number Diff line change @@ -20,12 +20,13 @@ Visual Studio Code extension to quickly generate docstrings for python functions
2020
2121To turn off type generation in docstrings use the ` -notypes ` template of the desired format. The docBlockr format is a typed version of PEP0257.
2222
23+ - [ docBlockr] ( docs/docblockr.md )
24+ - [ doxygen] ( docs/doxygen.md )
2325- [ google] ( docs/google.md )
24- - [ sphinx] ( docs/sphinx.md )
2526- [ numpy] ( docs/numpy.md )
26- - [ docBlockr] ( docs/docblockr.md )
2727- [ one-line-sphinx] ( docs/one-line-sphinx.md )
2828- [ pep257] ( docs/pep257.md )
29+ - [ sphinx] ( docs/sphinx.md )
2930
3031## Usage
3132
Original file line number Diff line number Diff line change 1+ # Doxygen Docstring Format
2+
3+ ``` python
4+ def abc (a : int , c = [1 ,2 ]):
5+ """ !
6+ @brief _summary_
7+
8+ @param a (int): _description_
9+ @param c (list, optional): _description_. Defaults to [1,2].
10+
11+ @return (_type_): _description_
12+
13+ @exception AssertionError: _description_
14+ """
15+ if a > 10 :
16+ raise AssertionError (" a is more than 10" )
17+
18+ return c
19+ ```
Original file line number Diff line number Diff line change 2424 "keywords" : [
2525 " python" ,
2626 " docstring" ,
27- " google" ,
28- " numpy" ,
29- " sphinx" ,
3027 " generator" ,
3128 " autodocstring" ,
32- " docblockr" ,
3329 " documentation" ,
34- " pydocstring"
30+ " pydocstring" ,
31+ " docblockr" ,
32+ " doxygen" ,
33+ " google" ,
34+ " numpy" ,
35+ " sphinx"
3536 ],
3637 "galleryBanner" : {},
3738 "engines" : {
7576 "default" : " google" ,
7677 "enum" : [
7778 " docblockr" ,
78- " pep257" ,
79+ " doxygen" ,
80+ " doxygen-notypes" ,
7981 " google" ,
8082 " google-notypes" ,
81- " sphinx" ,
82- " sphinx-notypes" ,
8383 " numpy" ,
8484 " numpy-notypes" ,
85- " one-line-sphinx"
85+ " one-line-sphinx" ,
86+ " pep257" ,
87+ " sphinx" ,
88+ " sphinx-notypes"
8689 ],
8790 "description" : " Which docstring format to use."
8891 },
Original file line number Diff line number Diff line change 1+ { {! Doxygen Docstring Template } }
2+ !
3+ @brief { {summaryPlaceholder} }
4+
5+ { {extendedSummaryPlaceholder} }
6+ { {#parametersExist} }
7+
8+ { {#args} }
9+ @param { {var} }: { {descriptionPlaceholder} }
10+ { {/args} }
11+ { {#kwargs} }
12+ @param { {var} }: { {descriptionPlaceholder} }. Defaults to { {&default } }.
13+ { {/kwargs} }
14+ { {/parametersExist} }
15+ { {#returnsExist} }
16+
17+ { {#returns} }
18+ @return: { {descriptionPlaceholder} }
19+ { {/returns} }
20+ { {/returnsExist} }
21+ { {#exceptionsExist} }
22+
23+ { {#exceptions} }
24+ @exception: { {descriptionPlaceholder} }
25+ { {/exceptions} }
26+ { {/exceptionsExist} }
27+ { {#yieldsExist} }
28+
29+ { {#yields} }
30+ @returns: { {descriptionPlaceholder} }
31+ { {/yields} }
32+ { {/yieldsExist} }
Original file line number Diff line number Diff line change 1+ { {! Doxygen Docstring Template } }
2+ !
3+ @brief { {summaryPlaceholder} }
4+
5+ { {extendedSummaryPlaceholder} }
6+ { {#parametersExist} }
7+
8+ { {#args} }
9+ @param { {var} } ({ {typePlaceholder} }): { {descriptionPlaceholder} }
10+ { {/args} }
11+ { {#kwargs} }
12+ @param { {var} } ({ {typePlaceholder} }, optional): { {descriptionPlaceholder} }. Defaults to { {&default } }.
13+ { {/kwargs} }
14+ { {/parametersExist} }
15+ { {#returnsExist} }
16+
17+ { {#returns} }
18+ @return ({ {typePlaceholder} }): { {descriptionPlaceholder} }
19+ { {/returns} }
20+ { {/returnsExist} }
21+ { {#exceptionsExist} }
22+
23+ { {#exceptions} }
24+ @exception { {type} }: { {descriptionPlaceholder} }
25+ { {/exceptions} }
26+ { {/exceptionsExist} }
27+ { {#yieldsExist} }
28+
29+ { {#yields} }
30+ @returns { {typePlaceholder} }: { {descriptionPlaceholder} }
31+ { {/yields} }
32+ { {/yieldsExist} }
You can’t perform that action at this time.
0 commit comments