Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9a257b4f
Commit
9a257b4f
authored
Mar 31, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --numeric option, similar to mkhtml.sh.
parent
9c26f5db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Doc/tools/mkhowto
Doc/tools/mkhowto
+7
-2
No files found.
Doc/tools/mkhowto
View file @
9a257b4f
...
...
@@ -18,6 +18,8 @@ HTML options:
--iconserver, -i Specify location of icons (default: ../).
--image-type Specify the image type to use in HTML output;
values: gif (default), png.
--numeric Don't rename the HTML files; just keep node#.html for
the filenames.
Other options:
--a4 Format for A4 paper.
...
...
@@ -84,6 +86,7 @@ class Options:
paper
=
"letter"
quiet
=
0
runs
=
0
numeric
=
0
style_file
=
os
.
path
.
join
(
TOPDIR
,
"html"
,
"style.css"
)
about_file
=
os
.
path
.
join
(
TOPDIR
,
"html"
,
"about.dat"
)
#
...
...
@@ -107,7 +110,7 @@ class Options:
"address="
,
"a4"
,
"l2h-config="
,
"letter"
,
"link="
,
"split="
,
"logging"
,
"debugging"
,
"keep"
,
"quiet"
,
"runs="
,
"image-type="
,
"about="
]
"about="
,
"numeric"
]
+
list
(
self
.
ALL_FORMATS
))
for
opt
,
arg
in
opts
:
if
opt
==
"--all"
:
...
...
@@ -145,6 +148,8 @@ class Options:
# always make this absolute:
self
.
about_file
=
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
getcwd
(),
arg
))
elif
opt
==
"--numeric"
:
self
.
numeric
=
1
#
# Format specifiers:
#
...
...
@@ -337,7 +342,7 @@ class Job:
os
.
path
.
join
(
builddir
,
self
.
doc
+
".css"
))
shutil
.
copyfile
(
os
.
path
.
join
(
builddir
,
self
.
doc
+
".html"
),
os
.
path
.
join
(
builddir
,
"index.html"
))
if
max_split_depth
!=
1
:
if
max_split_depth
!=
1
and
not
self
.
options
.
numeric
:
pwd
=
os
.
getcwd
()
try
:
os
.
chdir
(
builddir
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment