浏览代码

Added examples showing how to save pages in the output directory with Docker

Gildas 5 年之前
父节点
当前提交
68a3ff68a5
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 9 2
      cli/README.MD

+ 9 - 2
cli/README.MD

@@ -30,10 +30,17 @@ SingleFile can be launched from the command line by running it into a (headless)
 
 - Run and mount a volume to get the saved file in the current directory
 
-  `docker run -v %cd%:/out singlefile "https://www.wikipedia.org" wikipedia.html` (Windows)
+  - Save one page
 
-  `docker run -v $(pwd):/out singlefile "https://www.wikipedia.org" wikipedia.html` (Linux/UNIX)
+    `docker run -v %cd%:/out singlefile "https://www.wikipedia.org" wikipedia.html` (Windows)
 
+    `docker run -v $(pwd):/out singlefile "https://www.wikipedia.org" wikipedia.html` (Linux/UNIX)
+
+  - Save one or multiple pages by using the filename template (see `--filename-template` option)
+
+    `docker run -v %cd%:/out singlefile "https://www.wikipedia.org" --dump-content=false` (Windows)
+
+    `docker run -v $(pwd):/out singlefile "https://www.wikipedia.org" --dump-content=false` (Linux/UNIX)
 
 - An alternative docker file can be found here https://github.com/screenbreak/SingleFile-dockerized. It allows you to save pages from the command line interface or through an HTTP server.