Quellcode durchsuchen

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

Gildas vor 5 Jahren
Ursprung
Commit
68a3ff68a5
1 geänderte Dateien mit 9 neuen und 2 gelöschten Zeilen
  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.