Shorten and update README

This commit is contained in:
Florian Bruhin 2017-07-21 13:18:20 +02:00
parent 57167a5cde
commit 7e36310e8a
6 changed files with 61 additions and 262 deletions

View File

@ -36,11 +36,8 @@ Downloads
--------- ---------
See the https://github.com/qutebrowser/qutebrowser/releases[github releases See the https://github.com/qutebrowser/qutebrowser/releases[github releases
page] for available downloads (currently a source archive, and standalone page] for available downloads and the link:INSTALL.asciidoc[INSTALL] file for
packages as well as MSI installers for Windows). detailed instructions on how to get qutebrowser running on various platforms.
See link:INSTALL.asciidoc[INSTALL] for detailed instructions on how to get
qutebrowser running for various platforms.
Documentation Documentation
------------- -------------
@ -98,11 +95,16 @@ Requirements
The following software and libraries are required to run qutebrowser: The following software and libraries are required to run qutebrowser:
* http://www.python.org/[Python] 3.4 or newer (3.5 recommended) * http://www.python.org/[Python] 3.4 or newer (3.6 recommended) - note that
* http://qt.io/[Qt] 5.2.0 or newer (5.9 recommended) Python 3.4 support will be dropped soon.
* QtWebKit (old or link:https://github.com/annulen/webkit/wiki[reloaded]/NG) or QtWebEngine * http://qt.io/[Qt] 5.2.0 or newer (5.9 recommended) - note that support for Qt
< 5.7.1 will be dropped soon.
* QtWebKit (old or link:https://github.com/annulen/webkit/wiki[reloaded]/NG) or
QtWebEngine. Note that support for legacy QtWebKit (before 5.212) will be
dropped soon.
* http://www.riverbankcomputing.com/software/pyqt/intro[PyQt] 5.2.0 or newer * http://www.riverbankcomputing.com/software/pyqt/intro[PyQt] 5.2.0 or newer
(5.9 recommended) for Python 3 (5.9 recommended) for Python 3. Note that support for PyQt < 5.7 will be dropped
soon.
* https://pypi.python.org/pypi/setuptools/[pkg_resources/setuptools] * https://pypi.python.org/pypi/setuptools/[pkg_resources/setuptools]
* http://fdik.org/pyPEG/[pyPEG2] * http://fdik.org/pyPEG/[pyPEG2]
* http://jinja.pocoo.org/[jinja2] * http://jinja.pocoo.org/[jinja2]
@ -110,15 +112,14 @@ The following software and libraries are required to run qutebrowser:
* http://pyyaml.org/wiki/PyYAML[PyYAML] * http://pyyaml.org/wiki/PyYAML[PyYAML]
* http://pyopengl.sourceforge.net/[PyOpenGL] when using QtWebEngine * http://pyopengl.sourceforge.net/[PyOpenGL] when using QtWebEngine
The following libraries are optional and provide a better user experience: The following libraries are optional:
* http://cthedot.de/cssutils/[cssutils] * http://cthedot.de/cssutils/[cssutils] (for an improved `:download --mhtml`
with QtWebKit)
To generate the documentation for the `:help` command, when using the git * On Windows, https://pypi.python.org/pypi/colorama/[colorama] for colored log
repository (rather than a release), http://asciidoc.org/[asciidoc] is needed. output.
* http://asciidoc.org/[asciidoc] to generate the documentation for the `:help`
On Windows, https://pypi.python.org/pypi/colorama/[colorama] is needed to command, when using the git repository (rather than a release).
display colored log output.
See link:INSTALL.asciidoc[INSTALL] for directions on how to install qutebrowser See link:INSTALL.asciidoc[INSTALL] for directions on how to install qutebrowser
and its dependencies. and its dependencies.
@ -142,222 +143,59 @@ get in touch!
Authors Authors
------- -------
Contributors, sorted by the number of commits in descending order: qutebrowser's primary author is Florian Bruhin (The Compiler), but qutebrowser
wouldn't be what it is without the help of
https://github.com/qutebrowser/qutebrowser/graphs/contributors[hundreds of contributors]!
// QUTE_AUTHORS_START Additionally, the following people have contributed graphics:
* Florian Bruhin
* Daniel Schadt
* Ryan Roden-Corrent
* Jan Verbeek
* Jakub Klinkovský
* Antoni Boucher
* Lamar Pavel
* Marshall Lochbaum
* Bruno Oliveira
* thuck
* Martin Tournoij
* Imran Sobir
* Alexander Cogneau
* Felix Van der Jeugt
* Daniel Karbach
* Kevin Velghe
* Raphael Pierzina
* Jay Kamat
* Joel Torstensson
* Patric Schmitz
* Fritz Reichwald
* Tarcisio Fedrizzi
* Claude
* Philipp Hansch
* Corentin Julé
* meles5
* Panagiotis Ktistakis
* Artur Shaik
* Nathan Isom
* Thorsten Wißmann
* Austin Anderson
* Jimmy
* Iordanis Grigoriou
* Niklas Haas
* Maciej Wołczyk
* Clayton Craft
* sandrosc
* Alexey "Averrin" Nabrodov
* pkill9
* nanjekyejoannah
* avk
* ZDarian
* Milan Svoboda
* John ShaggyTwoDope Jenkins
* Peter Vilim
* Jacob Sword
* knaggita
* Yashar Shahi
* Oliver Caldwell
* Nikolay Amiantov
* Marius
* Julian Weigt
* Tomasz Kramkowski
* Sebastian Frysztak
* Julie Engel
* Jonas Schürmann
* error800
* Michael Hoang
* Liam BEGUIN
* Daniel Fiser
* skinnay
* Zach-Button
* Samuel Walladge
* Peter Rice
* Ismail S
* Halfwit
* David Vogt
* Claire Cavanaugh
* Christian Helbling
* rikn00
* kanikaa1234
* haitaka
* Nick Ginther
* Michał Góral
* Michael Ilsaas
* Martin Zimmermann
* Link
* Jussi Timperi
* Cosmin Popescu
* Brian Jackson
* sbinix
* rsteube
* neeasade
* jnphilipp
* Yannis Rohloff
* Tobias Patzl
* Stefan Tatschner
* Samuel Loury
* Peter Michely
* Panashe M. Fundira
* Lucas Hoffmann
* Larry Hynes
* Kirill A. Shutemov
* Johannes Altmanninger
* Jeremy Kaplan
* Ismail
* Edgar Hipp
* Daryl Finlay
* arza
* adam
* Samir Benmendil
* Regina Hug
* Penaz
* Matthias Lisin
* Mathias Fussenegger
* Marcelo Santos
* Marcel Schilling
* Joel Bradshaw
* Jean-Louis Fuchs
* Franz Fellner
* Eric Drechsel
* zwarag
* xd1le
* rmortens
* oniondreams
* issue
* haxwithaxe
* evan
* dylan araps
* caveman
* addictedtoflames
* Xitian9
* Vasilij Schneidermann
* Tomas Orsava
* Tom Janson
* Tobias Werth
* Tim Harder
* Thiago Barroso Perrotta
* Steve Peak
* Sorokin Alexei
* Simon Désaulniers
* Rok Mandeljc
* Noah Huesser
* Moez Bouhlel
* MikeinRealLife
* Lazlow Carmichael
* Kevin Wang
* Ján Kobezda
* Justin Partain
* Johannes Martinsson
* Jean-Christophe Petkovich
* Helen Sherwood-Taylor
* HalosGhost
* Gregor Pohl
* Eivind Uggedal
* Dietrich Daroch
* Derek Sivers
* Daniel Lu
* Daniel Jakots
* Daniel Hahler
* Arseniy Seroka
* Anton Grensjö
* Andy Balaam
* Andreas Fischer
* Amos Bird
* Akselmo
// QUTE_AUTHORS_END
The following people have contributed graphics:
* Jad/link:http://yelostudio.com[yelo] (new icon) * Jad/link:http://yelostudio.com[yelo] (new icon)
* WOFall (original icon) * WOFall (original icon)
* regines (key binding cheatsheet) * regines (key binding cheatsheet)
Thanks / Similar projects Also, thanks to everyone who contributed to one of qutebrowser's
------------------------- link:doc/backers.asciidoc[crowdfunding campaigns]!
Many projects with a similar goal as qutebrowser exist: Similar projects
----------------
* http://portix.bitbucket.org/dwb/[dwb] (C, GTK+ with WebKit1, currently
http://www.reddit.com/r/linux/comments/2huqbc/dwb_abandoned/[unmaintained] -
main inspiration for qutebrowser)
* https://github.com/fanglingsu/vimb[vimb] (C, GTK+ with WebKit1, active)
* http://sourceforge.net/p/vimprobable/wiki/Home/[vimprobable] (C, GTK+ with
WebKit1, dead)
* http://surf.suckless.org/[surf] (C, GTK+ with WebKit1, active)
* https://mason-larobina.github.io/luakit/[luakit] (C/Lua, GTK+ with
WebKit1, not very active)
* http://pwmt.org/projects/jumanji/[jumanji] (C, GTK+ with WebKit1, not very
active)
* http://www.uzbl.org/[uzbl] (C, GTK+ with WebKit1/WebKit2, active)
* http://conkeror.org/[conkeror] (Javascript, Emacs-like, XULRunner/Gecko,
active)
* https://github.com/AeroNotix/lispkit[lispkit] (quite new, lisp, GTK+ with
WebKit, active)
* http://www.vimperator.org/[Vimperator] (Firefox addon)
* http://5digits.org/pentadactyl/[Pentadactyl] (Firefox addon)
* https://github.com/akhodakivskiy/VimFx[VimFx] (Firefox addon)
* https://github.com/1995eaton/chromium-vim[cVim] (Chrome/Chromium addon)
* http://vimium.github.io/[vimium] (Chrome/Chromium addon)
* https://chrome.google.com/webstore/detail/vichrome/gghkfhpblkcmlkmpcpgaajbbiikbhpdi?hl=en[ViChrome] (Chrome/Chromium addon)
* https://github.com/jinzhu/vrome[Vrome] (Chrome/Chromium addon)
Many projects with a similar goal as qutebrowser exist.
Most of them were inspirations for qutebrowser in some way, thanks for that! Most of them were inspirations for qutebrowser in some way, thanks for that!
Thanks as well to the following projects and people for helping me with Active
problems and helpful hints: ~~~~~~
* http://eric-ide.python-projects.org/[eric5] / Detlev Offenbach * https://github.com/fanglingsu/vimb[vimb] (C, GTK+ with WebKit2)
* https://code.google.com/p/devicenzo/[devicenzo] * https://mason-larobina.github.io/luakit/[luakit] (C/Lua, GTK+ with WebKit2)
* portix * http://surf.suckless.org/[surf] (C, GTK+ with WebKit1/WebKit2)
* seir * http://www.uzbl.org/[uzbl] (C, GTK+ with WebKit1/WebKit2)
* nitroxleecher * Chrome/Chromium addons:
https://github.com/1995eaton/chromium-vim[cVim],
http://vimium.github.io/[Vimium],
https://github.com/brookhong/Surfingkeys[Surfingkeys],
https://github.com/lusakasa/saka-key[Saka Key]
* Firefox addons (based on WebExtensions):
https://addons.mozilla.org/en-GB/firefox/addon/vimium-ff/[Vimium-FF] (experimental),
https://github.com/lusakasa/saka-key[Saka Key]
Also, thanks to: Inactive
~~~~~~~~
* Everyone contributing to the link:doc/backers.asciidoc[crowdfunding]. * http://portix.bitbucket.org/dwb/[dwb] (C, GTK+ with WebKit1,
* Everyone who had the patience to test qutebrowser before v0.1. http://www.reddit.com/r/linux/comments/2huqbc/dwb_abandoned/[unmaintained] -
* Everyone triaging/fixing my bugs in the main inspiration for qutebrowser)
https://bugreports.qt.io/secure/Dashboard.jspa[Qt bugtracker] * http://sourceforge.net/p/vimprobable/wiki/Home/[vimprobable] (C, GTK+ with
* Everyone answering my questions on http://stackoverflow.com/[Stack Overflow] WebKit1)
and in IRC. * http://pwmt.org/projects/jumanji/[jumanji] (C, GTK+ with WebKit1)
* All the projects which were a great help while developing qutebrowser. * http://conkeror.org/[conkeror] (Javascript, Emacs-like, XULRunner/Gecko)
* Firefox addons (not based on WebExtensions or no recent activity):
http://www.vimperator.org/[Vimperator],
http://5digits.org/pentadactyl/[Pentadactyl]
https://github.com/akhodakivskiy/VimFx[VimFx] (Firefox addon),
https://github.com/shinglyu/QuantumVim[QuantumVim]
* Chrome/Chromium addons:
https://chrome.google.com/webstore/detail/vichrome/gghkfhpblkcmlkmpcpgaajbbiikbhpdi?hl=en[ViChrome],
https://github.com/jinzhu/vrome[Vrome]
License License
------- -------

