You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/DevDocGuide.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,15 @@ The versioning system can also be used for showing doc versions from other dev b
119
119
***Run docfx locally** and check for warnings in the output whenever you modify existing APIs or update documentation pages
120
120
* Watch out for docfx **warnings on CI** after completing and merging your PR into one of the official MRTK branches
121
121
122
+
## Common errors when generating docs
123
+
* toc.yml errors: usually happens when an .md file gets moved/renamed or removed but the table of content file (toc.yml) pointing to that file wasn't updated accordingly. On the website this will result in a broken link on our top level or side navigation
124
+
* /// comments errors
125
+
* xml tag errors - docfx like any other xml parser can't handle malformed xml tags.
126
+
* typos in crefs
127
+
* incomplete namespace identifiers - docfx won't need the full namespace to the symbol you're referring to but the relative part of the namespace that's not included in the surrounding namespace of the cref.
128
+
Example: if you're in a namespace Microsoft.MixedReality.Toolkit.Core.Providers.UnityInput and the file you want to link in is Microsoft.MixedReality.Toolkit.Core.Interfaces.IMixedRealityServiceRegistrar your cref can look like this: cref="Interfaces.IMixedRealityServiceRegistrar"
129
+
* External crefs - As long as there's no xref service available (and listed in the docfx build file) crefs to external libraries won't work. If you still want to link to a specific external symbol that doesn't have xref service but an online api documentation you can use a href instead. Example: linking to EditorPrefs of Unity: <seehref="https://docs.unity3d.com/ScriptReference/EditorPrefs.html">EditorPrefs</see>
0 commit comments