Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

viewcode: highlighted code continues to be generated even if not referenced #8756

Closed
tk0miya opened this issue Jan 24, 2021 · 0 comments
Closed

Comments

@tk0miya
Copy link
Member

tk0miya commented Jan 24, 2021

Describe the bug
viewcode: highlighted code continues to be generated even if not referenced

To Reproduce

  1. Add autodoc entry to the reST file (ex. reference.rst)
  2. Build HTML (make html)
  3. Remove the 1) file and HTML files (rm -rf _build/html)
  4. Build HTML again w/ incremental build (make html)

Expected behavior
Highlighted code will not be generated.

Your project
No

Screenshots
No

Environment info

  • OS: Mac
  • Python version: 3.9.1
  • Sphinx version: HEAD of 3.x
  • Sphinx extensions: sphinx.ext.autodoc, sphinx.ext.viewcode
  • Extra tools: No

Additional context
No

@tk0miya tk0miya added this to the 3.5.0 milestone Jan 24, 2021
tk0miya added a commit that referenced this issue Jan 25, 2021
Fix #8756: viewcode: highlighted code is generated even if not referenced
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant