File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
src/sphinx_codeautolink/extension Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,15 @@ a bug, which you can report on `GitHub
72
72
If third-party code blocks are in use, matching may fail because of
73
73
inconsistent or unrecognised CSS classes. The class related to the block lexer
74
74
name is automatically added to the list of CSS classes that are searched when
75
- matching code examples as ``highlight-{lexer} notranslate ``.
75
+ matching code examples as ``highlight-{lexer} ``.
76
76
If the class has another value, :confval: `codeautolink_search_css_classes `
77
77
can be used to extend the search. To find out which classes should be added,
78
78
build your documentation, locate the code example and use the class of the
79
79
outermost ``div `` tag. For example:
80
80
81
81
.. code :: python
82
82
83
- codeautolink_search_css_classes = [" highlight-default notranslate " ]
83
+ codeautolink_search_css_classes = [" highlight-default" ]
84
84
85
85
Secondly, matching can fail on a specific line or range of lines.
86
86
This is often a bug, but the known expected failure cases are presented here:
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ sphinx-codeautolink adheres to
11
11
Unreleased
12
12
----------
13
13
- Correctly test for optional types in annotations (:issue: `72 `)
14
+ - Don't check for ``notranslate `` CSS class, allow additional classes (:issue: `75 `)
14
15
15
16
0.7.0 (2021-11-28)
16
17
------------------
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ def link_html(
231
231
soup = BeautifulSoup (text , 'html.parser' )
232
232
233
233
block_types = {'python' , 'pycon' } | set (custom_blocks .keys ())
234
- classes = [f'highlight-{ t } notranslate ' for t in block_types ] + ['doctest' ]
234
+ classes = [f'highlight-{ t } ' for t in block_types ] + ['doctest' ]
235
235
classes += search_css_classes
236
236
237
237
blocks = []
You can’t perform that action at this time.
0 commit comments