浏览代码

Migrate bash scraper to FileScraper and add missing pages

Enoc 4 年之前
父节点
当前提交
c0d3ee4261
共有 2 个文件被更改,包括 10 次插入1 次删除
  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'