mirror of https://github.com/freeCodeCamp/devdocs
Documentation is part of the gnuplot source code, available at: - https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/docs/ This can be redistributed, according the the Copyright (emphasis mine): > * Copyright 1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley > * > * Permission to use, copy, and distribute this software **and its** > * **documentation** for any purpose with or without fee is hereby granted, > * provided that the above copyright notice appear in all copies and > * that both that copyright notice and this permission notice appear > * in supporting documentation. Full copyright notice here: https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/Copyright The term “gnuplot license” is not very widespread but brings satisfying results on search engines (including on wikipedia), so I took the liberty to add a link to the copyright file, taken from the “Gnuplot's copyright” link on the gnuplot home page, http://gnuplot.info. Here is how to build the gnuplot docs to parse them: mkdir gnuplot-src gnuplot-conf $DEVDOCS_ROOT/docs/gnuplot git clone -b 5.2.7 --depth 1 https://git.code.sf.net/p/gnuplot/gnuplot-main ./gnuplot-src cd gnuplot-src/ ./prepare cd ../gnuplot-conf ../gnuplot-src/configure make -C docs nofigures.tex latex2html -html 5.0,math -split 4 -link 8 -long_titles 5 -dir $DEVDOCS_ROOT/docs/gnuplot -ascii_mode docs/nofigures.texpull/1126/head
parent
58c44bf332
commit
f5a3152bbb
@ -0,0 +1,6 @@
|
||||
._gnuplot {
|
||||
.CENTER {
|
||||
text-align: center;
|
||||
}
|
||||
@extend %simple;
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
module Docs
|
||||
class Gnuplot
|
||||
PROMOTE = {'Expressions' => nil, 'Linetypes, colors, and styles' => nil, 'Fit' => nil, 'Format' => nil,
|
||||
'Plot' => nil, 'Splot' => nil, 'Style' => 'Plot appearance',
|
||||
'Set-show' => 'Set / Show', 'Datafile' => nil, 'Key' => 'Legend'}
|
||||
NOREPEAT = ['String constants, string variables, and string functions', 'Substitution and Command line macros']
|
||||
|
||||
class EntriesFilter < Docs::EntriesFilter
|
||||
def initialize(*)
|
||||
super
|
||||
end
|
||||
|
||||
def get_name
|
||||
return 'Stats' if slug.downcase == 'stats_statistical_summary'
|
||||
return css('h1')[0].content.strip
|
||||
end
|
||||
|
||||
def get_type
|
||||
return (PROMOTE[name] || name) if PROMOTE.include? name
|
||||
|
||||
parent = at_css('.navigation > b:contains("Up:")').next_element.content
|
||||
return 'Using Gnuplot' if parent == 'Gnuplot'
|
||||
return parent
|
||||
end
|
||||
|
||||
def include_default_entry?
|
||||
!root_page? and slug.downcase != 'complete_list_terminals' #and !PROMOTE.include? name
|
||||
end
|
||||
|
||||
def additional_entries
|
||||
return [] if root_page?
|
||||
entries = []
|
||||
|
||||
if slug.downcase == 'complete_list_terminals'
|
||||
list_stack = [[css('ul.ChildLinks'), '', nil]]
|
||||
else
|
||||
list_stack = [[css('ul.ChildLinks'), name, nil]]
|
||||
end
|
||||
|
||||
while !list_stack.empty?
|
||||
list, name_, type_ = list_stack.pop
|
||||
list.css('> li').each do |item|
|
||||
|
||||
sublists = item.css('> ul')
|
||||
link = item.css('> a, span')
|
||||
|
||||
if link.empty?
|
||||
item_name = name_
|
||||
else
|
||||
item_name = link[0].text.strip
|
||||
item_name = "#{name_} #{item_name}".strip unless PROMOTE.include? name_ or NOREPEAT.include? name_
|
||||
item_name = item_name.sub /^(\w+) \1/, '\1'
|
||||
item_name = 'set style boxplot' if slug.downcase == 'set_show' and item_name == 'Boxplot'
|
||||
|
||||
if PROMOTE.include? name_
|
||||
type_ = PROMOTE[name_] || name_
|
||||
end
|
||||
|
||||
entries << [item_name, link[0]['href'].split('#')[1], type_]
|
||||
end
|
||||
|
||||
list_stack.push([sublists, item_name, type_]) unless sublists.empty?
|
||||
end
|
||||
end
|
||||
|
||||
return entries
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,41 @@
|
||||
module Docs
|
||||
class Gnuplot < FileScraper
|
||||
self.name = 'Gnuplot'
|
||||
self.slug = 'gnuplot'
|
||||
self.type = 'gnuplot'
|
||||
self.links = {
|
||||
home: 'http://gnuplot.sourceforge.net/'
|
||||
}
|
||||
|
||||
self.root_path = 'index.html'
|
||||
|
||||
html_filters.push 'gnuplot/entries', 'gnuplot/clean_html'
|
||||
|
||||
options[:skip_links] = false
|
||||
|
||||
options[:skip] = %w(
|
||||
Copyright.html
|
||||
External_libraries.html
|
||||
Known_limitations.html
|
||||
Introduction.html
|
||||
About_this_document.html
|
||||
New_features.html
|
||||
Differences_from_version_4.html
|
||||
Seeking_assistance.html
|
||||
Gnuplot.html
|
||||
Deprecated_syntax.html
|
||||
Demos_Online_Examples.html
|
||||
Terminal_types.html
|
||||
Plotting_styles.html
|
||||
Commands.html
|
||||
Contents.html
|
||||
Bugs.html
|
||||
)
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
Copyright 1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley<br>
|
||||
Distributed under the <a href="https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/Copyright">gnuplot license</a> (rights to distribute modified versions are withheld).
|
||||
HTML
|
||||
|
||||
end
|
||||
end
|
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.1 KiB |
@ -0,0 +1 @@
|
||||
https://sourceforge.net/p/gnuplot/gnuplot-main/ci/master/tree/demo/html/favicon.ico
|
Loading…
Reference in new issue