Closed GeertvanHorrik closed 7 years ago
Nice work!
Use custom NavigationContext for search to ensure search works regardless of PathSpecification
Could you elaborate a bit what this means?
Before this fix, when you use a custom PathSpecification or UrlFormatting, DocNet will generate docnet-search-htm (without extension), thus breaking search.
I tried another fix before (where it would result in docnet-search/index.htm respecting the PathSpecification etc), but then search still wouldn't work (probably because docnet-search.htm is hardcoded somewhere). Therefore I just create a custom NavigationContext just for this file with no url formatting and default path specification.
Yeah it's likely in the javascript search file, something that's not updated by the tool so let's leave it as you changed it.
Merged!
This PR solves 3 issues: