Changeset 98897 in vbox
- Timestamp:
- Mar 9, 2023 5:39:48 PM (21 months ago)
- Location:
- trunk/doc/manual
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Makefile.kmk
r98896 r98897 479 479 ########################################################################################## 480 480 481 ifdef PDF_FROM_LATEX481 ifdef TO_BE_REMOVED 482 482 # Generate PDF from LaTeX 483 483 # Note: out_dir needs to be referenced with an escaped $ so it doesn't expand as eval expands it input. … … 501 501 endef 502 502 $(foreach lang,$(VBOX_MANUAL_LANGUAGES),$(evalcall2 def_vbox_usermanual_tex_to_pdf)) 503 endif 503 endif # TO_BE_REMOVED 504 504 505 505 # Generate LaTeX from XML … … 791 791 # 792 792 ########################################################################################## 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 $$@) 807 809 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@) 808 810 $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) \ … … 811 813 $< 812 814 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.xsl817 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 $$@) 827 829 $(call MSG_TOOL,xsltproc $(notdir $(firstword $(filter %.xsl,$^))),,$(firstword $(filter %.xml,$^)),$@) 828 830 $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT) \ … … 832 834 $< 833 835 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)) 838 840 $(call MSG_L1,Packing documentation $@) 839 841 $(QUIET)$(RM) -f $@ 840 842 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_MANUAL_OUTBASE)/en_US/ -- $(VBOX_ZIP) \ 841 843 -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 844 862 html:: $(VBOX_PATH_MANUAL_OUTBASE)/en_US/html-chunks/index.html 845 863 qhelp:: $(addprefix $(VBOX_PATH_MANUAL_OUTBASE)/en_US/qhelp/, $(VBOX_QHELP_OUTPUT_FILES)) -
trunk/doc/manual/correct_references.py
r98896 r98897 100 100 if id not in xref_dictionary: 101 101 xref_dictionary[id] = os.path.basename(file) 102 print("%s %s" % (id, os.path.basename(file)))103 102 else: 104 103 logging.warning('Non unique topic/section id %s in file %s. This is already found in %s' … … 136 135 file_handle.write("".join(file_content)) 137 136 file_handle.close() 137 138 138 if __name__ == "__main__": 139 139 main()
Note:
See TracChangeset
for help on using the changeset viewer.