-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] master from sphinx-doc:master #50
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Reviewer's Guide by SourceryThis pull request focuses on removing unused variables throughout the Sphinx codebase and updating the ruff dependency. The changes improve code readability, maintainability, and reduce potential errors. The ruff dependency has been updated to version 0.11.0. Updated class diagram for AutoDirectiveclassDiagram
class AutoDirective {
+parse_name()
+resolve_name()
+_find_signature()
+should_suppress_value_header()
}
note for AutoDirective "Unused variable `tp_list` removed from `parse_name` and `_find_signature` methods."
note for AutoDirective "Unused variable `sep` removed from `resolve_name` method."
note for AutoDirective "Unused variable `docstring` removed from `should_suppress_value_header` method."
Updated class diagram for ImageMathclassDiagram
class ImageMath {
+convert_dvi_to_png()
+convert_dvi_to_svg()
+html_visit_displaymath()
}
note for ImageMath "Unused variable `stderr` removed from `convert_dvi_to_svg` method."
note for ImageMath "Unused variable `depth` removed from `html_visit_displaymath` method."
Updated class diagram for ViewcodeclassDiagram
class Viewcode {
+env_purge_doc()
+get_module_filename()
+collect_pages()
}
note for Viewcode "Unused variable `code` and `refname` removed from `env_purge_doc` method."
note for Viewcode "Unused variable `source` removed from `get_module_filename` method."
note for Viewcode "Unused variable `type` removed from `collect_pages` method."
Updated class diagram for GraphvizclassDiagram
class Graphviz {
+render_dot_latex()
+render_dot_texinfo()
}
note for Graphviz "Unused variable `outfn` removed from `render_dot_latex` and `render_dot_texinfo` methods."
Updated class diagram for IncludeclassDiagram
class Include {
+run()
}
note for Include "Unused variable `rel_filename` removed from `run` method."
Updated class diagram for CParserclassDiagram
class CParser {
+_parse_paren_expression_list()
}
note for CParser "Unused variable `trailing_comma` removed from `_parse_paren_expression_list` method."
Updated class diagram for CitationDomainclassDiagram
class CitationDomain {
+resolve_xref()
}
note for CitationDomain "Unused variable `lineno` removed from `resolve_xref` method."
Updated class diagram for CPPParserclassDiagram
class CPPParser {
+_parse_paren_expression_list()
}
note for CPPParser "Unused variable `trailing_comma` removed from `_parse_paren_expression_list` method."
Updated class diagram for IndexEntriesclassDiagram
class IndexEntries {
+_group_by_func()
}
note for IndexEntries "Unused variable `targets` and `sub_items` removed from `_group_by_func` method."
Updated class diagram for AssetclassDiagram
class Asset {
+collect_candidates()
}
note for Asset "Unused variable `basename` removed from `collect_candidates` method."
Updated class diagram for AutoSummaryclassDiagram
class AutoSummary {
+import_ivar_by_name()
+find_autosummary_in_docstring()
}
note for AutoSummary "Unused variable `parent` removed from `import_ivar_by_name` method."
note for AutoSummary "Unused variable `real_name` and `parent` and `modname` removed from `find_autosummary_in_docstring` method."
Updated class diagram for InheritanceDiagramclassDiagram
class InheritanceDiagram {
+run()
}
note for InheritanceDiagram "Unused variable `x` removed from `run` method."
Updated class diagram for NapoleonclassDiagram
class Napoleon {
+_consume_field()
}
note for Napoleon "Unused variable `colon` removed from `_consume_field` method."
Updated class diagram for TexinfoclassDiagram
class Texinfo {
+visit_footnote_reference()
}
note for Texinfo "Unused variable `used` removed from `visit_footnote_reference` method."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: daniel.eades <daniel.eades@seebyte.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…4024) Co-authored-by: Jean-François B. <2589111+jfbu@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Formerly, PDF rendering crashed for inputs of more than about 1350 codelines either from a code-block, or from a literal include, when this literal include used the sphinxVerbatim and not the sphinxalltt route. The fix goes via novel mark-up which is applied in case the literally included file or code-block contains more than 500 codelines. Then chunks of 500 consecutive source codelines are rendered using: sphinxLongVerbatimFirst, sphinxLongVerbatimMiddle, and sphinxLongVerbatimLast. Efforts have been devoted for line numbering and emphasizing to not be modified, and (if so configured) for bottom captions to appear where expected. It was needed to (to cut into smaller pieces and) modify in a very limited manner the legacy sphinxVerbatim which is still used for up to 500 codelines, which corresponds to about 10 a4-sized pages, if document is with default pointsize and margins. Hopefully no consequences will arise from these changes. Known issue: in the unlikely event a pagebreak happens exactly after a chunk of 500 code lines, the continuation hints usually printed at bottom and top of pages are omitted.
…tly to PDF if using ``literalinclude`` (#14066) They can not attow come from code-blocks, having been replaced during Docutils/Sphinx processing with spaces before ending in the .tex file. But they may originate from literalinclude directive. Known limitation: only "top-level" TABs will obey tab stops. Indeed, TABs ending inside the Pygmentize highlighting macro \PYG would cause breakage if the fancyvrb.sty method for them to obey tab stops was put at work. So Sphinx modifies \PYG to let TABs in such location get converted to a fixed number (default 8) of spaces. Close #14064
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
This PR addresses several minor issues across different modules, primarily focusing on removing unused variables and updating a dependency version.
Chores: