docs/README-eric7-doc.md

Fri, 27 Oct 2023 14:09:40 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 27 Oct 2023 14:09:40 +0200
branch
eric7
changeset 10259
b51dfacef37f
parent 10107
da76865312f1
child 10419
2fda68a9168d
permissions
-rw-r--r--

Regenerated the source documentation with the corrected module parser.

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 "&lt;", ">" as "&gt;", "&" as "&amp;" 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
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
100 : This tag is used to describe the events (PyQt) a class may emit. It is
da76865312f1 Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 8313
diff changeset
101 always followed by the event name and one or more lines of descriptive
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
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
113 @ireturn 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 an alias for the @return tag.
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
115
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
116 @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
117 : 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
118 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
119 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
120
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 @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
122
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
123 @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
124 : 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
125 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
126 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
127
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 @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
129
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
130 @ptype name 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
131 : This tag is used to describe the type of a function or method argument.
da76865312f1 Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 8313
diff changeset
132 It is always followed by the argument name and type. The argument has
da76865312f1 Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 8313
diff changeset
133 to be defined already with @param or @keyparam. 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
134
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
135 @ptype filename 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
136
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
137 @raise 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
138 : This tag is an alias for the @exception tag.
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
139
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
140 @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
141 : 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
142 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
143
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
144 @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
145
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
146 @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
147 : 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
148 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
149
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
150 @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
151
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
152 @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
153 : 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
154 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
155
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
156 : @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
157 : 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
158 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
159 (") 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
160
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
161 @see "eric7-doc readme file"
15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
162
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
163 : @see <a href="URL#value">label</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
164 : 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
165 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
166 character. For example:
15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
167
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
168 @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
169
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
170 : @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
171 : 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
172 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
173 (.). 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
174 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
175 For example:
15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
176
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
177 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
178 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
179
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
180 @signal signalname 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
181 : This tag is used to describe the signals (PyQt) a class may emit. It is
da76865312f1 Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 8313
diff changeset
182 always followed by the signal name and one or more lines of descriptive
da76865312f1 Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 8313
diff changeset
183 text. For example:
15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
184
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
185 @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
186
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
187 @throws 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
188 : This tag is an alias for the @exception tag.
15
f6ccc31d6e72 Started to rename stuff for eric5.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
189
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
190 @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
191 : 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
192 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
193
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
194 @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
195 @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
196
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 # 3. Inline Tags
8313
dac33c7fce07 Continued to rename eric6 to eric7.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 6942
diff changeset
198 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
199
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
200 {@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
201 : Inserts an in-line link with visible text label that points to the documentation
da76865312f1 Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 8313
diff changeset
202 given in the reference. This tag works he same way as the @see block tag of this
da76865312f1 Changed the included documentation to Markdown format and corrected some of the texts.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 8313
diff changeset
203 form.

eric ide

mercurial