View File

@ -1,5 +1,5 @@
// DO NOT EDIT THIS FILE DIRECTLY! // DO NOT EDIT THIS FILE DIRECTLY!
// It is autogenerated from docstrings by running: // It is autogenerated by running:
// $ python3 scripts/dev/src2asciidoc.py // $ python3 scripts/dev/src2asciidoc.py
= Commands = Commands

View File

@ -1,5 +1,5 @@
// DO NOT EDIT THIS FILE DIRECTLY! // DO NOT EDIT THIS FILE DIRECTLY!
// It is autogenerated from docstrings by running: // It is autogenerated by running:
// $ python3 scripts/dev/src2asciidoc.py // $ python3 scripts/dev/src2asciidoc.py
= Settings = Settings

View File

@ -280,8 +280,6 @@ def main(colors=False):
"asciidoc.py. If not given, it's searched in PATH.", "asciidoc.py. If not given, it's searched in PATH.",
nargs=2, required=False, nargs=2, required=False,
metavar=('PYTHON', 'ASCIIDOC')) metavar=('PYTHON', 'ASCIIDOC'))
parser.add_argument('--no-authors', help=argparse.SUPPRESS,
action='store_true')
args = parser.parse_args() args = parser.parse_args()
try: try:
os.mkdir('qutebrowser/html/doc') os.mkdir('qutebrowser/html/doc')

