VirtualBox

Changeset 92153 in vbox


Ignore:
Timestamp:
Oct 29, 2021 4:41:20 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147974
Message:

Main/doxygen: Remove the attempt to produce a .chm file with the doxygen generated API documentation. HTML is good enough. In doxygen.xsl handle input in <tt> specially, which currently means quoting :: to avoid annoying error messages from doxygen. Additionally switch to the string processing templates from doc/manual/string.xsl, phasing out the home grown ones (too much work to write another string replace template, and too inconsistent to keep using the self-written uppercasing). Finally no more doxygen complaint about the MAC address example in the API documentation.

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Doxyfile.Main

    r89814 r92153  
    12701270# This tag requires that the tag GENERATE_HTML is set to YES.
    12711271
    1272 GENERATE_HTMLHELP      = YES
     1272GENERATE_HTMLHELP      = NO
    12731273
    12741274# The CHM_FILE tag can be used to specify the file name of the resulting .chm
     
    12771277# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
    12781278
    1279 CHM_FILE               = $(PATH_CHM)
     1279CHM_FILE               =
    12801280
    12811281# The HHC_LOCATION tag can be used to specify the location (absolute path
  • trunk/src/VBox/Main/Makefile.kmk

    r91487 r92153  
    267267        $(call MSG_TOOL,xsltproc,doxygen input,$<,$@)
    268268        $(QUIET)$(RM) -f $(wildcard $(VBOX_MAIN_DOC_DIR)/html/*) $(PATH_TARGET)/docs.Main
    269         $(QUIET)$(VBOX_XSLTPROC) -o $(PATH_TARGET)/VirtualBox.idl $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl $(VBOX_XIDL_FILE_SRC)
    270         $(QUIET)$(REDIRECT) -E 'DOCDIR=$(VBOX_MAIN_DOC_DIR)' -E 'PATH_TARGET=$(PATH_TARGET)' -E 'PATH_CHM=$(subst /,\,$(VBOX_MAIN_DOC_DIR)/VirtualBoxAPI.chm)' \
     269        $(QUIET)$(VBOX_XSLTPROC) --path ".:$(PATH_ROOT)/doc/manual" -o $(PATH_TARGET)/VirtualBox.idl $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl $(VBOX_XIDL_FILE_SRC)
     270        $(QUIET)$(REDIRECT) -E 'DOCDIR=$(VBOX_MAIN_DOC_DIR)' -E 'PATH_TARGET=$(PATH_TARGET)' \
    271271                -- doxygen $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main
    272272        $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) ">>>>>>>>>>>>>>>>>>>> Main.err: >>>>>>>>>>>>>>>>>>>>>>>>"
     
    277277        $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> $(PATH_TARGET)/Main.err"
    278278        $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
    279         -$(EXEC_X86_WIN32) $(VBOX_PATH_HTML_HELP_WORKSHOP)/hhc.exe $(subst /,\\,$(VBOX_MAIN_DOC_DIR)/html/index.hhp)
    280279        $(APPEND) $(PATH_TARGET)/docs.Main
    281280# aliases
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r92133 r92153  
    21542154    </const>
    21552155    <const name="Hex"                    value="1">
    2156       <desc>Value format is a series of hex bytes (09314f3200fe), optionally colons
    2157         as byte separators (9:31:4f:32::fe).</desc>
     2156      <desc>Value format is a series of hex bytes (<tt>09314f3200fe</tt>),
     2157        optionally colons as byte separators (<tt>9:31:4f:32::fe</tt>).</desc>
    21582158    </const>
    21592159  </enum>
  • trunk/src/VBox/Main/idl/doxygen.xsl

    r82969 r92153  
    1717-->
    1818
    19 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     19<xsl:stylesheet
     20  version="1.0"
     21  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     22  xmlns:str="http://xsltsl.org/string"
     23  exclude-result-prefixes="str"
     24>
     25<!-- The exclude-result-prefixes attribute is needed since otherwise the <tt>
     26  tag added for the ID in interface and enum descriptions would get the
     27  namespace, confusing doxygen completely. -->
     28
     29<xsl:import href="string.xsl"/>
     30
    2031<xsl:output method="html" indent="yes"/>
    2132
    2233<xsl:strip-space elements="*"/>
    23 
    24 <xsl:include href="typemap-shared.inc.xsl" />
    2534
    2635
     
    4655    <xsl:apply-templates/>
    4756  </xsl:copy>
     57</xsl:template>
     58
     59<!--
     60 * special treatment of <tt>, making sure that Doxygen will not interpret its
     61 * contents (assuming it is a leaf tag)
     62-->
     63<xsl:template match="desc//tt/text()">
     64  <xsl:variable name="subst1">
     65    <xsl:call-template name="str:subst">
     66      <xsl:with-param name="text" select="." />
     67      <xsl:with-param name="replace" select="'::'" />
     68      <xsl:with-param name="with" select="'\::'" />
     69    </xsl:call-template>
     70  </xsl:variable>
     71  <xsl:value-of select="$subst1"/>
    4872</xsl:template>
    4973
     
    235259  <xsl:apply-templates select="." mode="middle"/>
    236260@par Interface ID:
    237 <tt>{<xsl:call-template name="string-to-upper">
    238     <xsl:with-param name="str" select="../@uuid"/>
     261<tt>{<xsl:call-template name="str:to-upper">
     262    <xsl:with-param name="text" select="../@uuid"/>
    239263  </xsl:call-template>}</tt>
    240264  <xsl:text>&#x0A;*/&#x0A;</xsl:text>
     
    303327  <xsl:apply-templates select="." mode="middle"/>
    304328@par Interface ID:
    305 <tt>{<xsl:call-template name="string-to-upper">
    306     <xsl:with-param name="str" select="../@uuid"/>
     329<tt>{<xsl:call-template name="str:to-upper">
     330    <xsl:with-param name="text" select="../@uuid"/>
    307331  </xsl:call-template>}</tt>
    308332  <xsl:text>&#x0A;*/&#x0A;</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette