Skip to content

Commit

Permalink
Convert Markdown files to RST
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Apr 1, 2018
0 parents commit d93289d
Show file tree
Hide file tree
Showing 200 changed files with 15,525 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014-2018 Frédéric Guillot

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = Kanboard
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Kanboard's Documentation
========================

This documentation is generated with Sphinx and pushed automatically on [Read the Docs](https://readthedocs.org/).

How to generate the documentation locally?
------------------------------------------

Run `make clean html` and open the file `build/html/index.html` in your browser.
36 changes: 36 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
set SPHINXPROJ=Kanboard

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%

:end
popd
Binary file added source/_static/2fa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/add-subtask-shortcut.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/add-subtask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/add_new_restriction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/application-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/automatic-action-creation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/average-lead-cycle-time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/board-collapsed-mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/board-compact-mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/board-expanded-mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/board-hide-show-column.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/board-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/board-task-limit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/board-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/burndown-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/calendar-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/cfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/closing-tasks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/custom-filter-creation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/custom-filter-dropdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/custom_roles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/dropdown-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/_static/example-restrictions.png
Binary file added source/_static/groups-management.png
Binary file added source/_static/hide-column.png
Binary file added source/_static/internal-task-links.png
Binary file added source/_static/link-label-creation.png
Binary file added source/_static/link-labels.png
Binary file added source/_static/list-view.png
Binary file added source/_static/menu-close-task.png
Binary file added source/_static/new-private-project.png
Binary file added source/_static/new-project.png
Binary file added source/_static/new-user.png
Binary file added source/_static/new_custom_role.png
Binary file added source/_static/new_restriction.png
Binary file added source/_static/notifications.png
Binary file added source/_static/project-automatic-action-step1.png
Binary file added source/_static/project-automatic-action-step3.png
Binary file added source/_static/project-automatic-actions.png
Binary file added source/_static/project-creation-form.png
Binary file added source/_static/project-creation-link.png
Binary file added source/_static/project-disable-sharing.png
Binary file added source/_static/project-edition.png
Binary file added source/_static/project-enable-sharing.png
Binary file added source/_static/project-nobody-allowed.png
Binary file added source/_static/project-permissions.png
Binary file added source/_static/project-remove.png
Binary file added source/_static/project-settings.png
Binary file added source/_static/project-view.png
Binary file added source/_static/recurring-tasks.png
Binary file added source/_static/restrictions.png
Binary file added source/_static/show-column.png
Binary file added source/_static/subtask-status-done.png
Binary file added source/_static/subtask-status-inprogress.png
Binary file added source/_static/subtask-time-tracking.png
Binary file added source/_static/subtask-timer.png
Binary file added source/_static/subtask-user-restriction.png
Binary file added source/_static/swimlane-configuration.png
Binary file added source/_static/swimlanes-configuration.png
Binary file added source/_static/swimlanes.png
Binary file added source/_static/tags-board.png
Binary file added source/_static/tags-global.png
Binary file added source/_static/tags-projects.png
Binary file added source/_static/tags-search.png
Binary file added source/_static/tags-task.png
Binary file added source/_static/task-creation-board.png
Binary file added source/_static/task-creation-form.png
Binary file added source/_static/task-distribution.png
Binary file added source/_static/task-duplication.png
Binary file added source/_static/task-lead-cycle-time.png
Binary file added source/_static/task-links.png
Binary file added source/_static/task-screenshot.png
Binary file added source/_static/task-time-tracking.png
Binary file added source/_static/task-timesheet.png
Binary file added source/_static/task-transitions.png
Binary file added source/_static/thunderbird-new-calendar-step1.png
Binary file added source/_static/thunderbird-new-calendar-step2.png
Binary file added source/_static/time-into-each-column.png
Binary file added source/_static/timetable.png
Binary file added source/_static/transitions-export.png
Binary file added source/_static/transitions.png
Binary file added source/_static/user-mentions.png
Binary file added source/_static/user-repartition.png
Binary file added source/_static/web-notifications-icon.png
Binary file added source/_static/web-notifications.png
271 changes: 271 additions & 0 deletions source/admin_guide/cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
Command Line Interface
======================

Kanboard provides a simple command line interface that can be used from
any Unix terminal. This tool can be used only on the local machine.

This feature is useful to run commands outside of the web server
processes.

Usage
-----

- Open a terminal and go to your Kanboard directory (example:
``cd /var/www/kanboard``)
- Run the command ``./cli`` or ``php cli``

.. code:: bash
Kanboard version master
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
cronjob Execute daily cronjob
help Displays help for a command
job Execute individual job (read payload from stdin)
list Lists commands
version Display Kanboard version
worker Execute queue worker
db
db:migrate Execute SQL migrations
db:version Show database schema version
export
export:daily-project-column-stats Daily project column stats CSV export (number of tasks per column and per day)
export:subtasks Subtasks CSV export
export:tasks Tasks CSV export
export:transitions Task transitions CSV export
locale
locale:compare Compare application translations with the fr_FR locale
locale:sync Synchronize all translations based on the fr_FR locale
notification
notification:overdue-tasks Send notifications for overdue tasks
plugin
plugin:install Install a plugin from a remote Zip archive
plugin:uninstall Remove a plugin
plugin:upgrade Update all installed plugins
projects
projects:archive Disable projects not touched during one year
projects:archive-activities Remove project activities after one year
projects:daily-stats Calculate daily statistics for all projects
trigger
trigger:tasks Trigger scheduler event for all tasks
user
user:reset-2fa Remove two-factor authentication for a user
user:reset-password Change user password
Available commands
------------------

Tasks CSV export
~~~~~~~~~~~~~~~~

Usage:

.. code:: bash
./cli export:tasks <project_id> <start_date> <end_date>
Example:

.. code:: bash
./cli export:tasks 1 2014-10-01 2014-11-30 > /tmp/my_custom_export.csv
CSV data are sent to ``stdout``.

Subtasks CSV export
~~~~~~~~~~~~~~~~~~~

Usage:

.. code:: bash
./cli export:subtasks <project_id> <start_date> <end_date>
Example:

.. code:: bash
./cli export:subtasks 1 2014-10-01 2014-11-30 > /tmp/my_custom_export.csv
Task transitions CSV export
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Usage:

.. code:: bash
./cli export:transitions <project_id> <start_date> <end_date>
Example:

.. code:: bash
./cli export:transitions 1 2014-10-01 2014-11-30 > /tmp/my_custom_export.csv
Export daily summaries data in CSV
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The exported data will be printed on the standard output:

.. code:: bash
./cli export:daily-project-column-stats <project_id> <start_date> <end_date>
Example:

.. code:: bash
./cli export:daily-project-column-stats 1 2014-10-01 2014-11-30 > /tmp/my_custom_export.csv
Send notifications for overdue tasks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Emails will be sent to all users with notifications enabled.

.. code:: bash
./cli notification:overdue-tasks
Optional parameters:

- ``--show``: Display notifications sent
- ``--group``: Group all overdue tasks for one user (from all projects)
in one email
- ``--manager``: Send all overdue tasks to project manager(s) in one
email
- ``-p|--project project_id|identifier``: Send notifications only for
the given project

You can also display the overdue tasks with the flag ``--show``:

.. code:: bash
./cli notification:overdue-tasks --show
+-----+---------+------------+------------+--------------+----------+
| Id | Title | Due date | Project Id | Project name | Assignee |
+-----+---------+------------+------------+--------------+----------+
| 201 | Test | 2014-10-26 | 1 | Project #0 | admin |
| 202 | My task | 2014-10-28 | 1 | Project #0 | |
+-----+---------+------------+------------+--------------+----------+
Example to filter by project:

.. code:: bash
./cli notification:overdue-tasks --project 123
Or if you have defined a project identifier:

.. code:: bash
./cli notification:overdue-tasks --project MY_PROJECT
Run daily project stats calculation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This command calculate the statistics of each project:

.. code:: bash
./cli projects:daily-stats
Run calculation for Project #0
Run calculation for Project #1
Run calculation for Project #10
Trigger for tasks
~~~~~~~~~~~~~~~~~

This command send a “daily cronjob event” to all open tasks of each
project.

.. code:: bash
./cli trigger:tasks
Trigger task event: project_id=2, nb_tasks=1
Reset user password
~~~~~~~~~~~~~~~~~~~

.. code:: bash
./cli user:reset-password my_user
You will be prompted for a password and confirmation. Characters are not
printed to the screen.

Remove two-factor authentication for a user
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: bash
./cli user:reset-2fa my_user
Install a plugin
~~~~~~~~~~~~~~~~

.. code:: bash
./cli plugin:install https://github.com/kanboard/plugin-github-auth/releases/download/v1.0.1/GithubAuth-1.0.1.zip
Note: Installed files will have the same permissions as the current user

Remove a plugin
~~~~~~~~~~~~~~~

.. code:: bash
./cli plugin:uninstall Budget
Upgrade all plugins
~~~~~~~~~~~~~~~~~~~

.. code:: bash
./cli plugin:upgrade
* Updating plugin: Budget Planning
* Plugin up to date: Github Authentication
Run Background worker
~~~~~~~~~~~~~~~~~~~~~

.. code:: bash
./cli worker
Execute individual job (mostly for debugging)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: bash
echo 'RAW_JOB_DATA' | ./cli job
Execute database migrations
~~~~~~~~~~~~~~~~~~~~~~~~~~~

If the parameter ``DB_RUN_MIGRATIONS`` is set to ``false``, you have run
the database migrations manually:

.. code:: bash
./cli db:migrate
Check database schema version
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: bash
./cli db:version
Current version: 95
Last version: 96
Loading

0 comments on commit d93289d

Please sign in to comment.