Merge commit '798cae51d4971a74fa5a7de4815b32d9871caad5'

This commit is contained in:
Florian Bruhin 2017-05-30 10:39:20 +02:00
commit f656cda248
4 changed files with 38 additions and 3 deletions

View File

@ -1,6 +1,8 @@
Installing qutebrowser Installing qutebrowser
====================== ======================
toc::[]
On Debian / Ubuntu On Debian / Ubuntu
------------------ ------------------

View File

@ -184,7 +184,8 @@ class AsciiDoc:
with open(modified_src, 'w+', encoding='utf-8') as final_version: with open(modified_src, 'w+', encoding='utf-8') as final_version:
final_version.write(title + "\n\n" + header + current_lines) final_version.write(title + "\n\n" + header + current_lines)
self.call(modified_src, dst, '--theme=qute') asciidoc_args = ['--theme=qute', '-a toc', '-a toc-placement=manual']
self.call(modified_src, dst, *asciidoc_args)
def _build_website(self): def _build_website(self):
"""Prepare and build the website.""" """Prepare and build the website."""

View File

@ -2,7 +2,7 @@
<div id="headline"> <div id="headline">
<img class="qutebrowser-logo" src="/icons/qutebrowser.svg" alt="qutebrowser" /> <img class="qutebrowser-logo" src="/icons/qutebrowser.svg" alt="qutebrowser" />
<div class="text"> <div class="text">
<h1>qutebrowser</h1> <span class="heading-text">qutebrowser</span>
A keyboard-driven browser. A keyboard-driven browser.
</div> </div>
</div> </div>

View File

@ -44,9 +44,13 @@ p {
text-align: right; text-align: right;
} }
#headline .text h1 { #headline .text .heading-text {
color: #1e89c6; color: #1e89c6;
font-weight: bold;
font-size: 2em;
border: none; border: none;
display: block;
white-space: pre-line;
} }
#headline .text { #headline .text {
@ -220,6 +224,34 @@ table td {
} }
} }
#toc {
margin-bottom: 2.5em;
}
#toctitle {
color: #0A396E;
font-size: 1.1em;
font-weight: bold;
margin-top: 1.0em;
margin-bottom: 0.1em;
}
div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
margin-top: 0;
margin-bottom: 0;
}
div.toclevel2 {
margin-left: 2em;
font-size: 0.9em;
}
div.toclevel3 {
margin-left: 4em;
font-size: 0.9em;
}
div.toclevel4 {
margin-left: 6em;
font-size: 0.9em;
}
</style> </style>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<link href="/media/font.css" rel="stylesheet" type="text/css" /> <link href="/media/font.css" rel="stylesheet" type="text/css" />