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'