You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: newdoc/README.rst
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
-
###########################
2
-
README: The `newdoc` script
3
-
###########################
1
+
########################################
2
+
README: The `newdoc` script (DEPRECATED)
3
+
########################################
4
+
5
+
**DEPRECATED:** This version of `newdoc` is now deprecated and will no longer receive any significant updates. Please uninstall this version and migrate to the current version: https://github.com/redhat-documentation/newdoc.
4
6
5
7
This script is used for generating empty module and assembly files when writing Red Hat or Fedora documentation in AsciiDoc. The generated files follow template guidelines set up by the Modular Documentation initiative: https://redhat-documentation.github.io/modular-docs/.
Copy file name to clipboardExpand all lines: newdoc/newdoc/newdoc.py
+11-36Lines changed: 11 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -7,22 +7,11 @@
7
7
importargparse
8
8
fromstringimportTemplate
9
9
10
-
NEWDOC_VERSION="1.3.2"
11
-
12
-
# Record whether we're running under Python 2 or 3
13
-
PYVERSION=sys.version_info.major
10
+
NEWDOC_VERSION="1.5.1"
11
+
DEPRECATION="DEPRECATED:\nThis version of `newdoc` is now deprecated and will no longer receive any significant updates.\nPlease uninstall this version and migrate to the current version:\nhttps://github.com/redhat-documentation/newdoc"
14
12
15
13
# The configparser module is called ConfigParser in Python2
16
-
ifPYVERSION==2:
17
-
importConfigParserascp
18
-
else:
19
-
importconfigparserascp
20
-
21
-
# Force Python 2 to use the UTF-8 encoding. Otherwise, loading a template
22
-
# containing Unicode characters fails.
23
-
ifPYVERSION==2:
24
-
reload(sys)
25
-
sys.setdefaultencoding('utf8')
14
+
importconfigparserascp
26
15
27
16
# The directory where the script is located
28
17
SCRIPT_HOME_DIR=os.path.dirname(__file__)
@@ -92,7 +81,7 @@ def get_config():
92
81
93
82
forkinoptions.keys():
94
83
# The configparser library is different in Python 2 and 3.
95
-
# This si the only 2/3-compatible way I've found for optional keys.
84
+
# This is the only 2/3-compatible way I've found for optional keys.
Copy file name to clipboardExpand all lines: newdoc/newdoc/templates/proc_title.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ This paragraph is the procedure module introduction: a short description of the
29
29
30
30
.Verification steps
31
31
32
-
. (Optional) Provide the user with verification method(s) for the procedure, such as expected output or commands that can be used to check for success or failure.
32
+
. Optional: Provide the user with verification method(s) for the procedure, such as expected output or commands that can be used to check for success or failure.
33
33
. Use an unnumbered bullet (*) if the procedure includes only one step.
0 commit comments