Skip to content

Commit

Permalink
Fix --withcss=CSSFILE option
Browse files Browse the repository at this point in the history
  • Loading branch information
dchassin committed Oct 2, 2024
1 parent 9e8ca74 commit 26e03d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h2 class="w3-container">Options</h2>
<code>-</code>: run with no options</li><li>
<code>--debug</code>: Enable debugging traceback on exceptions</li><li>
<code>-h|--help|help</code>: Display this help information</li><li>
<code>--withcss</code>: Generate a template CSS file also</li></li>
<code>--withcss[=CSSFILE]</code>: Copy the CSS file to <code>docs/</code> (defauls is <code>quickdocs.css</code>)</li></li>
</ul>

<h2 class="w3-container">Description</h2>
Expand Down
4 changes: 2 additions & 2 deletions quickdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* -h|--help|help: Display this help information
* --withcss: Generate a template CSS file also
* --withcss[=CSSFILE]: Copy the CSS file to `docs/` (defauls is `quickdocs.css`)
Description:
Expand Down Expand Up @@ -222,7 +222,7 @@ def get_mode():
<head>
<title>{package_name}</title>
<meta name="expires" content="86400" />
<link rel="stylesheet" href="quickdocs.css">
<link rel="stylesheet" href="{withcss if withcss else 'quickdocs.css'}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
</head>
Expand Down

0 comments on commit 26e03d0

Please sign in to comment.