Handle \see

[SVN r70874]
This commit is contained in:
Steven Watanabe 2011-04-02 18:07:21 +00:00
parent 0d10a36cea
commit 55259344f5
4 changed files with 15 additions and 3 deletions

View File

@ -25,7 +25,7 @@ else
{ {
actions compare actions compare
{ {
diff -u $(>[1]) $(>[2]) && echo "Stamped" >$(<) diff -u -w $(>[1]) $(>[2]) && echo "Stamped" >$(<)
} }
} }

View File

@ -19,5 +19,6 @@ Line 1<sbr/>
</para></description></struct><enum name="namespace_enum"><enumvalue name="enumerator"/></enum><data-member name="namespace_integer"><type>int</type></data-member><data-member name="namespace_static_integer" specifiers="static"><type>int</type></data-member><data-member name="namespace_const_integer"><type>const int</type></data-member><data-member name="namespace_static_const_integer" specifiers="static"><type>const int</type></data-member><function name="namespace_func"><type>int</type><parameter name="i"><paramtype>int</paramtype><description><para>A function parameter </para></description></parameter><parameter name="j"><paramtype>int</paramtype><description><para>Another </para></description></parameter><description><para> </para></description></struct><enum name="namespace_enum"><enumvalue name="enumerator"/></enum><data-member name="namespace_integer"><type>int</type></data-member><data-member name="namespace_static_integer" specifiers="static"><type>int</type></data-member><data-member name="namespace_const_integer"><type>const int</type></data-member><data-member name="namespace_static_const_integer" specifiers="static"><type>const int</type></data-member><function name="namespace_func"><type>int</type><parameter name="i"><paramtype>int</paramtype><description><para>A function parameter </para></description></parameter><parameter name="j"><paramtype>int</paramtype><description><para>Another </para></description></parameter><description><para>
This is a test function. <classname alt="example::example">Link to class</classname> <classname alt="example::example_template">Link to class template</classname> <note><para>This is a note. </para></note> This is a test function. <classname alt="example::example">Link to class</classname> <classname alt="example::example_template">Link to class template</classname> <note><para>This is a note.</para></note>
<para><emphasis role="bold">See Also:</emphasis><para><classname alt="example::example">example::example</classname> and <classname alt="example::example_template">example_template</classname> </para></para>
</para></description><requires><para>i &gt; j</para></requires><returns><para>The answer </para></returns></function></namespace><macro name="EXAMPLE" kind="functionlike"><macro-parameter name="m"/><purpose>Documentation for macro example. </purpose></macro></header></library-reference> </para></description><requires><para>i &gt; j</para></requires><returns><para>The answer </para></returns></function></namespace><macro name="EXAMPLE" kind="functionlike"><macro-parameter name="m"/><purpose>Documentation for macro example. </purpose></macro></header></library-reference>

View File

@ -108,6 +108,8 @@ namespace example
* \ref example::example "Link to class" * \ref example::example "Link to class"
* \ref example_template "Link to class template" * \ref example_template "Link to class template"
* \note This is a note. * \note This is a note.
*
* \see example::example and example_template
*/ */
int namespace_func(int i, int j); int namespace_func(int i, int j);
} }

View File

@ -1276,7 +1276,7 @@
not (@kind='return') and not (@kind='return') and
not (@kind='post') and not (@kind='post') and
not (@kind='attention') and not (@kind='attention') and
not (@kind='note')"> not (@kind='see')">
<xsl:apply-templates mode="passthrough"/> <xsl:apply-templates mode="passthrough"/>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
@ -1293,6 +1293,15 @@
</formalpara> </formalpara>
</xsl:template> </xsl:template>
<xsl:template match="para/simplesect[@kind='see']" mode="passthrough">
<para>
<emphasis role="bold">
<xsl:text>See Also:</xsl:text>
</emphasis>
<xsl:apply-templates mode="passthrough"/>
</para>
</xsl:template>
<xsl:template match="simplesectsep" mode="passthrough"> <xsl:template match="simplesectsep" mode="passthrough">
<xsl:apply-templates mode="passthrough"/> <xsl:apply-templates mode="passthrough"/>
</xsl:template> </xsl:template>