Skip to content

Conversation

@zware
Copy link
Member

@zware zware commented Jul 2, 2018

Specifically, set html_theme_options.body_max_width=none

https://bugs.python.org/issue34006

Specifically, set html_theme_options.body_max_width=none
Doc/make.bat Outdated
if NOT "%2" EQU "" (
echo.Can't specify filenames to build with htmlview target, ignoring.
)
set SPHINXOPTS=-D html_theme_options.body_max_width=none %SPHINXOPTS%
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

htmlview is the wrong target; it makes html in the default location and views the result in the default browser.
But the new line works in that the line limit is gone in the resulting html. So the new line just needs to go somewhere else.

I tried moving the new line up under 136 if "%1" EQU "htmlhelp" ( but that failed. I believe this is because the html has already been built by Sphinx with the line limit and the next step just compresses the html as is into the .chm. I will try putting the addition guarded by the same if somewhere up above.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the right place, a couple of line up, before cmd.... Preparing blurb.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that, I managed to misread pretty terribly. Fixed; still not tested.

@terryjreedy
Copy link
Member

Does the news item look ok to you? also as commit message?

@zware
Copy link
Member Author

zware commented Jul 2, 2018

Looks fine to me.

@terryjreedy terryjreedy merged commit d824ca7 into python:master Jul 2, 2018
@miss-islington
Copy link
Contributor

Thanks @zware for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-bot
Copy link

GH-8053 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 2, 2018
)

 The line-length limit is not needed because the pages appear in a separate app rather
 than on a browser tab.  It can also interact badly with the DPI setting.
(cherry picked from commit d824ca7)

Co-authored-by: Zachary Ware <[email protected]>
@bedevere-bot
Copy link

GH-8054 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 2, 2018
)

 The line-length limit is not needed because the pages appear in a separate app rather
 than on a browser tab.  It can also interact badly with the DPI setting.
(cherry picked from commit d824ca7)

Co-authored-by: Zachary Ware <[email protected]>
miss-islington added a commit that referenced this pull request Jul 2, 2018
 The line-length limit is not needed because the pages appear in a separate app rather
 than on a browser tab.  It can also interact badly with the DPI setting.
(cherry picked from commit d824ca7)

Co-authored-by: Zachary Ware <[email protected]>
miss-islington added a commit that referenced this pull request Jul 2, 2018
 The line-length limit is not needed because the pages appear in a separate app rather
 than on a browser tab.  It can also interact badly with the DPI setting.
(cherry picked from commit d824ca7)

Co-authored-by: Zachary Ware <[email protected]>
@zware zware deleted the htmlhelp-sphinxopts branch May 7, 2021 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants