Sorry if this is an easy solution and I'm not aware.
Assuming source files are in a directory like this...
...and toc.yml looks like this:
- name: Article 1
href: article-1.md
- name: Article 2
href: article-2.md
- name: Article 3
href: article-3.md
Is there a way to see that article-4.md and article-5.md are in the same directory as toc.yml but not referenced in the file?
I know of scripts that identify image files that are un-referenced in a directory of Markdown files. I hope to accomplish roughly the same thing with un-referenced Markdown files.
Thank you if anyone knows how to do this, or has a suggestion on what I might pursue.
I have discovered now that one way is built in to DocFx. You can generate PDFs with an attribute of generatesAppendices
as true
. This produces a document called appendices
in the directory the PDFs are output. It shows all files not linked up to a TOC. Add the .pdf
extension.
Example usage in docfx.json:
"template": [
"pdf.default",
],
"keepRawFiles": false,
"generatesAppendices": "true",