For AI agents: a documentation index is available at https://idratherbewriting.com/llms.txt. Markdown versions of all pages are available by appending .md to any page URL.

Search results

DITA: File and folder organization

Here are some best practices for organizing files and folders in DITA. Make sure maps are at the root level, and everything else exists as files or folders below the map.
When you're organizing your DITA files, it may be unclear about the right structure to use. Although you can use a variety of methods to organize your files, note the following limitations:
  • The DITA Map file might have trouble loading topics in higher level folders. DITA Map files are like kings. They want all the other files to sit below them either in the same folder or in subfolders. Oxygen has a special parameter override you can set if you're referencing topics in higher folders than the map.
  • References to a file will be more likely to break if you use subfolders. For example, suppose you put all your configuration topics into a folder called "configuration". References to a topic there will look like this: configuration/sample_config.dita. Suppose you decide to move sample_config.dita into another folder. All your links will break. (To change folder paths, I believe you use the refactoring options, but honestly I haven't quite figured them out.)
  • I do put images and glossary items in their own subfolders.
  • I always name my ditamap docmap.ditamap.

Sponsored

About Tom Johnson

Tom Johnson

I'm an API technical writer based in the Seattle area. On this blog, I write about topics related to technical writing and communication — such as software documentation, API documentation, AI, information architecture, content strategy, writing processes, agent skills, tech comm careers, and more. Check out my AI courses for more on the latest in AI and tech comm. If you're looking for info about documenting APIs, see my API documentation course.

If you're a technical writer and want to keep on top of the latest trends in tech comm, be sure to subscribe to email updates below. You can also learn more about me or contact me.

Finally, I want to note a couple of things. I usually write the first drafts of my posts myself and then use AI to improve accuracy, clarity, and detail in places, so my writing is a mix of human and AI. (Hopefully that's not too off-putting.) Also, the opinions I express on my blog are my own perspectives, not those of my employer.