Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c0ebdc

Browse files
committed
- make the default image type PNG, to match mkhowto
- add a command-line option to control the image type
1 parent 2cf5e19 commit 5c0ebdc

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Doc/tools/support.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class Options:
2020

2121
# content components
2222
"address=", "iconserver=", "favicon=",
23-
"title=", "uplink=", "uptitle="]
23+
"title=", "uplink=", "uptitle=",
24+
"image-type=",
25+
]
2426

2527
outputfile = "-"
2628
columns = 1
@@ -51,7 +53,7 @@ def __init__(self):
5153
self.args = []
5254
self.variables = {"address": "",
5355
"iconserver": "icons",
54-
"imgtype": "gif",
56+
"imgtype": "png",
5557
"title": "Global Module Index",
5658
}
5759

@@ -93,6 +95,8 @@ def parse(self, args):
9395
self.variables["iconserver"] = val.strip() or "."
9496
elif opt == "--favicon":
9597
self.favicon = val.strip()
98+
elif opt == "--image-type":
99+
self.variables["imgtype"] = val.strip()
96100
else:
97101
self.handle_option(opt, val)
98102
if self.uplink and self.uptitle:

0 commit comments

Comments
 (0)