mirror of https://github.com/freeCodeCamp/devdocs
parent
bd6e27eca2
commit
b2d2066d96
@ -1,5 +1,5 @@
|
||||
app.templates.path = (doc, type, entry) ->
|
||||
html = """<a href="#{doc.fullPath()}" class="_path-item _icon-#{doc.slug}">#{doc.name}</a>"""
|
||||
html = """<a href="#{doc.fullPath()}" class="_path-item _icon-#{doc.icon}">#{doc.name}</a>"""
|
||||
html += """<a href="#{type.fullPath()}" class="_path-item">#{type.name}</a>""" if type
|
||||
html += """<span class="_path-item">#{$.escape entry.name}</span>""" if entry
|
||||
html
|
||||
|
@ -1,6 +1,6 @@
|
||||
module Docs
|
||||
class Python2
|
||||
class EntriesFilter < Docs::EntriesFilter
|
||||
class Python
|
||||
class EntriesV2Filter < Docs::EntriesFilter
|
||||
REPLACE_TYPES = {
|
||||
'compiler package' => 'Compiler',
|
||||
'Cryptographic' => 'Cryptography',
|
@ -1,6 +1,6 @@
|
||||
module Docs
|
||||
class Python
|
||||
class EntriesFilter < Docs::EntriesFilter
|
||||
class EntriesV3Filter < Docs::EntriesFilter
|
||||
REPLACE_TYPES = {
|
||||
'Cryptographic' => 'Cryptography',
|
||||
'Custom Interpreters' => 'Interpreters',
|
@ -1,29 +0,0 @@
|
||||
module Docs
|
||||
class Python2 < FileScraper
|
||||
self.name = 'Python 2'
|
||||
self.slug = 'python2'
|
||||
self.release = '2.7.10'
|
||||
self.type = 'sphinx'
|
||||
self.dir = '/Users/Thibaut/DevDocs/Docs/Python2' # downloaded from docs.python.org/2.7/download.html
|
||||
self.base_url = 'http://docs.python.org/2.7/'
|
||||
self.root_path = 'library/index.html'
|
||||
|
||||
html_filters.push 'python2/entries', 'python/clean_html'
|
||||
|
||||
options[:only_patterns] = [/\Alibrary\//]
|
||||
|
||||
options[:skip] = %w(
|
||||
library/2to3.html
|
||||
library/formatter.html
|
||||
library/index.html
|
||||
library/intro.html
|
||||
library/undoc.html
|
||||
library/unittest.mock-examples.html
|
||||
library/sunau.html)
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
© 1990–2015 Python Software Foundation<br>
|
||||
Licensed under the PSF License.
|
||||
HTML
|
||||
end
|
||||
end
|
@ -1 +1 @@
|
||||
[{"name":"CSS","slug":"css","type":"mdn","release":null,"mtime":1420139788,"db_size":3460507},{"name":"DOM","slug":"dom","type":"mdn","release":null,"mtime":1420139789,"db_size":11399128},{"name":"DOM Events","slug":"dom_events","type":"mdn","release":null,"mtime":1420139790,"db_size":889020},{"name":"HTML","slug":"html","type":"mdn","release":null,"mtime":1420139790,"db_size":1835646},{"name":"HTTP","slug":"http","type":"rfc","release":null,"mtime":1420139790,"db_size":183083},{"name":"JavaScript","slug":"javascript","type":"mdn","release":null,"mtime":1420139791,"db_size":4125477}]
|
||||
[{"name":"CSS","slug":"css","type":"mdn","release":null,"mtime":1420139788,"db_size":3460507},{"name":"DOM","slug":"dom","type":"mdn","release":null,"mtime":1420139789,"db_size":11399128},{"name":"DOM Events","slug":"dom_events","type":"mdn","release":null,"mtime":1420139790,"db_size":889020},{"name":"HTML","slug":"html~v5","type":"mdn","version":"5","mtime":1420139791,"db_size":1835647},{"name":"HTML","slug":"html~v4","type":"mdn","version":"4","mtime":1420139790,"db_size":1835646},{"name":"HTTP","slug":"http","type":"rfc","release":null,"mtime":1420139790,"db_size":183083},{"name":"JavaScript","slug":"javascript","type":"mdn","release":null,"mtime":1420139791,"db_size":4125477}]
|
||||
|
Loading…
Reference in new issue