DITA-features-in-docs.dita 5.8 KB

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