VirtualBox

Changeset 99268 in vbox


Ignore:
Timestamp:
Apr 3, 2023 9:09:28 PM (20 months ago)
Author:
vboxsync
Message:

manual: Theme for DITA-OT 4.0.x. bugref:10302

Location:
trunk/doc/manual
Files:
1 added
1 edited

Legend:

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

    r99175 r99268  
    142142        -- $(VBOX_JAVA) -jar "$1/lib/dost.jar" "/ditadir:$1" $3 $4 # "/outercontrol:fail" ?
    143143
    144  if 0 # Experiments with dita-ot v4.0.2. Requires java 17.
     144 ifdef VBOX_DITA_USING_LATEST # Experiments with dita-ot v4.0.2. Requires java 17.
     145  VBOX_DITA_USING_LATEST  := 1
    145146  VBOX_JAVA_HOME          := C:/Program Files/Java/jdk-17/
    146147  VBOX_DITA_ORIGINAL_PATH := D:/Tmp/dita/dita-ot-4.0.2
     
    671672                $$(qfirstfile , $$(qwildcard , $$(VBOX_PATH_MANUAL_SRC)/$(1)/$(2).xml) $(3) $$(VBOX_PATH_MANUAL_SRC)/en_US/$(2).xml)
    672673        $$(QUIET)$$(call VBOX_XSLTPROC_WITH_CAT) \
     674                $(if-expr defined(VBOX_DITA_USING_LATEST),--stringparam "g_fReplaceHypens" "true",) \
    673675                --output "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics/$(2).dita" \
    674                 $$(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manual-dita.xsl \
     676                $$(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manual-dita.xsl \
    675677                "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/topics/$(2).xml"
    676678        $$(QUIET)$$(VBOX_BLD_PYTHON) $$(VBOX_PATH_MANUAL_SRC)/add_file_to_id_only_references.py \
     
    684686        $(evalcall2 def_vbox_refentry_file_to_dita,$(lang),user_isomakercmd-man, \
    685687                $(PATH_ROOT)/src/VBox/Runtime/common/fs/isomakercmd-man.xml))
     688
     689 # Run conversion testcase.
     690 refentry-to-dita-test:
     691        $(RM) -f -- \
     692                "$(VBOX_PATH_MANUAL_OUTBASE)/testcase-refentry1.xml" \
     693                "$(VBOX_PATH_MANUAL_OUTBASE)/testcase-refentry1.dita"
     694        $(call VBOX_XSLTPROC_WITH_CAT) \
     695                --output "$(VBOX_PATH_MANUAL_OUTBASE)/testcase-refentry1.xml" \
     696                $(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manual-dita-pre.xsl \
     697                $(VBOX_PATH_MANUAL_SRC)/testcase/refentry1.xml
     698        $(call VBOX_XSLTPROC_WITH_CAT) \
     699                --output "$(VBOX_PATH_MANUAL_OUTBASE)/testcase-refentry1.dita" \
     700                $(VBOX_PATH_MANUAL_SRC)/docbook-refentry-to-manual-dita.xsl \
     701                "$(VBOX_PATH_MANUAL_OUTBASE)/testcase-refentry1.xml"
     702
    686703
    687704 ## @todo Make use of docbook-refentry-to-manual-overview.xsl again (after dita conversion)?
     
    704721                $$(VBOX_MANUAL_XML_FILES_GENERATED_$(lang)) \
    705722                $$(VBOX_USER_MANUAL_DITA_STAGED_FILES_$(lang)) \
    706                 $$(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES_$(lang))
     723                $$(VBOX_USER_MANUAL_CONVERTED_REFENTRY_DITA_FILES_$(lang)) \
     724                $$(VBOX_PATH_MANUAL_SRC)/pdf-theme-UserManual.yaml \
     725                $$(VBOX_PATH_MANUAL_SRC)/en_US/images/vboxlogo.png
    707726        $$(QUIET)$$(RM) -f -- "$$@" "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/UserManual_pdf.log"
    708727        $$(QUIET)$$(RM) -Rf -- "$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita-ot-pdf/"
     
    712731                "/filter:$$(VBOX_PATH_MANUAL_SRC)/$(1)/dita/ohc.ditaval" \
    713732                "/outdir:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)" \
    714                 "/tempdir:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/temp_pdf", \
    715                 ,,"--logfile=$$(@D)/UserManual_pdf.log")
     733                "/tempdir:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/temp_pdf" \
     734                , \
     735               $(if-expr defined(VBOX_DITA_DEBUG),"/cleantemp:no",) \
     736                , \
     737                "--theme=$$(VBOX_PATH_MANUAL_SRC)/pdf-theme-UserManual.yaml" \
     738                "--logfile=$$(@D)/UserManual_pdf.log" \
     739                $(if-expr defined(VBOX_DITA_DEBUG),"--clean.temp=no",) \
     740                )
    716741
    717742  ditamap-to-pdf: $$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/UserManual.pdf
     
    9951020 endif
    9961021
     1022
    9971023endif # if defined(VBOX_WITH_DOCS) && (!defined(VBOX_ONLY_BUILD) || defined(VBOX_ONLY_DOCS) || defined(VBOX_ONLY_SDK))
    9981024
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