mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
do not create link for current class
This commit is contained in:
parent
db8a7c613b
commit
36a05a3a0d
@ -163,7 +163,11 @@ sub processDoxygenLine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
# create links in plain text too (less performant)
|
# create links in plain text too (less performant)
|
||||||
$line =~ s/\b(Qgs[A-Z]\w+)\b(\.?$|[^\w]{2})/:py:class:`$1`$2/g;
|
if ( $line =~ m/\b(Qgs[A-Z]\w+)\b(\.?$|[^\w]{2})/) {
|
||||||
|
if ( $1 !~ $ACTUAL_CLASS ) {
|
||||||
|
$line =~ s/\b(Qgs[A-Z]\w+)\b(\.?$|[^\w]{2})/:py:class:`$1`$2/g;
|
||||||
|
}
|
||||||
|
}
|
||||||
$line =~ s/\b(Qgs[A-Z]\w+\.[a-z]\w+\(\))(\.|\b|$)/:py:func:`$1`/g;
|
$line =~ s/\b(Qgs[A-Z]\w+\.[a-z]\w+\(\))(\.|\b|$)/:py:func:`$1`/g;
|
||||||
if ( $line =~ m/[\\@]note (.*)/ ) {
|
if ( $line =~ m/[\\@]note (.*)/ ) {
|
||||||
return "\n.. note::\n\n $1\n";
|
return "\n.. note::\n\n $1\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user