File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1395,11 +1395,20 @@ \section{\module{bar.foo} ---
13951395 For each of the following macros, \var {why} should be one or more
13961396 complete sentences, starting with a capital letter (unless it
13971397 starts with an identifier, which should not be modified), and
1398- ending with the apropriate punctuation.
1398+ ending with the appropriate punctuation.
13991399
14001400 These macros are only defined within the content of the
14011401 \env {seealso} and \env {seealso*} environments.
14021402
1403+ \begin {macrodesc }{seelink}{\p {url}\p {linktext}\p {why}}
1404+ References to specific on-line resources should be given using
1405+ the \macro {seelink} macro if they don't have a meaningful title
1406+ but there is some short description of what's at the end of the
1407+ link. Online documents which have identifiable titles should be
1408+ referenced using the \macro {seetitle} macro, using the optional
1409+ parameter to that macro to provide the URL.
1410+ \end {macrodesc }
1411+
14031412 \begin {macrodesc }{seemodule}{\op {key}\p {name}\p {why}}
14041413 Refer to another module. \var {why} should be a brief
14051414 explanation of why the reference may be interesting. The module
Original file line number Diff line number Diff line change @@ -1950,6 +1950,19 @@ sub do_cmd_seetitle{
19501950 . $_ ;
19511951}
19521952
1953+ sub do_cmd_seelink{
1954+ local ($_ ) = @_ ;
1955+ my $url = next_argument();
1956+ my $linktext = next_argument();
1957+ my $text = next_argument();
1958+ my $icon = get_link_icon($url );
1959+ return ' <dl compact class="seeurl">'
1960+ . " \n <dt><a href='$url '"
1961+ . " \n >$linktext$icon </a></dt>"
1962+ . " \n <dd>$text </dd>\n </dl>"
1963+ . $_ ;
1964+ }
1965+
19531966sub do_cmd_seeurl{
19541967 local ($_ ) = @_ ;
19551968 my $url = next_argument();
Original file line number Diff line number Diff line change 11601160 }
11611161\fi
11621162
1163+ % \seelink{url}{link text}
1164+ \newcommand {\py@seelink }[3]{%
1165+ \par
1166+ \begin {fulllineitems }
1167+ \item [\ulink {#2}{#1}]
1168+ #3
1169+ \end {fulllineitems }
1170+ }
11631171% \seetitle[url]{title}{why it's interesting}
11641172\newcommand {\py@seetitle }[3][\py@modulebadkey ]{%
11651173 \par
12041212 \let\seerfc =\py@seerfc
12051213 \let\seetitle =\py@seetitle
12061214 \let\seeurl =\py@seeurl
1215+ \let\seelink =\py@seelink
12071216}{\par }
12081217\newenvironment {seealso}{
12091218 \par
12151224 \let\seerfc =\py@seerfc
12161225 \let\seetitle =\py@seetitle
12171226 \let\seeurl =\py@seeurl
1227+ \let\seelink =\py@seelink
12181228}{\par }
12191229
12201230% Allow the Python release number to be specified independently of the
You can’t perform that action at this time.
0 commit comments