Merge branch 'meles5-website'
This commit is contained in:
commit
11c9155961
@ -88,7 +88,7 @@ class AsciiDoc:
|
||||
|
||||
def _build_website_file(self, root, filename):
|
||||
"""Build a single website file."""
|
||||
# pylint: disable=too-many-locals
|
||||
# pylint: disable=too-many-locals,too-many-statements
|
||||
src = os.path.join(root, filename)
|
||||
src_basename = os.path.basename(src)
|
||||
parts = [self._args.website[0]]
|
||||
@ -134,11 +134,13 @@ class AsciiDoc:
|
||||
if re.match(r'^=+$', line):
|
||||
line = line.replace('=', '-')
|
||||
found_title = True
|
||||
title = last_line + "=" * (len(last_line) - 1)
|
||||
title = last_line.rstrip('\n') + " | qutebrowser\n"
|
||||
title += "=" * (len(title) - 1)
|
||||
elif re.match(r'^= .+', line):
|
||||
line = '==' + line[1:]
|
||||
found_title = True
|
||||
title = last_line + "=" * (len(last_line) - 1)
|
||||
title = last_line.rstrip('\n') + " | qutebrowser\n"
|
||||
title += "=" * (len(title) - 1)
|
||||
|
||||
if not hidden:
|
||||
outfp.write(line.replace(".asciidoc[", ".html["))
|
||||
|
@ -1,6 +1,6 @@
|
||||
+++
|
||||
<div id="headline">
|
||||
<img class="qutebrowser-logo" src="icons/qutebrowser.svg" />
|
||||
<img class="qutebrowser-logo" src="icons/qutebrowser.svg" alt="qutebrowser" />
|
||||
<div class="text">
|
||||
<h1>qutebrowser</h1>
|
||||
A keyboard-driven browser.
|
||||
|
@ -175,7 +175,7 @@ table td {
|
||||
}
|
||||
|
||||
</style>
|
||||
<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 rel="icon" href="media/favicon.png" type="image/png">
|
||||
<style>
|
||||
<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 rel="icon" href="media/favicon.png" type="image/png" />
|
||||
<style type="text/css">
|
Loading…
Reference in New Issue
Block a user