mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #8912 from jakobandersen/cpp_index_prefix
C++, cpp_index_common_prefix remove longest prefix instead of first
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -75,6 +75,8 @@ Bugs fixed
|
||||
change) with late TeXLive 2019
|
||||
* #8253: LaTeX: Figures with no size defined get overscaled (compared to images
|
||||
with size explicitly set in pixels) (fixed for ``'pdflatex'/'lualatex'`` only)
|
||||
* #8911: C++: remove the longest matching prefix in
|
||||
:confval:`cpp_index_common_prefix` instead of the first that matches.
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
||||
@@ -7644,10 +7644,11 @@ def setup(app: Sphinx) -> Dict[str, Any]:
|
||||
app.add_config_value("cpp_debug_lookup", False, '')
|
||||
app.add_config_value("cpp_debug_show_tree", False, '')
|
||||
|
||||
def setDebugFlags(app):
|
||||
def initStuff(app):
|
||||
Symbol.debug_lookup = app.config.cpp_debug_lookup
|
||||
Symbol.debug_show_tree = app.config.cpp_debug_show_tree
|
||||
app.connect("builder-inited", setDebugFlags)
|
||||
app.config.cpp_index_common_prefix.sort(reverse=True)
|
||||
app.connect("builder-inited", initStuff)
|
||||
|
||||
return {
|
||||
'version': 'builtin',
|
||||
|
||||
Reference in New Issue
Block a user