Add ZERO WIDTH SPACE to TOC yml
See original GitHub issueI’m using DocFX to generate our API documentation. I’m currently working on styling our own theme. The problem is our namespace are quite long so they disappear from the menu. When I was looking at the Microsoft .NET Core API documentation I saw they added the ZERO WIDTH SPACE character to the a href. Trying to do something like this for our documentation ended up in editing the toc.yml in the /api directory. But since this file is generated in a build on VSTS this will not work.
Now I’m figuring out how I can add this ZERO WIDTH SPACE before the dots in our namespace. Together with adding word-wrap: break-word;
to the CSS will result in nice word breaking in the menu.
Curious if it’s a useful edit to docfx or if it should be in a plugin.
Related to: https://github.com/dotnet/docfx/issues/234#issuecomment-274363106 https://github.com/dotnet/docfx/issues/1222#issuecomment-274362558
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
@qinezh , what about search?
@vicancy sounds a good approach. 👍