[devdocsgjs/main: 1795/1867] Migrate bash scraper to FileScraper and add missing pages




commit c0d3ee426132c5b5fe36bf53274f077c511c9b47
Author: Enoc <brianhernandez222 hotmail com>
Date:   Thu Oct 21 01:01:29 2021 -0600

    Migrate bash scraper to FileScraper and add missing pages

 docs/file-scrapers.md     | 9 +++++++++
 lib/docs/scrapers/bash.rb | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md
index c25db042..da7e9461 100644
--- a/docs/file-scrapers.md
+++ b/docs/file-scrapers.md
@@ -59,6 +59,15 @@ bsdtar --extract --file - --directory=docs/erlang\~$VERSION/
 
 ## Gnu
 
+### Bash
+Go to https://www.gnu.org/software/bash/manual/, download the HTML tar file (with one web page per node) and 
extract its content in `/path/to/devdocs/docs/bash` or run the following command:
+
+```sh
+mkdir /path/to/devdocs/docs/bash \
+&& curl https://www.gnu.org/software/bash/manual/bash.html_node.tar.gz | \
+tar --extract --gzip --directory=/path/to/devdocs/docs/bash
+```
+
 ### GCC
 Go to https://gcc.gnu.org/onlinedocs/ and download the HTML tarball of GCC Manual and GCC CPP manual or run 
the following commands to download the tarballs:
 
diff --git a/lib/docs/scrapers/bash.rb b/lib/docs/scrapers/bash.rb
index ab4a7bd9..ef46f017 100644
--- a/lib/docs/scrapers/bash.rb
+++ b/lib/docs/scrapers/bash.rb
@@ -1,5 +1,5 @@
 module Docs
-  class Bash < UrlScraper
+  class Bash < FileScraper
     self.type = 'bash'
     self.release = '5.1'
     self.base_url = 'https://www.gnu.org/software/bash/manual/html_node'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]