Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastProject committed Mar 20, 2017
1 parent 74b58d5 commit 814a626
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 19 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Added
- Documentation

### Changed
- Give more information upon installing modules and warn the user that they are code

Expand Down
35 changes: 20 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
![Pext logo](logo.png)
# Pext

![Pext logo](/logo.png)

*Pext Logo by [White Paper Fox](http://whitepaperfox.com/) under
[Creative Commons Attribution-ShareAlike 4.0](https://creativecommons.org/licenses/by-sa/4.0/),
graciously donated by [Peers](https://peers.community/).*

# Introduction
[![ReadTheDocs latest](https://readthedocs.org/projects/pext/badge/?version=latest)](https://pext.readthedocs.io/en/latest/?badge=latest)
<!--- [![ReadTheDocs stable](https://readthedocs.org/projects/pext/badge/?version=stable)](https://pext.readthedocs.io/en/stable/?badge=stable) -->

## Introduction
Pext stands for **P**ython-based **ex**tendable **t**ool. It is built using
Python 3 and Qt5 QML and intended to have its behaviour decided by modules. Pext
provides a simple window with a search bar, allowing modules to define what
Expand All @@ -15,38 +20,38 @@ modules can turn Pext into a completely different beast. From password
management to weather information, modules can harness the full power of Python
to turn the simple user interface into an useful and powerful application.

![Pext](screencast.gif)
![Pext](/screencast.gif)
*Pext running the [pass](https://github.com/Pext/pext_module_pass) and
[emoji](https://github.com/Pext/pext_module_emoji) modules*

# Dependencies
## Arch
## Dependencies
### Arch

sudo pacman -S git python-pip libnotify python-pyqt5 qt5-quickcontrols

## Debian (Stretch and later, no Jessie, sorry!)
### Debian (Stretch and later, no Jessie, sorry!)

sudo apt-get install git libnotify-bin python3-pyqt5.qtquick qml-module-qtquick-controls

## Fedora
### Fedora

sudo dnf install git libnotify python3-qt5 qt5-qtquickcontrols

## macOS
### macOS
Before running the Install Certificates command, which is only necessary to be
able to retrieve the online module list, please read https://bugs.python.org/msg283984.

brew install python3 qt5 git libnotify
pip3 install pyqt5 urllib3 certifi
/Applications/Python\ 3.6/Install\ Certificates.command

# Installation (optional)
## Installation (optional)
Pext does not need to be installed to run. However, if you prefer to install
it, you can do so:

# pip3 install . --upgrade

# Usage
## Usage
Simply start Pext with Python 3. If you have installed Pext using the above
command, simply start `pext`. Otherwise, go to the project's root directory and
run `python3 pext`.
Expand All @@ -59,8 +64,8 @@ application for a list of official modules.

For command line options, use `--help`.

# Hotkeys
## Entry management
## Hotkeys
### Entry management
- Escape: Go one level up
- Ctrl+J / Down arrow: Go one entry down
- Ctrl+H / Up arrow: Go one entry up
Expand All @@ -69,17 +74,17 @@ For command line options, use `--help`.
- Tab: Tab-complete the current input
- Enter: Select entry or run command

## Tab management
### Tab management
- Ctrl+T: Open new tab
- Ctrl+W: Close current tab
- Ctrl+Tab: Switch to next tab
- Ctrl+Shift+Tab: Switch to previous tab
- Alt+`<number>`: Switch to tab `<number>`
- F5: Reload tab, including code changes to the module

## Session management
### Session management
- Ctrl+Q: Quit and save the currently loaded modules and settings to the profile
- Ctrl+Shift+Q: Quit without saving to the profile

# License
## License
GPLv3+.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
1 change: 1 addition & 0 deletions docs/README.md
9 changes: 7 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
from recommonmark.parser import CommonMarkParser

source_parsers = {
'.md': CommonMarkParser,
}

source_suffix = ['.rst', '.md']

# The master toctree document.
master_doc = 'index'
Expand Down
13 changes: 12 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ Welcome to Pext's documentation!

.. toctree::
:maxdepth: 2
:caption: Contents:
:caption: General information:

../README.md

.. toctree::
:maxdepth: 1

../CHANGELOG.md

.. toctree::
:maxdepth: 2
:caption: Pext API files:

pext_base.rst
pext_helpers.rst
Expand Down
1 change: 1 addition & 0 deletions docs/logo.png
1 change: 1 addition & 0 deletions docs/screencast.gif
10 changes: 9 additions & 1 deletion pext/helpers/pext_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,15 @@ class Action(Enum):


class SelectionType(Enum):
"""A list of possible selection types."""
"""A list of possible selection types.
entry:
An entry in the entry list was chosen.
command:
A valid command was typed (valid commands start with an entry in the
command list.
"""

entry = 0
command = 1

0 comments on commit 814a626

Please sign in to comment.