Skip to content

Commit

Permalink
Move all documentation files to doc/
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Sep 17, 2017
1 parent 3e0ca5d commit 4c616a5
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 32 deletions.
1 change: 1 addition & 0 deletions .github/CONTRIBUTING.asciidoc
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ graft misc/userscripts
recursive-include scripts *.py *.sh
include qutebrowser/utils/testfile
include qutebrowser/git-commit-id
include COPYING doc/* README.asciidoc CONTRIBUTING.asciidoc FAQ.asciidoc INSTALL.asciidoc CHANGELOG.asciidoc
include doc/*
include qutebrowser.desktop
include requirements.txt
include tox.ini
Expand Down
18 changes: 9 additions & 9 deletions README.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ qutebrowser
// QUTE_WEB_HIDE
image:icons/qutebrowser-64x64.png[qutebrowser logo] *A keyboard-driven, vim-like browser based on PyQt5 and Qt.*

image:https://img.shields.io/pypi/l/qutebrowser.svg?style=flat["license badge",link="https://github.com/qutebrowser/qutebrowser/blob/master/COPYING"]
image:https://img.shields.io/pypi/l/qutebrowser.svg?style=flat["license badge",link="https://github.com/qutebrowser/qutebrowser/blob/master/doc/COPYING"]
image:https://img.shields.io/pypi/v/qutebrowser.svg?style=flat["version badge",link="https://pypi.python.org/pypi/qutebrowser/"]
image:https://requires.io/github/qutebrowser/qutebrowser/requirements.svg?branch=master["requirements badge",link="https://requires.io/github/qutebrowser/qutebrowser/requirements/?branch=master"]
image:https://travis-ci.org/qutebrowser/qutebrowser.svg?branch=master["Build Status", link="https://travis-ci.org/qutebrowser/qutebrowser"]
Expand All @@ -36,7 +36,7 @@ Downloads
---------

See the https://github.com/qutebrowser/qutebrowser/releases[github releases
page] for available downloads and the link:INSTALL.asciidoc[INSTALL] file for
page] for available downloads and the link:doc/install.asciidoc[INSTALL] file for
detailed instructions on how to get qutebrowser running on various platforms.

Documentation
Expand All @@ -49,11 +49,11 @@ available:
image:https://qutebrowser.org/img/cheatsheet-small.png["qutebrowser key binding cheatsheet",link="https://qutebrowser.org/img/cheatsheet-big.png"]
* link:doc/quickstart.asciidoc[Quick start guide]
* A https://www.shortcutfoo.com/app/dojos/qutebrowser[free training course] to remember those key bindings.
* link:FAQ.asciidoc[Frequently asked questions]
* link:doc/faq.asciidoc[Frequently asked questions]
* link:doc/help/configuring.html[Configuring qutebrowser]
* link:CONTRIBUTING.asciidoc[Contributing to qutebrowser]
* link:INSTALL.asciidoc[INSTALL]
* link:CHANGELOG.asciidoc[Change Log]
* link:doc/contributing.asciidoc[Contributing to qutebrowser]
* link:doc/install.asciidoc[Installing qutebrowser]
* link:doc/changelog.asciidoc[Change Log]
* link:doc/stacktrace.asciidoc[Reporting segfaults]
* link:doc/userscripts.asciidoc[How to write userscripts]
Expand All @@ -79,7 +79,7 @@ Contributions / Bugs
--------------------

You want to contribute to qutebrowser? Awesome! Please read
link:CONTRIBUTING.asciidoc[the contribution guidelines] for details and
link:doc/contributing.asciidoc[the contribution guidelines] for details and
useful hints.

If you found a bug or have a feature request, you can report it in several
Expand Down Expand Up @@ -129,8 +129,8 @@ The following libraries are optional:
* http://asciidoc.org/[asciidoc] to generate the documentation for the `:help`
command, when using the git repository (rather than a release).
See link:INSTALL.asciidoc[INSTALL] for directions on how to install qutebrowser
and its dependencies.
See link:doc/install.asciidoc[the documentation] for directions on how to
install qutebrowser and its dependencies.

Donating
--------
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion FAQ.asciidoc → doc/faq.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Segfaults on Facebook, Medium, Amazon, ...::
visiting these sites. This is caused by various bugs in Qt which have been
fixed in Qt 5.4. However Debian and Ubuntu are slow to adopt or upgrade
some packages. On Debian Jessie, it's recommended to use the experimental
repos as described in https://github.com/qutebrowser/qutebrowser/blob/master/INSTALL.asciidoc#on-debian--ubuntu[INSTALL].
repos as described in https://github.com/qutebrowser/qutebrowser/blob/master/doc/install.asciidoc#on-debian--ubuntu[the documentation].
+
Since Ubuntu Trusty (using Qt 5.2.1),
https://bugreports.qt.io/browse/QTBUG-42417?jql=component%20%3D%20WebKit%20and%20resolution%20%3D%20Done%20and%20fixVersion%20in%20(5.3.0%2C%20%225.3.0%20Alpha%22%2C%20%225.3.0%20Beta1%22%2C%20%225.3.0%20RC1%22%2C%205.3.1%2C%205.3.2%2C%205.4.0%2C%20%225.4.0%20Alpha%22%2C%20%225.4.0%20Beta%22%2C%20%225.4.0%20RC%22)%20and%20priority%20in%20(%22P2%3A%20Important%22%2C%20%22P1%3A%20Critical%22%2C%20%22P0%3A%20Blocker%22)[over
Expand Down
6 changes: 3 additions & 3 deletions doc/help/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ Documentation
The following help pages are currently available:

* link:../quickstart.html[Quick start guide]
* link:../../FAQ.html[Frequently asked questions]
* link:../../CHANGELOG.html[Change Log]
* link:../doc.html[Frequently asked questions]
* link:../changelog.html[Change Log]
* link:commands.html[Documentation of commands]
* link:configuring.html[Configuring qutebrowser]
* link:settings.html[Documentation of settings]
* link:../userscripts.html[How to write userscripts]
* link:../../CONTRIBUTING.html[Contributing to qutebrowser]
* link:../contributing.html[Contributing to qutebrowser]
Getting help
------------
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion misc/qutebrowser.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SetCompressor /solid lzma
!define MUI_ICON "../icons/qutebrowser.ico"
!define MUI_UNICON "../icons/qutebrowser.ico"

!insertmacro MUI_PAGE_LICENSE "..\COPYING"
!insertmacro MUI_PAGE_LICENSE "..\doc\COPYING"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
Expand Down
2 changes: 1 addition & 1 deletion qutebrowser/html/backend-warning.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h2>Using QtWebEngine instead</h2>
{% elif distribution.version >= version('17.04') %}
{{ install_webengine('python3-pyqt5.qtwebengine') }}
{% elif distribution.version >= version('16.04') %}
QtWebEngine is only available in Ubuntu's repositories since 17.04, but you can <a href="https://github.com/qutebrowser/qutebrowser/blob/master/INSTALL.asciidoc#installing-qutebrowser-with-tox">install qutebrowser via tox</a> with <span class="mono">tox -e mkvenv-pypi</span> to use the new backend.
QtWebEngine is only available in Ubuntu's repositories since 17.04, but you can <a href="https://github.com/qutebrowser/qutebrowser/blob/master/doc/install.asciidoc#installing-qutebrowser-with-tox">install qutebrowser via tox</a> with <span class="mono">tox -e mkvenv-pypi</span> to use the new backend.
{% else %}
Unfortunately, no easy way is known to install QtWebEngine on Ubuntu &lt; 16.04. {{ please_open_issue() }}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion qutebrowser/utils/docutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class DocstringParser:

"""Generate documentation based on a docstring of a command handler.
The docstring needs to follow the format described in CONTRIBUTING.
The docstring needs to follow the format described in doc/contributing.
Attributes:
_state: The current state of the parser state machine.
Expand Down
12 changes: 4 additions & 8 deletions scripts/asciidoc2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,7 @@ class AsciiDoc:

"""Abstraction of an asciidoc subprocess."""

FILES = [
('FAQ.asciidoc', 'qutebrowser/html/doc/FAQ.html'),
('CHANGELOG.asciidoc', 'qutebrowser/html/doc/CHANGELOG.html'),
('CONTRIBUTING.asciidoc', 'qutebrowser/html/doc/CONTRIBUTING.html'),
('doc/quickstart.asciidoc', 'qutebrowser/html/doc/quickstart.html'),
('doc/userscripts.asciidoc', 'qutebrowser/html/doc/userscripts.html'),
]
FILES = ['faq', 'changelog', 'contributing', 'quickstart', 'userscripts']

def __init__(self, args):
self._cmd = None
Expand Down Expand Up @@ -80,7 +74,9 @@ def build(self):

def _build_docs(self):
"""Render .asciidoc files to .html sites."""
files = self.FILES[:]
files = [('doc/{}.asciidoc'.format(f),
'qutebrowser/html/{}.html'.format(f))
for f in self.FILES]
for src in glob.glob('doc/help/*.asciidoc'):
name, _ext = os.path.splitext(os.path.basename(src))
dst = 'qutebrowser/html/doc/{}.html'.format(name)
Expand Down
2 changes: 1 addition & 1 deletion scripts/dev/Makefile-dmg
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
NAME ?= qutebrowser

SOURCE_DIR ?= .
SOURCE_FILES ?= dist/qutebrowser.app COPYING
SOURCE_FILES ?= dist/qutebrowser.app doc/COPYING

TEMPLATE_DMG ?= template.dmg
TEMPLATE_SIZE ?= 300m
Expand Down
2 changes: 1 addition & 1 deletion tests/end2end/data/downloads/mhtml/complex/complex.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h2>Can I contribute to qutebrowser?</h2>

<h2>...and how?</h2>

<p>See <a href="https://github.com/qutebrowser/qutebrowser/blob/master/CONTRIBUTING.asciidoc">
<p>See <a href="https://github.com/qutebrowser/qutebrowser/blob/master/doc/contributing.asciidoc">
here</a> for more information.</p>

<h2>More useless trivia!</h2>
Expand Down
2 changes: 1 addition & 1 deletion tests/end2end/data/downloads/mhtml/complex/complex.mht
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ the
<h2>...and how?</h2>
=20
<p>See <a href=3D"https://github.com/qutebrowser/qutebrowser/blob/m=
aster/CONTRIBUTING.asciidoc">
aster/doc/contributing.asciidoc">
here</a> for more information.</p>
=20
<h2>More useless trivia!</h2>
Expand Down
8 changes: 4 additions & 4 deletions www/header.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<div id="menu">
<a href="/index.html">Home</a>
<a href="/doc/help/">Help</a>
<a href="/FAQ.html">FAQ</a>
<a href="/INSTALL.html">Install</a>
<a href="/CHANGELOG.html">Changelog</a>
<a href="/CONTRIBUTING.html">Contributing</a>
<a href="/doc/faq.html">FAQ</a>
<a href="/doc/install.html">Install</a>
<a href="/doc/changelog.html">Changelog</a>
<a href="/doc/contributing.html">Contributing</a>
<a href="https://www.github.com/qutebrowser/qutebrowser">GitHub</a>
<a href="https://github.com/qutebrowser/qutebrowser/releases">Releases</a>
<a href="http://blog.qutebrowser.org/">Blog</a>
Expand Down

0 comments on commit 4c616a5

Please sign in to comment.