Fri, 07 Jun 2024 13:51:43 +0200
Updated the formatting of the plugin document and modified the text in several places.
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
1 | # README for the eric7-doc documentation generator |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
2 | |
8313
dac33c7fce07
Continued to rename eric6 to eric7.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
6942
diff
changeset
|
3 | eric7-doc is the documentation generator of the eric7 IDE. Python source |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
4 | code documentation may be included as ordinary Python doc-strings or as |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
5 | documentation comments. |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
6 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
7 | For Quixote Template files (PTL) only documentation comments are available |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
8 | due to the inner workings of Quixote. Documentation comments start with the |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
9 | string `###`, followed by the contents and ended by `###`. Every line of the |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
10 | documentation comments contents must start with a `#` (see example below). |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
11 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
12 | Documentation for packages (i.e. directories) must be in a file called |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
13 | `__init__.py`. If a package directory doesn't contain a file |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
14 | like these, documentation for files in this directory is suppressed. |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
15 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
16 | The documentation consist of two parts. The first part is the description of |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
17 | the module, class, function or method. The second part, separated from the |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
18 | first by a blank line, consists of one or more tags. These are described below. |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
19 | |
8313
dac33c7fce07
Continued to rename eric6 to eric7.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
6942
diff
changeset
|
20 | eric7-doc produces HTML files from the documentation found within the source |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
21 | files scanned. It understands the following command line parameters next to |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
22 | others. |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
23 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
24 | -o directory |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
25 | : Generate files in the named directory. |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
26 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
27 | -R, -r |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
28 | : Perform a recursive search for Python files. |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
29 | |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
30 | -x directory |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
31 | : Specify a directory basename to be excluded. This option may be repeated |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
32 | multiple times. |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
33 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
34 | -i |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
35 | : Don't generate index files. |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
36 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
37 | Just type `eric7-doc` to get some usage information. |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
38 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
39 | # 1. Description |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
40 | The descriptions are HTML fragments and may contain most standard HTML. The |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
41 | description text is included in the output wrapped in P tags, but unchanged |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
42 | otherwise. Paragraphs have to be separated by a blank line. In order to |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
43 | generate a blank line in the output enter a line that contains a single dot |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
44 | (.). Reserved HTML entities (<, > and &) and the at-sign (@) at the beginning |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
45 | of a line, if that line doesn't contain a tag (see below), must be properly |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
46 | escaped. "<" should be written as "<", ">" as ">", "&" as "&" and |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
47 | "@" should be escaped as "@@". |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
48 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
49 | The documentation string or documentation comment may contain block tags |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
50 | and inline tags. Inline tags are denoted by curly braces and can be placed |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
51 | anywhere in the main description or in the description part of block tags. |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
52 | Block tags can only be placed in the tag section that follows the main |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
53 | description. Block tags are indicated by an at-sign (@) at the beginning of |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
54 | the line. The text before the first tag is the description of a module, class, |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
55 | method or function. |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
56 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
57 | Python Docstring: |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
58 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
59 | """ |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
60 | This is sentence one, which gets included as a short description. |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
61 | All additional sentences are included into the full description. |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
62 | |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
63 | @param param1 first parameter |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
64 | @type int |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
65 | @return flag indicating success |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
66 | @rtype bool |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
67 | @exception ValueError list entry wasn't found |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
68 | """ |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
69 | |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
70 | Python/Quixote Documentation comment:: |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
71 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
72 | ### |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
73 | # This is line one, which gets included as a short description. |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
74 | # All additional lines are included into the full description. |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
75 | # |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
76 | # @param param1 first parameter |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
77 | # @type int |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
78 | # @return flag indicating success |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
79 | # @rtype bool |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
80 | # @exception ValueError list entry wasn't found |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
81 | ### |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
82 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
83 | # 2. Block Tags |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
84 | The block tags recognized by eric7-doc are: |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
85 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
86 | @@ |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
87 | : This isn't really a tag. This is used to escape an at sign at the beginning |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
88 | of a line. Everything after the first @ is copied verbatim to the output. |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
89 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
90 | @author author |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
91 | : This tag is used to name the author of the code. For example: |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
92 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
93 | @author Detlev Offenbach <detlev@die-offenbachs.de> |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
94 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
95 | @deprecated description |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
96 | : This tag is used to mark a function or method as deprecated. It is always |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
97 | followed by one or more lines of descriptive text. |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
98 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
99 | @event eventname description |
10419
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
100 | : This tag is used to describe the events (PyQt, PySide) a class may emit. It |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
101 | is always followed by the event name and one or more lines of descriptive |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
102 | text. For example: |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
103 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
104 | @event closeEvent Emitted when an editor window is closed. |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
105 | |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
106 | @exception exception description |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
107 | : These tags are used to describe the exceptions a function or method may |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
108 | raise. It is always followed by the exception name and one or more lines |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
109 | of descriptive text. For example: |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
110 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
111 | @exception ValueError The searched value is not contained in the list. |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
112 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
113 | @keyparam name description |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
114 | : This tag is like the @param tag, but should be used for parameters, that |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
115 | should always be given as keyword parameters. It is always followed by |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
116 | the argument name and one or more lines of descriptive text. For example: |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
117 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
118 | @keyparam extension Optional extension of the source file. |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
119 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
120 | @param name description |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
121 | : This tag is used to describe a function or method argument. It is always |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
122 | followed by the argument name and one or more lines of descriptive text. |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
123 | For example: |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
124 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
125 | @param filename name of the source file |
4267
94496d77156b
Added tags to describe the type of parameters (@type, @ptype) and return values (@rtype).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
4266
diff
changeset
|
126 | |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
127 | @return description |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
128 | : This tag is used to describe a function or method return value. It can |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
129 | include one or more lines of descriptive text. For example: |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
130 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
131 | @return list of file names |
4267
94496d77156b
Added tags to describe the type of parameters (@type, @ptype) and return values (@rtype).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
4266
diff
changeset
|
132 | |
94496d77156b
Added tags to describe the type of parameters (@type, @ptype) and return values (@rtype).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
4266
diff
changeset
|
133 | @rtype type |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
134 | : This tag is used to describe a function or method return type. It should |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
135 | follow an @return tag. For example: |
4267
94496d77156b
Added tags to describe the type of parameters (@type, @ptype) and return values (@rtype).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
4266
diff
changeset
|
136 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
137 | @rtype list of str |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
138 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
139 | @see reference |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
140 | : This tag is used to include a reference in the documentation. It comes in |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
141 | three different forms. |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
142 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
143 | : @see "string" |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
144 | : Adds a text entry of string. No link is generated. eric7-doc |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
145 | distinguishes this form from the others by looking for a double-quote |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
146 | (") as the first character. For example: |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
147 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
148 | @see "eric7-doc readme file" |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
149 | |
10419
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
150 | : @see <a href="URL#value">label</a> |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
151 | : Adds a link as defined by URL#value. eric7-doc distinguishes this form |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
152 | from the others by looking for a less-than symbol (<) as the first |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
153 | character. For example: |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
154 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
155 | @see <a href="eric7.eric7-doc.html>eric7-doc documentation generator</a> |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
156 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
157 | : @see package.module#member label |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
158 | : Adds a link to "member" in "module" in "package". package can be a |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
159 | package path, where the package names are separated by a dot character |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
160 | (.). The "package.module#member" part must not be split over several |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
161 | lines and must name a valid target within the documentation directory. |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
162 | For example: |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
163 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
164 | see eric7.eric7-doc#main eric7-doc main() function |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
165 | see eric7.DocumentationTools.ModuleDocumentor#ModuleDocument.__genModuleSection ModuleDocument.__genModuleSection |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
166 | |
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
167 | @signal signalname description |
10419
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
168 | : This tag is used to describe the signals (PyQt, PySide) a class may emit. It is |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
169 | always followed by the signal name and one or more lines of descriptive text. |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
170 | For example: |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
171 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
172 | @signal lastEditorClosed Emitted after the last editor window was closed. |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
173 | |
4267
94496d77156b
Added tags to describe the type of parameters (@type, @ptype) and return values (@rtype).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
4266
diff
changeset
|
174 | @type parameter-type |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
175 | : This tag is used to give the type of the parameter just described. |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
176 | It must be preceded by a @param or @keyparam tag. For example: |
4267
94496d77156b
Added tags to describe the type of parameters (@type, @ptype) and return values (@rtype).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
4266
diff
changeset
|
177 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
178 | @param filename name of the source file |
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
179 | @type str |
4267
94496d77156b
Added tags to describe the type of parameters (@type, @ptype) and return values (@rtype).
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
4266
diff
changeset
|
180 | |
10419
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
181 | @yield description |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
182 | : This tag is used to describe a function or method yield value. It can |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
183 | include one or more lines of descriptive text. For example: |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
184 | |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
185 | @yield file names |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
186 | |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
187 | @ytype type |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
188 | : This tag is used to describe a function or method yield type. It should |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
189 | follow an @yield tag. For example: |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
190 | |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
191 | @ytype str |
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
192 | |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
193 | # 3. Inline Tags |
8313
dac33c7fce07
Continued to rename eric6 to eric7.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
6942
diff
changeset
|
194 | The inline tags recogized by eric7-doc are: |
15
f6ccc31d6e72
Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff
changeset
|
195 | |
4266
17c215c416ba
Made some corrections to the various README files and converted them to reStructured Text.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
3758
diff
changeset
|
196 | {@link package.module#member label} |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
197 | : Inserts an in-line link with visible text label that points to the documentation |
10419
2fda68a9168d
Updated the document describing the eric code documentation style.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
10107
diff
changeset
|
198 | given in the reference. This tag works the same way as the @see block tag of this |
10107
da76865312f1
Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8313
diff
changeset
|
199 | form. |