mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Add a new environment in the Python docs markup: seealso*. This is similar
to seealso, but does not add the "See also:" header or put the content in a box in the HTML version. Updated the description of \seeurl to better indicate when it should be used; the old description was written before we had \seetitle.
This commit is contained in:
parent
89d63cc450
commit
5ed35fd149
3 changed files with 41 additions and 11 deletions
|
|
@ -1096,9 +1096,20 @@
|
|||
#2
|
||||
\end{fulllineitems}
|
||||
}
|
||||
\newenvironment{seealso}[0]{
|
||||
|
||||
\newenvironment{seealso*}{
|
||||
\par
|
||||
\def\seetext##1{\par{##1}}
|
||||
\let\seemodule=\py@seemodule
|
||||
\let\seepep=\py@seepep
|
||||
\let\seerfc=\py@seerfc
|
||||
\let\seetitle=\py@seetitle
|
||||
\let\seeurl=\py@seeurl
|
||||
}{\par}
|
||||
\newenvironment{seealso}{
|
||||
\par
|
||||
\strong{See Also:}
|
||||
\par
|
||||
\strong{See Also:}\par
|
||||
\def\seetext##1{\par{##1}}
|
||||
\let\seemodule=\py@seemodule
|
||||
\let\seepep=\py@seepep
|
||||
|
|
@ -1106,7 +1117,6 @@
|
|||
\let\seetitle=\py@seetitle
|
||||
\let\seeurl=\py@seeurl
|
||||
}{\par}
|
||||
|
||||
|
||||
% Allow the Python release number to be specified independently of the
|
||||
% \date{}. This allows the date to reflect the document's date and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue