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: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ It now supports:
21
21
* Code highlight.
22
22
* Remember your last reading chapter.
23
23
* Custom CSS: you can write your own CSS style to improve your reading experience, such as `.content{margin: 50px;}.content p{ font-size: 2rem; }`(All the main content is under the element with the class `content`).
24
+
* Can be directly deployed on any web server such as Apache: use `--no-server` parameter.
24
25
25
26
## Usage
26
27
@@ -41,10 +42,14 @@ epub-browser *.epub
41
42
# Open multiple books under the current path
42
43
epub-browser .
43
44
45
+
# Do not start the server; only generate static website files, which can be directly deployed on any web server such as Apache.
46
+
epub-browser . --no-server
47
+
44
48
# Specify the output directory of html files, or use tmp directory by default
# Save the converted html files, will not clean the target tmp directory
51
+
# Save the converted html files, will not clean the target tmp directory;
52
+
# Note: These files are for inspection purposes only and cannot be directly deployed to a web server. To enable direct deployment, please use the --no-server parameter.
Copy file name to clipboardExpand all lines: epub_browser/main.py
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ def main():
19
19
parser.add_argument('--port', '-p', type=int, default=8000, help='Web server port (default: 8000)')
20
20
parser.add_argument('--no-browser', action='store_true', help='Do not automatically open browser')
21
21
parser.add_argument('--output-dir', '-o', help='Output directory for converted books')
22
-
parser.add_argument('--keep-files', action='store_true', help='Keep converted files after server stops')
22
+
parser.add_argument('--keep-files', action='store_true', help='Keep converted files after server stops. To enable direct deployment, please use the --no-server parameter.')
parser.add_argument('--no-server', action='store_true', help='Do not start a server, just generate files')
24
+
parser.add_argument('--no-server', action='store_true', help='Do not start a server, just generate files which can be directly deployed on any web server such as Apache.')
0 commit comments