Statiq.Docs
Statiq.Docs copied to clipboard
Nested types cause URL conflicts for Docs recipe
When using the Docs recipe on an code base with nested types there can be name conflicts.
For example when running the recipe against this code:
namespace Demo
{
public class Temperature
{
public enum Mode { Hot, Cold }
}
public class Orientation
{
public enum Mode { North, South }
}
}
It produces this error:
Multiple documents output to api/Demo/Mode/index.html (this probably wasn't intended):
Demo.Orientation.Mode
Demo.Temperature.Mode
I just ran into this issue as well. I would have expected Demo.Temperature.Mode
to generate documentation at api/Demo/Temperature/Mode/index.html which would avoid the conflict.