From 258e3f954c1c739df28849e567f06ccb1ca3aad9 Mon Sep 17 00:00:00 2001 From: MasterEnoc Date: Wed, 9 Sep 2020 00:08:16 -0600 Subject: [PATCH] Add Elisp language docs for version 26.3 --- .../templates/pages/about_tmpl.coffee | 5 +++++ assets/stylesheets/application.css.scss | 1 + assets/stylesheets/pages/_elisp.scss | 9 +++++++++ lib/docs/filters/elisp/clean_html.rb | 13 +++++++++++++ lib/docs/scrapers/elisp.rb | 5 +++++ public/icons/docs/elisp/16.png | Bin 0 -> 1426 bytes public/icons/docs/elisp/16@2x.png | Bin 0 -> 2905 bytes public/icons/docs/elisp/SOURCE | 1 + 8 files changed, 34 insertions(+) create mode 100644 assets/stylesheets/pages/_elisp.scss create mode 100644 public/icons/docs/elisp/16.png create mode 100644 public/icons/docs/elisp/16@2x.png create mode 100644 public/icons/docs/elisp/SOURCE diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 8ac93ed4..fcb4ca50 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -261,6 +261,11 @@ credits = [ '2012 Plataformatec', 'Apache', 'https://raw.githubusercontent.com/elixir-lang/elixir/master/LICENSE' + ], [ + 'Elisp', + '1990-1996, 1998-2019 Free Software Foundation, Inc.', + 'GPLv3', + 'https://www.gnu.org/licenses/gpl-3.0.html' ], [ 'Ember.js', '2017 Yehuda Katz, Tom Dale and Ember.js contributors', diff --git a/assets/stylesheets/application.css.scss b/assets/stylesheets/application.css.scss index 1b1c3ad0..04c9ddb3 100644 --- a/assets/stylesheets/application.css.scss +++ b/assets/stylesheets/application.css.scss @@ -53,6 +53,7 @@ 'pages/dojo', 'pages/drupal', 'pages/elixir', + 'pages/elisp', 'pages/ember', 'pages/erlang', 'pages/express', diff --git a/assets/stylesheets/pages/_elisp.scss b/assets/stylesheets/pages/_elisp.scss new file mode 100644 index 00000000..3b366005 --- /dev/null +++ b/assets/stylesheets/pages/_elisp.scss @@ -0,0 +1,9 @@ +._elisp { + div > b { + @extend %block-label, %label-blue; + } + + div > b { + margin: 2% auto; + } +} diff --git a/lib/docs/filters/elisp/clean_html.rb b/lib/docs/filters/elisp/clean_html.rb index 985191b2..7b4db744 100644 --- a/lib/docs/filters/elisp/clean_html.rb +++ b/lib/docs/filters/elisp/clean_html.rb @@ -47,8 +47,21 @@ module Docs # add id to each defun section that contains a functions, macro, etc. css('.defun').each do |node| node['id']= node.first_element_child.content + + # change all tags to , this helps pages style + functionName = node.first_element_child + arguments = functionName.next_sibling + arguments.parent= functionName + end + + # remove br for style purposes + css('br').each do |node| + node.remove end + # remove footnotes + css('.footnote').remove + doc end end diff --git a/lib/docs/scrapers/elisp.rb b/lib/docs/scrapers/elisp.rb index 0a103bdc..264ba6f5 100644 --- a/lib/docs/scrapers/elisp.rb +++ b/lib/docs/scrapers/elisp.rb @@ -61,5 +61,10 @@ module Docs Licensed under the GNU GPL license. HTML + def get_latest_version(opts) + body = fetch('https://www.gnu.org/software/emacs/manual/html_node/elisp/index.html', opts) + body.scan(/version \d*\.?\d*/)[0].sub('version', '') + end + end end diff --git a/public/icons/docs/elisp/16.png b/public/icons/docs/elisp/16.png new file mode 100644 index 0000000000000000000000000000000000000000..dc2d8ca88b91ec45fc9810f04adc505d972b509d GIT binary patch literal 1426 zcmZ`(dpOg382=I#CDl2duDZx2H2p}_5N2aC_r)@|VRI=q+qA}Rw$*BKO>>Lts3;Mc zxy+r8Zc++GggS+TJm;xSk7~}(`R_dEIp62|e&6@=KJVpwdEf6jZ%03A0h z+85?)muTfOc-@20^@Ev4l#_=O0M!|*zLPXzyfXsp>j6NL5dZ=)01L26FbO~+1i*9{ z0LVN5HqtIN`q%-WuJp#?F|dK3UNU+k1=2pUxVWgl@}Pw-P8Ky_tYaT)o#ti2BtQbJ zJ_WJP^#x&Z+uD7`Iu09j4Ap_AyMDaQHoUDa0dK|)vrmu2T#P{H1S6$hdrn&F;NY;Z zKH9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