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 {
|
._haskell {
|
||||||
background-image: image-url('/icons/docs/haskell/16.png');
|
> h2 { @extend %block-heading; }
|
||||||
background-size: cover;
|
> h3 { @extend %block-label; }
|
||||||
background-repeat: no-repeat;
|
h4 { font-size: 1em; }
|
||||||
}
|
|
||||||
|
|
||||||
.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;
|
|
||||||
|
|
||||||
align-items: flex-start;
|
.module + .package, p.src > .link { float: right; }
|
||||||
-webkit-align-items: flex-start;
|
|
||||||
|
|
||||||
align-content: stretch;
|
.src {
|
||||||
-webkit-align-content: stretch;
|
white-space: normal;
|
||||||
}
|
@extend %code;
|
||||||
|
}
|
||||||
.complexity {
|
p.src { @extend %block-label, %label-blue; }
|
||||||
@extend %note;
|
dt.src { white-space: normal; }
|
||||||
@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;
|
|
||||||
}
|
|
||||||
|
|
||||||
// separate types more
|
.top > .subs { margin-left: 2em; }
|
||||||
.src {
|
.subs p.src { margin-top: 1em; }
|
||||||
margin-top: 2.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 + .top .src,
|
dt > code, .complexity, .version { @extend %label; }
|
||||||
h2 + .top .src,
|
.complexity, .version { @extend %label-green; }
|
||||||
h3 + .top .src,
|
|
||||||
.caption + .top .src {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// but not for first type
|
table { margin: 1em 0; }
|
||||||
h1 + .top,
|
td > pre { margin: 0; }
|
||||||
h2 + .top,
|
|
||||||
h3 + .top,
|
|
||||||
h4 + .top {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// change color of example code
|
.warning { @extend %note; }
|
||||||
.example {
|
|
||||||
border: 1px solid;
|
|
||||||
background: #faf9e2;
|
|
||||||
border-color: #dddaaa #dddaaa #d7d7a9;
|
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,32 @@
|
|||||||
module Docs
|
module Docs
|
||||||
class Haskell < UrlScraper
|
class Haskell < UrlScraper
|
||||||
self.name = 'Haskell'
|
self.name = 'Haskell'
|
||||||
self.slug = 'haskell'
|
|
||||||
self.type = 'haskell'
|
self.type = 'haskell'
|
||||||
self.version = '7.8.2'
|
self.version = '7.8.2'
|
||||||
self.base_url = 'http://www.haskell.org/ghc/docs/7.8.2/html/libraries/'
|
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/entries', 'haskell/clean_html'
|
||||||
html_filters.push 'haskell/clean_html'
|
|
||||||
html_filters.push 'title'
|
|
||||||
|
|
||||||
|
options[:container] = '#content'
|
||||||
|
|
||||||
options[:container] = '#content'
|
options[:skip] = %w(
|
||||||
options[:skip_patterns] = [/src/, /index/, /haskell2010/, /ghc-/, /Cabal-/] # skip source listings and index files
|
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
|
options[:attribution] = <<-HTML
|
||||||
© The University Court of the University of Glasgow.<br>
|
© The University of Glasgow and others<br>
|
||||||
All rights reserved. <a href="http://www.haskell.org/ghc/license">See here for more info</a>
|
Licensed under a BSD-style license (see top of the page).
|
||||||
HTML
|
HTML
|
||||||
|
end
|
||||||
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
|