Prechádzať zdrojové kódy

Migrate bash scraper to FileScraper and add missing pages

Enoc 4 rokov pred
rodič
commit
c0d3ee4261
2 zmenil súbory, kde vykonal 10 pridanie a 1 odobranie
  1. 9 0
      docs/file-scrapers.md
  2. 1 1
      lib/docs/scrapers/bash.rb

+ 9 - 0
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:
 

+ 1 - 1
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'