Add Elisp language docs for version 26.3

pull/1270/head
MasterEnoc 4 years ago
parent d470f306e0
commit 258e3f954c

@ -261,6 +261,11 @@ credits = [
'2012 Plataformatec', '2012 Plataformatec',
'Apache', 'Apache',
'https://raw.githubusercontent.com/elixir-lang/elixir/master/LICENSE' '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', 'Ember.js',
'2017 Yehuda Katz, Tom Dale and Ember.js contributors', '2017 Yehuda Katz, Tom Dale and Ember.js contributors',

@ -53,6 +53,7 @@
'pages/dojo', 'pages/dojo',
'pages/drupal', 'pages/drupal',
'pages/elixir', 'pages/elixir',
'pages/elisp',
'pages/ember', 'pages/ember',
'pages/erlang', 'pages/erlang',
'pages/express', 'pages/express',

@ -0,0 +1,9 @@
._elisp {
div > b {
@extend %block-label, %label-blue;
}
div > b {
margin: 2% auto;
}
}

@ -47,8 +47,21 @@ module Docs
# add id to each defun section that contains a functions, macro, etc. # add id to each defun section that contains a functions, macro, etc.
css('.defun').each do |node| css('.defun').each do |node|
node['id']= node.first_element_child.content node['id']= node.first_element_child.content
# change all <var> tags to <b>, 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 end
# remove footnotes
css('.footnote').remove
doc doc
end end
end end

@ -61,5 +61,10 @@ module Docs
Licensed under the GNU GPL license. Licensed under the GNU GPL license.
HTML 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
end end

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -0,0 +1 @@
https://www.gnu.org/software/emacs/
Loading…
Cancel
Save