Skip to content

Commit f4eb2b9

Browse files
committed
Remove constants SEPARATORS, RE_SEPARATORS
1 parent 5e7ae97 commit f4eb2b9

2 files changed

Lines changed: 1 addition & 26 deletions

File tree

docs/source/reference/_autoapi/docbuild/constants/index.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ Attributes
2626
docbuild.constants.SINGLE_LANG_REGEX
2727
docbuild.constants.MULTIPLE_LANG_REGEX
2828
docbuild.constants.LIFECYCLES_STR
29-
docbuild.constants.SEPARATORS
30-
docbuild.constants.RE_SEPARATORS
3129
docbuild.constants.PROJECT_DIR
3230
docbuild.constants.USER_CONFIG_DIR
3331
docbuild.constants.SYSTEM_CONFIG_DIR
@@ -117,18 +115,6 @@ Module Contents
117115
Regex for lifecycle states, separated by pipe (|).
118116
119117

120-
.. py:data:: SEPARATORS
121-
:value: '[ :;]+'
122-
123-
124-
Regex string for separators used in doctype strings.
125-
126-
127-
.. py:data:: RE_SEPARATORS
128-
129-
Compiled regex for separators used in doctype strings.
130-
131-
132118
.. py:data:: PROJECT_DIR
133119
134120
The current working directory, used as the project directory.

src/docbuild/constants.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
key.strip(): value.strip()
4646
for key, value in (
4747
line.split(' ', 1)
48-
# Syntax acronym <SPACE> full name:
48+
# Syntax: acronym <SPACE> full name:
4949
for line in """appliance Appliance building
5050
cloudnative Cloud Native
5151
compliance Compliance Documentation
@@ -94,17 +94,6 @@
9494
LIFECYCLES_STR = '|'.join(ALLOWED_LIFECYCLES)
9595
"""Regex for lifecycle states, separated by pipe (|)."""
9696

97-
# Syntax for a single doctype
98-
#
99-
# <product-value|*>/<docset-value|*>@<lifecycle-value>/<lang-value1,lang-value2,...|*>
100-
#
101-
SEPARATORS = r'[ :;]+'
102-
"""Regex string for separators used in doctype strings."""
103-
104-
105-
RE_SEPARATORS = re.compile(SEPARATORS)
106-
"""Compiled regex for separators used in doctype strings."""
107-
10897

10998
# --- PATHS AND CONFIGURATION CONSTANTS ---
11099
PROJECT_DIR = Path.cwd()

0 commit comments

Comments
 (0)