From d9f1699a3bdca5edaa223a4dcfc1660eaf9affa8 Mon Sep 17 00:00:00 2001 From: meles5 Date: Fri, 20 Nov 2015 21:12:06 +0100 Subject: [PATCH 1/4] Improved website titles --- scripts/asciidoc2html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py index 3e1b78ae3..b63af782d 100755 --- a/scripts/asciidoc2html.py +++ b/scripts/asciidoc2html.py @@ -134,11 +134,11 @@ class AsciiDoc: if re.match(r'^=+$', line): line = line.replace('=', '-') found_title = True - title = last_line + "=" * (len(last_line) - 1) + title = last_line[:-1] + " | qutebrowser\n" + "=" * (len(last_line[:-1] + " | qutebrowser") - 1) elif re.match(r'^= .+', line): line = '==' + line[1:] found_title = True - title = last_line + "=" * (len(last_line) - 1) + title = last_line[:-1] + " | qutebrowser\n" + "=" * (len(last_line[:-1] + " | qutebrowser") - 1) if not hidden: outfp.write(line.replace(".asciidoc[", ".html[")) From b9240924d27a3d32898e45414b4b5d6942e53449 Mon Sep 17 00:00:00 2001 From: meles5 Date: Fri, 20 Nov 2015 21:39:17 +0100 Subject: [PATCH 2/4] Seperated into two lines --- scripts/asciidoc2html.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py index b63af782d..e594ce58c 100755 --- a/scripts/asciidoc2html.py +++ b/scripts/asciidoc2html.py @@ -134,11 +134,13 @@ class AsciiDoc: if re.match(r'^=+$', line): line = line.replace('=', '-') found_title = True - title = last_line[:-1] + " | qutebrowser\n" + "=" * (len(last_line[:-1] + " | qutebrowser") - 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[:-1] + " | qutebrowser\n" + "=" * (len(last_line[:-1] + " | qutebrowser") - 1) + title = last_line.rstrip('\n') + " | qutebrowser\n" + title += "=" * (len(title) - 1) if not hidden: outfp.write(line.replace(".asciidoc[", ".html[")) From 401f71236dea38d17964bbdd85bfb9f60153215d Mon Sep 17 00:00:00 2001 From: meles5 Date: Fri, 20 Nov 2015 21:53:28 +0100 Subject: [PATCH 3/4] pylint: disable too-many-statements --- scripts/asciidoc2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py index e594ce58c..17cf5df7e 100755 --- a/scripts/asciidoc2html.py +++ b/scripts/asciidoc2html.py @@ -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]] From c54df5f14271f0c870158a54b72299104da89a8f Mon Sep 17 00:00:00 2001 From: meles5 Date: Sat, 21 Nov 2015 08:45:13 +0100 Subject: [PATCH 4/4] Improved meta tags on the website --- www/header.asciidoc | 2 +- www/qute.css | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/www/header.asciidoc b/www/header.asciidoc index c0e8afbd2..d16b07ccf 100644 --- a/www/header.asciidoc +++ b/www/header.asciidoc @@ -1,6 +1,6 @@ +++
- +

qutebrowser

A keyboard-driven browser. diff --git a/www/qute.css b/www/qute.css index b8384d7fc..7c4c46c41 100644 --- a/www/qute.css +++ b/www/qute.css @@ -175,7 +175,7 @@ table td { } - - - -