View File

@ -4,7 +4,6 @@ if [[ $DOCKER ]]; then
docker run --privileged -v $PWD:/outside -e QUTE_BDD_WEBENGINE=$QUTE_BDD_WEBENGINE -e DOCKER=$DOCKER qutebrowser/travis:$DOCKER docker run --privileged -v $PWD:/outside -e QUTE_BDD_WEBENGINE=$QUTE_BDD_WEBENGINE -e DOCKER=$DOCKER qutebrowser/travis:$DOCKER
else else
args=() args=()
[[ $TESTENV == docs ]] && args=('--no-authors')
[[ $TRAVIS_OS_NAME == osx ]] && args=('--qute-bdd-webengine' '--no-xvfb') [[ $TRAVIS_OS_NAME == osx ]] && args=('--qute-bdd-webengine' '--no-xvfb')
tox -e $TESTENV -- "${args[@]}" tox -e $TESTENV -- "${args[@]}"

View File

@ -27,7 +27,6 @@ import shutil
import os.path import os.path
import inspect import inspect
import subprocess import subprocess
import collections
import tempfile import tempfile
import argparse import argparse
@ -44,7 +43,7 @@ from qutebrowser.utils import docutils, usertypes
FILE_HEADER = """ FILE_HEADER = """
// DO NOT EDIT THIS FILE DIRECTLY! // DO NOT EDIT THIS FILE DIRECTLY!
// It is autogenerated from docstrings by running: // It is autogenerated by running:
// $ python3 scripts/dev/src2asciidoc.py // $ python3 scripts/dev/src2asciidoc.py
""".lstrip() """.lstrip()
@ -421,32 +420,6 @@ def generate_settings(filename):
_generate_setting_section(f, sectname, sect) _generate_setting_section(f, sectname, sect)
def _get_authors():
"""Get a list of authors based on git commit logs."""
corrections = {
'binix': 'sbinix',
'Averrin': 'Alexey "Averrin" Nabrodov',
'Alexey Nabrodov': 'Alexey "Averrin" Nabrodov',
'Michael': 'Halfwit',
'Error 800': 'error800',
'larryhynes': 'Larry Hynes',
'Daniel': 'Daniel Schadt',
'Alexey Glushko': 'haitaka',
'Corentin Jule': 'Corentin Julé',
'Claire C.C': 'Claire Cavanaugh',
'Rahid': 'Maciej Wołczyk',
'Fritz V155 Reichwald': 'Fritz Reichwald',
'Spreadyy': 'sandrosc',
}
ignored = ['pyup-bot']
commits = subprocess.check_output(['git', 'log', '--format=%aN'])
authors = [corrections.get(author, author)
for author in commits.decode('utf-8').splitlines()
if author not in ignored]
cnt = collections.Counter(authors)
return sorted(cnt, key=lambda k: (cnt[k], k), reverse=True)
def _format_block(filename, what, data): def _format_block(filename, what, data):
"""Format a block in a file. """Format a block in a file.
@ -493,12 +466,6 @@ def _format_block(filename, what, data):
shutil.move(tmpname, filename) shutil.move(tmpname, filename)
def regenerate_authors(filename):
"""Re-generate the authors inside README based on the commits made."""
data = ['* {}\n'.format(author) for author in _get_authors()]
_format_block(filename, 'authors', data)
def regenerate_manpage(filename): def regenerate_manpage(filename):
"""Update manpage OPTIONS using an argparse parser.""" """Update manpage OPTIONS using an argparse parser."""
# pylint: disable=protected-access # pylint: disable=protected-access
@ -544,9 +511,6 @@ def main():
generate_settings('doc/help/settings.asciidoc') generate_settings('doc/help/settings.asciidoc')
print("Generating command help...") print("Generating command help...")
generate_commands('doc/help/commands.asciidoc') generate_commands('doc/help/commands.asciidoc')
if '--no-authors' not in sys.argv:
print("Generating authors in README...")
regenerate_authors('README.asciidoc')
if '--cheatsheet' in sys.argv: if '--cheatsheet' in sys.argv:
print("Regenerating cheatsheet .pngs") print("Regenerating cheatsheet .pngs")
regenerate_cheatsheet() regenerate_cheatsheet()