values. Sphinx treats those the same as ``py:data``.
- ``py:data`` for data
- ``std:doc`` for pages
+ - ``std::special`` :label-warning:`m.css-specific` for
+ special pages such as class / module / page listing
``2`` A `mysterious number <https://github.com/dahlia/sphinx-fakeinv/blob/02589f374471fa47073ab6cbac38258c3060a988/sphinx_fakeinv.py#L92-L93>`_.
`Sphinx implementation <https://github.com/sphinx-doc/sphinx/blob/a498960de9039b0d0c8d24f75f32fa4acd5b75e1/sphinx/util/inventory.py#L129>`_
denotes this as ``prio`` but doesn't use it in any way.
inspect_create_intersphinx py:module 2 inspect_create_intersphinx.html -
inspect_create_intersphinx.pybind py:module 2 inspect_create_intersphinx.pybind.html -
page std:doc 2 page.html -
+index std:special 2 index.html -
+modules std:special 2 modules.html -
+classes std:special 2 classes.html -
+pages std:special 2 pages.html -
""".lstrip())
# Yes, above it should say A documentation page, but it doesn't
type_string = 'py:data'
elif entry.type == EntryType.PAGE:
type_string = 'std:doc'
+ elif entry.type == EntryType.SPECIAL:
+ # TODO: this will cause duplicates when multiple m.css projects
+ # gets together, solve better
+ type_string = 'std:special'
else: # pragma: no cover
- # TODO: what to do with these? allow linking to them? disambiguate
- # or prefix the names somehow?
- assert entry.type == EntryType.SPECIAL, entry.type
- continue
+ assert False
# Mark those with m-doc (as internal)
internal_inventory.setdefault(type_string, {})[path_str] = (entry.url, '-', ['m-doc'])