DITA-features-in-docs.dita 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <concept id="ID">
  5. <title>DITA features in the documentation</title>
  6. <titlealts>
  7. <navtitle>DITA features in docs</navtitle>
  8. </titlealts>
  9. <shortdesc>The DITA Open Toolkit uses various recent DITA features in the project documentation.</shortdesc>
  10. <conbody>
  11. <p>The
  12. <xref href="https://github.com/dita-ot/docs" format="html" scope="external">source files</xref> for the DITA-OT
  13. documentation include examples of the following DITA features (among others):</p>
  14. <ul>
  15. <li>subjectScheme classification for controlling available attributes</li>
  16. <li>profiling and branch filtering (novice/expert content)</li>
  17. <li>extending topics with conref push</li>
  18. <li>keys and key references</li>
  19. <li>XML mention domain</li>
  20. </ul>
  21. <section>
  22. <title>Subject schemes </title>
  23. <p>Various topics, sections and elements in the docs are profiled by audience:</p>
  24. <p><codeblock><coderef href="../resources/conref-task.dita#token=excerpt-variables,end-excerpt"/></codeblock></p>
  25. <p>An “audience” subject scheme controls the values that are available for the <xmlatt>audience</xmlatt>
  26. attribute:</p>
  27. <p><codeblock><coderef href="../resources/subjectscheme.ditamap#token=excerpt-audience,end-excerpt"/></codeblock></p>
  28. </section>
  29. <section>
  30. <title>Branch filtering: re-using profiled content</title>
  31. </section>
  32. <section>
  33. <p><cite>Installing DITA-OT</cite> pulls a subset of the build description from <cite>using the
  34. <cmdname>dita</cmdname> command</cite>, filtered to display only content deemed suitable for novice users
  35. under
  36. <xref keyref="first-build-using-dita-command"/>:</p>
  37. <p><codeblock><coderef href="../topics/installing.ditamap#token=branch-filter,end-filtering"/></codeblock></p>
  38. <p>The same content appears later in
  39. <xref keyref="build-using-dita-command"/> with additional information on arguments, options and examples.</p>
  40. <p><codeblock><coderef href="../topics/publishing.ditamap#token=branch-filter,end-filtering"/></codeblock></p>
  41. </section>
  42. <section>
  43. <title>Conref push</title>
  44. </section>
  45. <section>
  46. <p>The docs build uses the conref push mechanism (with the <codeph>pushreplace</codeph>, <codeph>mark</codeph>,
  47. and <codeph>pushafter</codeph>
  48. <xref keyref="dita13-spec-conaction">conactions</xref>) to extend the parameter descriptions embedded in the
  49. default plug-ins:</p>
  50. <p><codeblock><coderef href="../parameters/ant-parameters-details.dita#token=excerpt-csspath,end-excerpt"/></codeblock></p>
  51. <p>The pushed content appears in the output after the default description. (See
  52. <xref keyref="parameters-base-html"/>.)</p>
  53. <note type="tip">You could also use the same mechanism to extend the documentation with custom information that
  54. applies only to your company's toolkit distribution.</note>
  55. </section>
  56. <section>
  57. <title>Keys and key references</title>
  58. </section>
  59. <section>
  60. <p>The <codeph>key-definitions.ditamap</codeph> defines keys for version references, re-usable links, etc.</p>
  61. <p>This key definition defines the maintenance release version:</p>
  62. <p><codeblock><coderef href="../resources/key-definitions.ditamap#token=excerpt-version,end-excerpt"/></codeblock></p>
  63. <p>In topics, the keyword is used in place of hard-coded version references:</p>
  64. <codeblock>&lt;title&gt;DITA Open Toolkit &lt;keyword keyref="maintenance-version"/&gt; Release Notes&lt;/title&gt;</codeblock>
  65. </section>
  66. <section>
  67. <title>XML mention domain</title>
  68. </section>
  69. <section>
  70. <p>The docs use the
  71. <xref format="html"
  72. href="http://docs.oasis-open.org/dita/dita/v1.3/os/part3-all-inclusive/langRef/containers/xml-mention-domain.html#xml-mention-domain"
  73. scope="external">XML mention domain</xref> to mark up XML elements and attributes:</p>
  74. <codeblock>&lt;li id="1777"&gt;
  75. DITA 1.3: Initial support has been added for the &lt;xmlatt&gt;orient&lt;/xmlatt&gt;
  76. attribute on &lt;xmlelement&gt;table&lt;/xmlelement&gt; elements. These changes allow
  77. Antenna House Formatter to render tables in landscape mode when the
  78. &lt;xmlatt&gt;orient&lt;/xmlatt&gt; attribute is set to &lt;option&gt;land&lt;/option&gt;. […]
  79. &lt;/li&gt;</codeblock>
  80. <p>When the toolkit generates output for the sample above:</p>
  81. <ul>
  82. <li>the XML element name is wrapped in angle brackets as <xmlelement>table</xmlelement>
  83. </li>
  84. <li>the attribute name is prefixed with an “at” sign as <xmlatt>orient</xmlatt></li>
  85. </ul>
  86. </section>
  87. </conbody>
  88. </concept>