Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 49 KiB |
@ -1,121 +1,25 @@
|
||||
._icon-haskell:before {
|
||||
background-image: image-url('/icons/docs/haskell/16.png');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.empty-table .empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.arguments td.src {
|
||||
background: #faf9e2;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
th.src,
|
||||
td.src {
|
||||
font-family: $monoFont;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
background: #f8f8f8;
|
||||
}
|
||||
|
||||
caption {
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
font-style: italic;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
// remove margin in descript listing
|
||||
dd > pre {
|
||||
@extend %pre;
|
||||
margin: 0;
|
||||
background: #faf9e2;
|
||||
border-color: #dddaaa #dddaaa #d7d7a9;
|
||||
}
|
||||
|
||||
// warnings are red
|
||||
.warning {
|
||||
@extend %note;
|
||||
@extend %note-red;
|
||||
}
|
||||
|
||||
|
||||
// complexity classes are blue boxes
|
||||
.with-complexity {
|
||||
display: flex;
|
||||
display: -webkit-flex;
|
||||
|
||||
justify-content: space-between;
|
||||
-webkit-justify-content: space-between;
|
||||
._haskell {
|
||||
> h2 { @extend %block-heading; }
|
||||
> h3 { @extend %block-label; }
|
||||
h4 { font-size: 1em; }
|
||||
|
||||
align-items: flex-start;
|
||||
-webkit-align-items: flex-start;
|
||||
.module + .package, p.src > .link { float: right; }
|
||||
|
||||
align-content: stretch;
|
||||
-webkit-align-content: stretch;
|
||||
}
|
||||
|
||||
.complexity {
|
||||
@extend %note;
|
||||
@extend %note-blue;
|
||||
margin: 0;
|
||||
margin-left: 1em;
|
||||
margin-bottom: 0.75em;
|
||||
font-style: italic;
|
||||
white-space: nowrap;
|
||||
|
||||
flex-shrink: 0;
|
||||
-webkit-flex-shrink: 0;
|
||||
|
||||
order: 2;
|
||||
-webkit-order: 2;
|
||||
}
|
||||
|
||||
.complexity + span {
|
||||
order: 1;
|
||||
-webkit-order: 1;
|
||||
}
|
||||
|
||||
// add box type to "since: ..."
|
||||
.added {
|
||||
@extend %note;
|
||||
@extend %note-gold;
|
||||
}
|
||||
|
||||
.added-cell {
|
||||
@extend %note-gold;
|
||||
}
|
||||
|
||||
.fields h3 {
|
||||
display: none;
|
||||
}
|
||||
.src {
|
||||
white-space: normal;
|
||||
@extend %code;
|
||||
}
|
||||
p.src { @extend %block-label, %label-blue; }
|
||||
dt.src { white-space: normal; }
|
||||
|
||||
// separate types more
|
||||
.src {
|
||||
margin-top: 2.5em;
|
||||
}
|
||||
.top > .subs { margin-left: 2em; }
|
||||
.subs p.src { margin-top: 1em; }
|
||||
|
||||
h1 + .top .src,
|
||||
h2 + .top .src,
|
||||
h3 + .top .src,
|
||||
.caption + .top .src {
|
||||
margin-top: 0;
|
||||
}
|
||||
dt > code, .complexity, .version { @extend %label; }
|
||||
.complexity, .version { @extend %label-green; }
|
||||
|
||||
// but not for first type
|
||||
h1 + .top,
|
||||
h2 + .top,
|
||||
h3 + .top,
|
||||
h4 + .top {
|
||||
margin-top: 0;
|
||||
}
|
||||
table { margin: 1em 0; }
|
||||
td > pre { margin: 0; }
|
||||
|
||||
// change color of example code
|
||||
.example {
|
||||
border: 1px solid;
|
||||
background: #faf9e2;
|
||||
border-color: #dddaaa #dddaaa #d7d7a9;
|
||||
.warning { @extend %note; }
|
||||
}
|
||||
|
@ -1,24 +1,32 @@
|
||||
module Docs
|
||||
class Haskell < UrlScraper
|
||||
self.name = 'Haskell'
|
||||
self.slug = 'haskell'
|
||||
self.type = 'haskell'
|
||||
self.version = '7.8.2'
|
||||
self.base_url = 'http://www.haskell.org/ghc/docs/7.8.2/html/libraries/'
|
||||
self.initial_paths = ['/index.html']
|
||||
self.root_path = 'index.html'
|
||||
|
||||
html_filters.push 'haskell/entries'
|
||||
html_filters.push 'haskell/clean_html'
|
||||
html_filters.push 'title'
|
||||
html_filters.push 'haskell/entries', 'haskell/clean_html'
|
||||
|
||||
options[:container] = '#content'
|
||||
|
||||
options[:container] = '#content'
|
||||
options[:skip_patterns] = [/src/, /index/, /haskell2010/, /ghc-/, /Cabal-/] # skip source listings and index files
|
||||
options[:skip] = %w(
|
||||
hoopl-3.10.0.1/Compiler-Hoopl-Internals.html
|
||||
base-4.7.0.0/Control-Exception-Base.html
|
||||
binary-0.7.1.0/Data-Binary-Get-Internal.html
|
||||
template-haskell-2.9.0.0/Language-Haskell-TH-Lib.html
|
||||
haskell98-2.0.0.3/Prelude.html
|
||||
pretty-1.1.1.1/Text-PrettyPrint.html
|
||||
base-4.7.0.0/Data-OldTypeable-Internal.html
|
||||
base-4.7.0.0/Data-Typeable-Internal.html
|
||||
base-4.7.0.0/GHC-IO-Encoding-Types.html
|
||||
unix-2.7.0.1/System-Posix-Process-Internals.html)
|
||||
|
||||
options[:skip_patterns] = [/src\//, /doc-index/, /haskell2010/, /ghc-/, /Cabal-/]
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
© The University Court of the University of Glasgow.<br>
|
||||
All rights reserved. <a href="http://www.haskell.org/ghc/license">See here for more info</a>
|
||||
© The University of Glasgow and others<br>
|
||||
Licensed under a BSD-style license (see top of the page).
|
||||
HTML
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Before Width: | Height: | Size: 994 B After Width: | Height: | Size: 624 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 705 B |
@ -0,0 +1 @@
|
||||
http://www.haskell.org/haskellwiki/Thompson-Wheeler_logo
|