VirtualBox

Changeset 98897 in vbox


Ignore:
Timestamp:
Mar 9, 2023 5:39:48 PM (21 months ago)
Author:
vboxsync
Message:

Docs: bugref:10302. First take on migrating html creation to dita. missing some parts.

Location:
trunk/doc/manual
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/Makefile.kmk

    r98896 r98897  
    479479 ##########################################################################################
    480480
    481  ifdef PDF_FROM_LATEX
     481 ifdef TO_BE_REMOVED
    482482  # Generate PDF from LaTeX
    483483  # Note: out_dir needs to be referenced with an escaped $ so it doesn't expand as eval expands it input.
     
    501501  endef
    502502  $(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(evalcall2 def_vbox_usermanual_tex_to_pdf))
    503  endif
     503 endif # TO_BE_REMOVED
    504504
    505505 # Generate LaTeX from XML
     
    791791 #
    792792 ##########################################################################################
    793  VBOX_DOCBOOK_HTML_ONE_PAGE_FORMATCFG = \
    794         $(VBOX_PATH_MANUAL_SRC)/docbook-html-one-page-formatcfg.xsl \
    795         $(VBOX_PATH_MANUAL_SRC)/common-formatcfg.xsl \
    796         $(VBOX_PATH_MANUAL_SRC)/common-html-formatcfg.xsl
    797 
    798  $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html: \
    799                 $(addprefix $(VBOX_PATH_MANUAL_SRC)/en_US/,$(VBOX_MANUAL_XML_FILES)) \
    800                 $(VBOX_MANUAL_XML_FILES_COMMON) \
    801                 $(VBOX_MANUAL_XML_FILES_GENERATED_en_US) \
    802                 $(addprefix $(VBOX_PATH_MANUAL_SRC)/en_US/,$(VBOX_MANUAL_PNG_FILES_en_US)) \
    803                 $(VBOX_DOCBOOK_HTML_ONE_PAGE_FORMATCFG) \
    804                 $(if $(VBOX_HAVE_XMLLINT),$(VBOX_PATH_MANUAL_OUTBASE)/en_US/validatemanual.run,) \
    805                 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) $(VBOX_XML_CATALOG_MANUAL) \
    806                 $(VBOX_XML_ENTITIES) | $$(dir $$@)
     793
     794 ifdef TO_BE_REMOVED
     795  VBOX_DOCBOOK_HTML_ONE_PAGE_FORMATCFG = \
     796        $(VBOX_PATH_MANUAL_SRC)/docbook-html-one-page-formatcfg.xsl \
     797        $(VBOX_PATH_MANUAL_SRC)/common-formatcfg.xsl \
     798        $(VBOX_PATH_MANUAL_SRC)/common-html-formatcfg.xsl
     799
     800  $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html: \
     801                $(addprefix $(VBOX_PATH_MANUAL_SRC)/en_US/,$(VBOX_MANUAL_XML_FILES)) \
     802                $(VBOX_MANUAL_XML_FILES_COMMON) \
     803                $(VBOX_MANUAL_XML_FILES_GENERATED_en_US) \
     804                $(addprefix $(VBOX_PATH_MANUAL_SRC)/en_US/,$(VBOX_MANUAL_PNG_FILES_en_US)) \
     805                $(VBOX_DOCBOOK_HTML_ONE_PAGE_FORMATCFG) \
     806                $(if $(VBOX_HAVE_XMLLINT),$(VBOX_PATH_MANUAL_OUTBASE)/en_US/validatemanual.run,) \
     807                $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) $(VBOX_XML_CATALOG_MANUAL) \
     808                $(VBOX_XML_ENTITIES) | $$(dir $$@)
    807809        $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@)
    808810        $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) \
     
    811813                $<
    812814
    813  VBOX_DOCBOOK_HTML_CHUNKS_FORMATCFG = \
    814         $(VBOX_PATH_MANUAL_SRC)/docbook-html-chunks-formatcfg.xsl \
    815         $(VBOX_PATH_MANUAL_SRC)/common-formatcfg.xsl \
    816         $(VBOX_PATH_MANUAL_SRC)/common-html-formatcfg.xsl
    817 
    818  $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html: \
    819                 $(addprefix $(VBOX_PATH_MANUAL_SRC)/en_US/,$(VBOX_MANUAL_XML_FILES)) \
    820                 $(VBOX_MANUAL_XML_FILES_COMMON) \
    821                 $(VBOX_MANUAL_XML_FILES_GENERATED_en_US) \
    822                 $(VBOX_DOCBOOK_HTML_CHUNKS_FORMATCFG) \
    823                 $(addprefix $(VBOX_PATH_MANUAL_SRC)/en_US/,$(VBOX_MANUAL_PNG_FILES_en_US)) \
    824                 $(if $(VBOX_HAVE_XMLLINT),$(VBOX_PATH_MANUAL_OUTBASE)/en_US/validatemanual.run,) \
    825                 $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) $(VBOX_XML_CATALOG_MANUAL) \
    826                 $(VBOX_XML_ENTITIES) | $$(dir $$@)
     815  VBOX_DOCBOOK_HTML_CHUNKS_FORMATCFG = \
     816        $(VBOX_PATH_MANUAL_SRC)/docbook-html-chunks-formatcfg.xsl \
     817        $(VBOX_PATH_MANUAL_SRC)/common-formatcfg.xsl \
     818        $(VBOX_PATH_MANUAL_SRC)/common-html-formatcfg.xsl
     819
     820  $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html: \
     821                $(addprefix $(VBOX_PATH_MANUAL_SRC)/en_US/,$(VBOX_MANUAL_XML_FILES)) \
     822                $(VBOX_MANUAL_XML_FILES_COMMON) \
     823                $(VBOX_MANUAL_XML_FILES_GENERATED_en_US) \
     824                $(VBOX_DOCBOOK_HTML_CHUNKS_FORMATCFG) \
     825                $(addprefix $(VBOX_PATH_MANUAL_SRC)/en_US/,$(VBOX_MANUAL_PNG_FILES_en_US)) \
     826                $(if $(VBOX_HAVE_XMLLINT),$(VBOX_PATH_MANUAL_OUTBASE)/en_US/validatemanual.run,) \
     827                $(VBOX_XML_CATALOG) $(VBOX_XML_CATALOG_DOCBOOK) $(VBOX_XML_CATALOG_MANUAL) \
     828                $(VBOX_XML_ENTITIES) | $$(dir $$@)
    827829        $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@)
    828830        $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) \
     
    832834                $<
    833835
    834  $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip: \
    835                 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html \
    836                 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html \
    837                 $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/,$(VBOX_MANUAL_PNG_FILES_en_US))
     836  $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip: \
     837                $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html \
     838                $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html \
     839                $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/,$(VBOX_MANUAL_PNG_FILES_en_US))
    838840        $(call MSG_L1,Packing documentation $@)
    839841        $(QUIET)$(RM) -f $@
    840842        $(QUIET)$(REDIRECT) -C $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ -- $(VBOX_ZIP) \
    841843                -9 -r $@ html-single html-chunks $(VBOX_MANUAL_PNG_FILES_en_US)
    842 
    843  html:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html
     844 endif # TO_BE_REMOVED
     845
     846 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/UserManual.zip: \
     847                $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html
     848        $(call MSG_L1,Packing documentation $@)
     849        $(QUIET)$(RM) -f $@
     850        $(QUIET)$(REDIRECT) -C $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ -- $(VBOX_ZIP) \
     851                -9 -r $@ html-single html-chunks
     852
     853 $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html: \
     854                $$(VBOX_MANUAL_XML_FILES_COMMON) \
     855                dita_common
     856                $(QUIET)$(call VBOX_DITA_ENV_SETUP) \
     857                $(VBOX_JAVA) -jar $(VBOX_DITA_PATH_LIB)/dost.jar /i:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/UserManual.ditamap \
     858                        /transtype:xhtml /ditadir:$(VBOX_DITA_PATH) /outdir:$(@D) /tempdir:$(VBOX_PATH_MANUAL_OUTBASE)/en_US/dita/temp
     859
     860 # disable for now
     861 #html:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-single/UserManual.html
    844862 html:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html
    845863 qhelp:: $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/qhelp/, $(VBOX_QHELP_OUTPUT_FILES))
  • trunk/doc/manual/correct_references.py

    r98896 r98897  
    100100                            if id not in xref_dictionary:
    101101                                xref_dictionary[id] = os.path.basename(file)
    102                                 print("%s %s" % (id, os.path.basename(file)))
    103102                            else:
    104103                                logging.warning('Non unique topic/section id %s in file %s. This is already found in %s'
     
    136135        file_handle.write("".join(file_content))
    137136        file_handle.close()
     137
    138138if __name__ == "__main__":
    139139    main()
Note: See TracChangeset for help on using the changeset viewer.

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