docfx icon indicating copy to clipboard operation
docfx copied to clipboard

Docfx does not wrap title on word boundary

Open peterennis opened this issue 10 years ago • 9 comments

capture44

I found this reference: http://stackoverflow.com/questions/23406112/css-word-wrap-that-wraps-whole-word-without-breaking-them

peterennis avatar Jul 20 '16 00:07 peterennis

This css will apply to both reference page and conceptual page. For reference page with extreme long namespace/class name (e.g. this), word-wrap: break-word; word-break: break-all; seems to be the best option so far.

superyyrrzz avatar Jul 20 '16 02:07 superyyrrzz

Some other examples. capture46 capture47

peterennis avatar Jul 21 '16 00:07 peterennis

@superyyrrzz, please consider the workaround for long namespace/class names I decribed in this issue

svver avatar Aug 04 '16 12:08 svver

I agree with https://github.com/dotnet/docfx/issues/234 concerning a different location for "Improve this Doc". On a separate line above the text and right aligned as default. Configuration could change alignment with CSS.

peterennis avatar Aug 04 '16 20:08 peterennis

We just moved "improve this doc" button to the right navigation via #626 in develop branch, and it will be in master branch next Monday. Next steps are refining the word wrap for conceptual pages.

hellosnow avatar Aug 25 '16 08:08 hellosnow

@hellosnow, Thanks for the update. I will look into it again after the next release.

peterennis avatar Aug 27 '16 04:08 peterennis

similar issue #234

vicancy avatar May 09 '17 07:05 vicancy

We fix the title by #1695 , the github pages will be refreshed after v2.18.0 is released.

hellosnow avatar May 26 '17 09:05 hellosnow

The code is in dev branch and not in master yet, the github pages will be refreshed after v2.19 is released.

hellosnow avatar May 31 '17 04:05 hellosnow