Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 35 KiB |
@ -1,44 +1,9 @@
|
|||||||
._d {
|
._d {
|
||||||
> .description, > .documentation-section { padding-left: 1rem; }
|
h2 { @extend %block-heading; }
|
||||||
> .description > h2, header > h3, > h2 { @extend %block-heading; }
|
h3, .d_decl { @extend %block-label, %label-blue; }
|
||||||
.description > h1 { font-size: 1rem; }
|
.d_decl { @extend %code; }
|
||||||
.method-description > h2, h3, h4, h5, h6 { font-size: 1em; }
|
|
||||||
|
|
||||||
.d_decl {
|
p > code, li > code, td > code, dd > code { @extend %label; }
|
||||||
font-weight: $boldFontWeight;
|
|
||||||
@extend %block-label, %label-blue;
|
|
||||||
|
|
||||||
+ .d_decl { margin-top: -.5em; }
|
span.red { color: $textColorRed; }
|
||||||
}
|
|
||||||
|
|
||||||
> .meta {
|
|
||||||
@extend %note, %note-blue;
|
|
||||||
|
|
||||||
> dd { margin: 0; }
|
|
||||||
> dd + dt { margin-top: .5em; }
|
|
||||||
}
|
|
||||||
|
|
||||||
a.method-click-advice {
|
|
||||||
float: right;
|
|
||||||
font-size: .75rem;
|
|
||||||
color: $linkColor;
|
|
||||||
cursor: pointer;
|
|
||||||
@extend %user-select-none;
|
|
||||||
|
|
||||||
&:hover { text-decoration: underline; }
|
|
||||||
}
|
|
||||||
|
|
||||||
.method-description { position: relative; }
|
|
||||||
|
|
||||||
.method-source-code {
|
|
||||||
display: none;
|
|
||||||
position: absolute;
|
|
||||||
z-index: 1;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
background: rgba($contentBackground, .95);
|
|
||||||
box-shadow: 0 1em 1em 1em $contentBackground;
|
|
||||||
|
|
||||||
> pre { margin: 0; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,30 @@
|
|||||||
module Docs
|
module Docs
|
||||||
class D < UrlScraper
|
class D < UrlScraper
|
||||||
self.release = '2.075.1'
|
include MultipleBaseUrls
|
||||||
|
|
||||||
|
self.release = '2.076.0'
|
||||||
self.type = 'd'
|
self.type = 'd'
|
||||||
self.base_url = 'http://dlang.org/phobos/'
|
self.base_urls = ['https://dlang.org/phobos/', 'https://dlang.org/spec/']
|
||||||
|
self.root_path = 'index.html'
|
||||||
|
self.links = {
|
||||||
|
home: 'https://dlang.org/',
|
||||||
|
code: 'https://github.com/dlang/phobos'
|
||||||
|
}
|
||||||
|
|
||||||
html_filters.push 'd/entries', 'd/clean_html'
|
html_filters.push 'd/entries', 'd/clean_html'
|
||||||
|
|
||||||
options[:container] = '#content'
|
options[:skip] = %w(spec.html)
|
||||||
|
options[:container] = '.container'
|
||||||
|
options[:root_title] = 'D Programming Language'
|
||||||
options[:title] = false
|
options[:title] = false
|
||||||
options[:root_title] = 'D Language'
|
|
||||||
options[:skip_patterns] = [/#.*/]
|
|
||||||
|
|
||||||
options[:attribution] = <<-HTML
|
options[:attribution] = <<-HTML
|
||||||
Copyright © 1999-2017 by the D Language Foundation
|
© 1999–2017 The D Language Foundation<br>
|
||||||
|
Licensed under the Boost License 1.0.
|
||||||
HTML
|
HTML
|
||||||
|
|
||||||
|
def initial_urls
|
||||||
|
%w(https://dlang.org/phobos/index.html https://dlang.org/spec/intro.html)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Before Width: | Height: | Size: 784 B After Width: | Height: | Size: 661 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1 @@
|
|||||||
|
https://github.com/dlang/dlang.org/tree/master/images
|