Skip to contentSkip to conversation

docs: automarkup.py: add skipidentifiers

PATCH In review Manuel Ebner 2 participants 2 messages Aug 24

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: automarkup.py: add skipidentifiers

Add skipidentifiers to reduce wrongfully high-lighted (bold) words.

---
Pre-patch discussion:
https://lore.kernel.org/all/[email protected]/

---
 Documentation/sphinx/automarkup.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/sphinx/automarkup.py +4 -1
index c2227ab0a..8a6174950 100644
@@ -51,7 +51,10 @@ Skipnames = [ 'for', 'if', 'register', 'sizeof', 'struct', 'unsigned' ]
 # when following struct/union/enum/typedef keywords.
 # Example: "a simple struct that" in workqueue.rst should not be marked as code.
 #
-Skipidentifiers = [ 'that', 'which', 'where', 'whose' ]
+Skipidentifiers = [ 'and', 'are', 'as', 'containing', 'in', 'including',
+                    'is', 'name', 'needs', 'of', 'or',  'pages',
+                    'passed', 'randomization', 'request', 'that',
+                    'to', 'where', 'which', 'whose', 'will' ]
 
 #
 # Many places in the docs refer to common system calls.  It is
Signature · 1 line
2.54.0
reviewer
#1 lore raw

Hi,

Quoted 3 lines · Manuel Ebner

Add skipidentifiers to reduce wrongfully high-lighted (bold) words.

whac-a-mole alert:
"struct request" here is no longer highlighted:
Documentation/block/blk-mq.rst:will then build a new structure from it, the struct request that will

For most of the other words here, I'm OK with this patch.

Quoted 23 lines

---
Pre-patch discussion:
https://lore.kernel.org/all/[email protected]/

---
 Documentation/sphinx/automarkup.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/sphinx/automarkup.py +4 -1
index c2227ab0a..8a6174950 100644
@@ -51,7 +51,10 @@ Skipnames = [ 'for', 'if', 'register', 'sizeof', 'struct', 'unsigned' ]
 # when following struct/union/enum/typedef keywords.
 # Example: "a simple struct that" in workqueue.rst should not be marked as code.
 #
-Skipidentifiers = [ 'that', 'which', 'where', 'whose' ]
+Skipidentifiers = [ 'and', 'are', 'as', 'containing', 'in', 'including',
+                    'is', 'name', 'needs', 'of', 'or',  'pages',
+                    'passed', 'randomization', 'request', 'that',
+                    'to', 'where', 'which', 'whose', 'will' ]
 
 #
 # Many places in the docs refer to common system calls.  It is
Signature · 1 line
~Randy