Skip to content

Commit bf71cef

Browse files
committed
Update Octave documentation (11.1.0)
1 parent eb1e3d8 commit bf71cef

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

lib/docs/filters/octave/clean_html.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def root
1212

1313
def other
1414
css('.header', 'hr').remove
15+
css('.nav-panel').remove
16+
css('.copiable-link').remove
1517

1618
css('.footnote > h3').each do |node|
1719
node.name = 'h5'

lib/docs/filters/octave/entries.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Docs
22
class Octave
33
class EntriesFilter < Docs::EntriesFilter
44
def get_name
5-
at_css('h1').content.sub(/(A?[0-9.]+ )/, '')
5+
at_css('h1').content.sub(/(A?[0-9.]+ )/, '')
66
end
77

88
def get_type

lib/docs/scrapers/octave.rb

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class Octave < UrlScraper
1010

1111
html_filters.push 'octave/clean_html', 'octave/entries', 'title'
1212

13+
options[:container] = 'body > div[id], body > .contents'
14+
1315
options[:skip] = %w(
1416
Copying.html
1517
Preface.html
@@ -23,19 +25,24 @@ class Octave < UrlScraper
2325
options[:root_title] = 'GNU Octave'
2426

2527
options[:attribution] = <<-HTML
26-
&copy; 1996–2025 The Octave Project Developers<br>
28+
&copy; 1996–2026 The Octave Project Developers<br>
2729
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.<br/>
2830
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.</br>
2931
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
3032
HTML
3133

34+
version '11' do
35+
self.release = '11.1.0'
36+
self.base_url = "https://docs.octave.org/v#{self.release}/"
37+
end
38+
3239
version '10' do
33-
self.release = '10.1.0'
40+
self.release = '10.3.0'
3441
self.base_url = "https://docs.octave.org/v#{self.release}/"
3542
end
3643

3744
version '9' do
38-
self.release = '9.2.0'
45+
self.release = '9.4.0'
3946
self.base_url = "https://docs.octave.org/v#{self.release}/"
4047
end
4148

0 commit comments

Comments
 (0)