mirror of https://github.com/freeCodeCamp/devdocs
parent
d022785b73
commit
67b5e3cb47
@ -0,0 +1,63 @@
|
||||
._qt {
|
||||
@extend %simple;
|
||||
|
||||
h1 {
|
||||
margin-top: 0;
|
||||
@extend %lined-heading;
|
||||
}
|
||||
|
||||
// Home page
|
||||
.landingicons {
|
||||
.icons1of3 {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
margin: 1em 0;
|
||||
|
||||
@if $style == 'dark' {
|
||||
&:nth-child(3) img {
|
||||
filter: invert(1) hue-rotate(180deg) brightness(1.5)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
flex: 1;
|
||||
margin: 0;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
h2 + p {
|
||||
width: 100%;
|
||||
padding-left: 70px;
|
||||
}
|
||||
|
||||
.centerAlign,
|
||||
.centerAlign img { // Icon
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Syntax highlighting
|
||||
.pre {
|
||||
.operator { @extend .token, .operator; }
|
||||
.number { @extend .token, .number; }
|
||||
.keyword { @extend .token, .keyword; }
|
||||
.type { @extend .token, .function; }
|
||||
.type a { color: inherit; }
|
||||
.pun, .comment { @extend .token, .punctuation; }
|
||||
.kwd, .preprocessor { @extend .token, .keyword; }
|
||||
.str, .string { @extend .token, .string; }
|
||||
}
|
||||
|
||||
// Function headers
|
||||
h3.fn code {
|
||||
@extend %label;
|
||||
float: right;
|
||||
font-size: .8em;
|
||||
padding: 0;
|
||||
margin-right: -.5em;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
module Docs
|
||||
class Qt
|
||||
class CleanHtmlFilter < Filter
|
||||
def call
|
||||
# Remove unneeded elements
|
||||
css('.copy-notice, .navigationbar, .headerNavi, .footerNavi, .sidebar, .toc, #ec_toggle').remove
|
||||
|
||||
# QML property/method header
|
||||
css('.qmlproto').each do |node|
|
||||
id = node.at_css('tr')['id']
|
||||
node.inner_html = node.at_css('td').inner_html
|
||||
node.name = 'h3'
|
||||
node.add_class '_qml_header'
|
||||
node['id'] = id
|
||||
end
|
||||
|
||||
doc
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,121 @@
|
||||
module Docs
|
||||
class Qt < UrlScraper
|
||||
self.name = 'Qt'
|
||||
self.type = 'qt'
|
||||
self.initial_paths = %w(classes.html qmltypes.html)
|
||||
self.root_path = 'index.html'
|
||||
self.links = {
|
||||
home: 'https://www.qt.io',
|
||||
code: 'https://code.qt.io/cgit/'
|
||||
}
|
||||
|
||||
html_filters.push 'qt/entries', 'qt/clean_html'
|
||||
|
||||
options[:container] = '.main'
|
||||
|
||||
options[:skip_patterns] = [
|
||||
# License, copyright attributions
|
||||
/3rdparty/,
|
||||
/attribution/,
|
||||
/license/,
|
||||
/licensing/,
|
||||
|
||||
# Examples, guides, tutorials
|
||||
/example/,
|
||||
/guide$/,
|
||||
/tutorial/,
|
||||
/porting/,
|
||||
/usecase/,
|
||||
/topic/,
|
||||
/^modelview/,
|
||||
/deploy(ing|ment)/,
|
||||
/building/,
|
||||
|
||||
# Old versions, changelog
|
||||
/obsolete/,
|
||||
/compatibility/,
|
||||
/^whatsnew/,
|
||||
/^newclasses/,
|
||||
|
||||
# Deprecated modules
|
||||
/(qtopengl|qgl)/,
|
||||
/qt?script/,
|
||||
|
||||
# Indexes
|
||||
/members/,
|
||||
/module/,
|
||||
/overview/,
|
||||
/^qopenglfunctions/,
|
||||
|
||||
# Tooling
|
||||
/^(qt)?(linguist|assistant|qdbusviewer)/,
|
||||
]
|
||||
|
||||
options[:skip] = [
|
||||
"qt5-intro.html",
|
||||
"compatmap.html",
|
||||
|
||||
# Indexes
|
||||
"classes.html",
|
||||
"qtmodules.html",
|
||||
"modules-qml.html",
|
||||
"modules-cpp.html",
|
||||
"functions.html",
|
||||
"namespaces.html",
|
||||
"qmltypes.html",
|
||||
"qt3d-qml.html",
|
||||
"qmlbasictypes.html",
|
||||
"guibooks.html",
|
||||
"annotated.html",
|
||||
"overviews-main.html",
|
||||
"reference-overview.html",
|
||||
|
||||
# Tutorials
|
||||
"qtvirtualkeyboard-build.html",
|
||||
|
||||
# Copyright
|
||||
"trademarks.html",
|
||||
"lgpl.html",
|
||||
"bughowto.html",
|
||||
|
||||
# Changelogs
|
||||
"changes.html",
|
||||
"qtlocation-changes.html",
|
||||
"sourcebreaks.html",
|
||||
|
||||
# Best practice guides
|
||||
"accessible.html",
|
||||
"accessible-qtquick.html",
|
||||
"sharedlibrary.html",
|
||||
"exceptionsafety.html",
|
||||
"scalability.html",
|
||||
"session.html",
|
||||
"appicon.html",
|
||||
"accelerators.html",
|
||||
|
||||
# Other
|
||||
"ecmascript.html",
|
||||
"qtremoteobjects-interaction.html",
|
||||
]
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
© The Qt Company Ltd<br>
|
||||
Licensed under the GNU Free Documentation License, Version 1.3.
|
||||
HTML
|
||||
|
||||
version '5.11' do
|
||||
self.release = '5.11'
|
||||
self.base_url = 'https://doc.qt.io/qt-5/'
|
||||
end
|
||||
|
||||
version '5.9' do
|
||||
self.release = '5.9'
|
||||
self.base_url = 'https://doc.qt.io/qt-5.9/'
|
||||
end
|
||||
|
||||
version '5.6' do
|
||||
self.release = '5.6'
|
||||
self.base_url = 'https://doc.qt.io/qt-5.6/'
|
||||
end
|
||||
end
|
||||
end
|
After Width: | Height: | Size: 456 B |
After Width: | Height: | Size: 986 B |
@ -0,0 +1 @@
|
||||
https://commons.wikimedia.org/wiki/File:Qt_logo_2016.svg
|
Loading…
Reference in new issue