When the package, framework, and a type have basically the same name, how do I get DocC to render my custom landing and type pages instead of the defaults?
Sometimes I get my landing page to render, sometimes the data type's, never both, often neither
Some readers want more of the story:
Use case:
My package is named SlothWatcher. One of the source files is SlothWatcher.swift, which implements enum SlothWatcher, which serves as a namespace for various constants and functions.
I think it's totally reasonable (and common?) to:
- Name the package
SlothWatcher. - Name the backbone namespace
enum SlothWatcher. - Name the file defining the backbone namespace
SlothWatcher.swift
Enter DocC
Now I want DocC to generate documentation. DocC adds some requirements, which are all or some combination of:
- The
doccdocumentation catalog must be namedSlothWatcher.docc. - The landing page for the documentation catalog, if overriden, must be named
SlothWatcher.md. - The first line of that file must be
# SlothWatcher(name in double-backticks). - All documentation referring to the
enumdocs must useSlothWatcher/SlothWatcher. Certainly in body text, and I've tried it both ways as the header for theenumextension. - If there's a naming rule for the
enumextension file, I haven't found it. (Other than that you can't easily put a slash into a file name.)
I've lost track. Some of these may not be required at all, given that Xcode defaults none of them.
How, if at all, can I get this into working order?