Topics

Topics allow you to describe subsets of your model, to make it easier for people to learn about your model.

The Sphinx documentation generator creates a section of documentation for each topic. This section includes links to each item type contained in the topic, as well as a diagram showing the relationships among the item types.

Topic Index

To include topics, create a topic index file named baseDirectory/Topics/index.txt. This file should contain the name of one topic per line. Each topic gets its own folder as described below.

Individual Topics Definitions

A topic is defined in a folder named baseDirectory/Topics/TopicName. Be sure to replace TopicName with the name of your topic, which should also be included in the topic index file.

Each topic folder contains two files.

items.txt

baseDirectory/Topics/TopicName/items.txt is a plain text file with the name of one item type per line.

readme.markdown

The baseDirectory/Topics/TopicName/readme.markdown file contains text to describe your topic.

See also

See https://daringfireball.net/projects/markdown/basics for a primer on using markdown to format text.

Articles/

Articles allow you to include extra content in the documentation that is generated for your topic.

Each article is a reStructuredText file, and is included in the Sphinx documentation.

See also

For details on editing reStructuredText, see http://www.sphinx-doc.org/en/stable/rest.html

toc.txt

To include an article on the topics page, you can include the name of the article in the topicDirectory/toc.txt file. This file contains one path per line.

Example Layout

As an example, assume the following directory structure.

  • topicDirectory/ * toc.txt * Articles/

    • article1.rst

    • article2.rst

In this case, the toc.txt file might contain a reference to article1 and article2.