Giter Site home page Giter Site logo

Comments (4)

chrispy-snps avatar chrispy-snps commented on June 12, 2024

@pflotscher - we are heavy users of nested subtopics. We like that the DITA topic/subtopic structure directly corresponds to the HTML topic structure, which allows our technical writers to craft the customer content experience that they want (no topic merging/splitting during transformation).

We explicitly include nested subtopic references in our maps:

<topicref href="path/to/topic.dita" keys="topic">
  <topicref href="path/to/topic.dita#subtopic1" keys="subtopic1">
    <topicref href="path/to/topic.dita#subsubtopic" keys="subsubtopic"/>
  </topicref>
  <topicref href="path/to/topic.dita#subtopic2" keys="subtopic2"/>
</topic>

We also use keys, so we need these explicit topic references to specify the key values.

Adding these explicit subtopic references is a bit of a pain for the technical writers. If you are using Oxygen, you might also want to put your support behind this issue:

EXM-48539 Automatically update topicrefs to nested topics in the DITA Map

from dita-ot.

jelovirt avatar jelovirt commented on June 12, 2024

This feature would need to be under a toggle, because we don't want to break backwards compatibility.

from dita-ot.

chrispy-snps avatar chrispy-snps commented on June 12, 2024

@pflotscher - do you use topic keys and keyrefs in your flow?

from dita-ot.

chrispy-snps avatar chrispy-snps commented on June 12, 2024

@pflotscher - your request is reasonable, considering that the pdf2 transform does include implicit nested subtopics in its TOC.

If it makes you feel better in the meantime, explicit nested topic references are normal for those of us that use keys and keyrefs, so they are not inherently bad or inelegant if you update your DITA XML generation to generate them.

Regarding your reply item 1, if a nested topic has no explicit reference, the topic content is generated but the HTML TOC entry is not.

Regarding your reply item 2, that is indeed the tricky part! Oxygen has a graphical map view (called the DITA Maps Manager) that nicely shows topic/subtopic structure and key values. But currently, it does not automatically search inside topics for unreferenced subtopics. That is not an easy problem because users can do thinks like rearrange subtopics and even move them from one file to another, and ideally a best-effort attempt should be made to keep their key values in the process.

from dita-ot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.