Skip to content

Commit a721460

Browse files
committed
Update Elisp Documentation (27.2)
- Change Elisp scraper to FileScraper - Add notes about how to obtain Elisp doc files
1 parent 998db6b commit a721460

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

assets/javascripts/templates/pages/about_tmpl.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ credits = [
268268
'https://raw.githubusercontent.com/elixir-lang/elixir/master/LICENSE'
269269
], [
270270
'Elisp',
271-
'1990-1996, 1998-2019 Free Software Foundation, Inc.',
271+
'1990-1996, 1998-2021 Free Software Foundation, Inc.',
272272
'GPLv3',
273273
'https://www.gnu.org/licenses/gpl-3.0.html'
274274
], [

docs/file-scrapers.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ curl https://media.djangoproject.com/docs/django-docs-$VERSION-en.zip | \
3737
bsdtar --extract --file - --directory=docs/django\~$VERSION/
3838
```
3939

40+
## Elisp
41+
42+
Go to https://www.gnu.org/software/emacs/manual/elisp.html, donwload the HTML tarball and extract its content in `/path/to/devdocs/docs/elisp` or run the following command:
43+
44+
```sh
45+
mkdir /path/to/devdocs/docs/elisp \
46+
&& curl curl https://www.gnu.org/software/emacs/manual/elisp.html_node.tar.gz | \
47+
tar --extract --gzip --strip-components=1 --directory=/path/to/devdocs/docs/elisp
48+
```
49+
4050
## Erlang
4151

4252
Go to https://www.erlang.org/downloads and download the HTML documentation file.

lib/docs/scrapers/elisp.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Docs
2-
class Elisp < UrlScraper
2+
class Elisp < FileScraper
33
self.type = 'elisp'
4-
self.release = '27.1'
4+
self.release = '27.2'
55
self.base_url= 'https://www.gnu.org/software/emacs/manual/html_node/elisp/'
66
self.root_path = 'index.html'
77
self.links = {
@@ -57,7 +57,7 @@ class Elisp < UrlScraper
5757
end
5858

5959
options[:attribution]= <<-HTML
60-
Copyright &copy; 1990-1996, 1998-2019 Free Software Foundation, Inc. <br>
60+
Copyright &copy; 1990-1996, 1998-2021 Free Software Foundation, Inc. <br>
6161
Licensed under the GNU GPL license.
6262
HTML
6363

0 commit comments

Comments
 (0)