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 {
|
||||
> .description, > .documentation-section { padding-left: 1rem; }
|
||||
> .description > h2, header > h3, > h2 { @extend %block-heading; }
|
||||
.description > h1 { font-size: 1rem; }
|
||||
.method-description > h2, h3, h4, h5, h6 { font-size: 1em; }
|
||||
h2 { @extend %block-heading; }
|
||||
h3, .d_decl { @extend %block-label, %label-blue; }
|
||||
.d_decl { @extend %code; }
|
||||
|
||||
.d_decl {
|
||||
font-weight: $boldFontWeight;
|
||||
@extend %block-label, %label-blue;
|
||||
p > code, li > code, td > code, dd > code { @extend %label; }
|
||||
|
||||
+ .d_decl { margin-top: -.5em; }
|
||||
}
|
||||
|
||||
> .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; }
|
||||
}
|
||||
span.red { color: $textColorRed; }
|
||||
}
|
||||
|
@ -1,18 +1,30 @@
|
||||
module Docs
|
||||
class D < UrlScraper
|
||||
self.release = '2.075.1'
|
||||
include MultipleBaseUrls
|
||||
|
||||
self.release = '2.076.0'
|
||||
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'
|
||||
|
||||
options[:container] = '#content'
|
||||
options[:skip] = %w(spec.html)
|
||||
options[:container] = '.container'
|
||||
options[:root_title] = 'D Programming Language'
|
||||
options[:title] = false
|
||||
options[:root_title] = 'D Language'
|
||||
options[:skip_patterns] = [/#.*/]
|
||||
|
||||
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
|
||||
|
||||
def initial_urls
|
||||
%w(https://dlang.org/phobos/index.html https://dlang.org/spec/intro.html)
|
||||
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
|