aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.github/ISSUE_TEMPLATE.md2
-rwxr-xr-xMakefile43
-rw-r--r--README.md17
-rw-r--r--RELEASE_PROCESS.md37
-rw-r--r--app/config/config.yml2
-rw-r--r--composer.json4
-rw-r--r--docs/de/developer/rabbitmq.rst4
-rw-r--r--docs/de/developer/redis.rst4
-rw-r--r--docs/de/developer/testsuite.rst10
-rw-r--r--docs/de/index.rst5
-rw-r--r--docs/de/user/configuration.rst2
-rw-r--r--docs/de/user/installation.rst48
-rw-r--r--docs/de/user/parameters.rst50
-rw-r--r--docs/de/user/upgrade-2.0.x-2.1.1.rst (renamed from docs/de/user/upgrade-2.0.x-2.1.y.rst)48
-rw-r--r--docs/de/user/upgrade-2.1.x-2.1.y.rst (renamed from docs/de/user/upgrade-2.0.x-2.0.y.rst)10
-rw-r--r--docs/en/developer/api.rst2
-rw-r--r--docs/en/developer/rabbitmq.rst4
-rw-r--r--docs/en/developer/redis.rst4
-rw-r--r--docs/en/developer/testsuite.rst10
-rw-r--r--docs/en/index.rst5
-rw-r--r--docs/en/user/android.rst12
-rw-r--r--docs/en/user/configuration.rst2
-rw-r--r--docs/en/user/import.rst4
-rw-r--r--docs/en/user/installation.rst51
-rw-r--r--docs/en/user/parameters.rst50
-rw-r--r--docs/en/user/upgrade-2.0.x-2.1.1.rst (renamed from docs/en/user/upgrade-2.0.x-2.1.y.rst)57
-rw-r--r--docs/en/user/upgrade-2.1.x-2.1.y.rst (renamed from docs/en/user/upgrade-2.0.x-2.0.y.rst)10
-rw-r--r--docs/fr/developer/rabbitmq.rst4
-rw-r--r--docs/fr/developer/redis.rst4
-rw-r--r--docs/fr/developer/testsuite.rst10
-rw-r--r--docs/fr/index.rst5
-rw-r--r--docs/fr/user/configuration.rst2
-rw-r--r--docs/fr/user/import.rst4
-rw-r--r--docs/fr/user/installation.rst39
-rw-r--r--docs/fr/user/parameters.rst50
-rw-r--r--docs/fr/user/upgrade-2.0.x-2.1.1.rst (renamed from docs/fr/user/upgrade-2.0.x-2.1.y.rst)52
-rw-r--r--docs/fr/user/upgrade-2.1.x-2.1.y.rst (renamed from docs/fr/user/upgrade-2.0.x-2.0.y.rst)8
-rw-r--r--scripts/install.sh10
-rw-r--r--scripts/release.sh19
-rw-r--r--scripts/update.sh13
-rw-r--r--src/Wallabag/ApiBundle/Entity/AccessToken.php2
-rw-r--r--src/Wallabag/ApiBundle/Entity/RefreshToken.php2
-rw-r--r--src/Wallabag/CoreBundle/Command/InstallCommand.php17
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig11
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig2
-rw-r--r--tests/Wallabag/CoreBundle/WallabagCoreTestCase.php4
-rw-r--r--tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php1
-rw-r--r--tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php1
48 files changed, 557 insertions, 200 deletions
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index 6e8a87a9..38bf2df8 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -1,3 +1,5 @@
1:warning: If your issue is about an error during fetching a link, please read: http://doc.wallabag.org/en/master/user/errors_during_fetching.html#how-can-i-help-to-fix-that
2
1### Issue details 3### Issue details
2 4
3Please provide issue details here. 5Please provide issue details here.
diff --git a/Makefile b/Makefile
new file mode 100755
index 00000000..1c6c0d53
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,43 @@
1TMP_FOLDER=/tmp
2RELEASE_FOLDER=wllbg-release
3
4ifndef ENV
5 ENV=prod
6endif
7
8help: ## Display this help menu
9 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
10
11clean: ## Clear the application cache
12 @rm -rf var/cache/*
13
14install: ## Install wallabag with the latest version
15 @sh scripts/install.sh $(ENV)
16
17update: ## Update the wallabag installation to the latest version
18 @sh scripts/update.sh $(ENV)
19
20run: ## Run the wallabag built-in server
21 @php bin/console server:run --env=$(ENV)
22
23build: ## Run grunt
24 @grunt
25
26test: ## Launch wallabag testsuite
27 @if [ ! -d "vendor/phpunit" ]; then composer install; fi
28 @ant prepare && vendor/phpunit/phpunit/phpunit -v
29
30release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
31ifndef VERSION
32 $(error VERSION is not set)
33endif
34 @sh scripts/release.sh $(VERSION) $(TMP_FOLDER) $(RELEASE_FOLDER) $(ENV)
35
36travis: ## Make some stuff for Travis-CI
37
38deploy: ## Deploy wallabag
39 @bundle exec cap staging deploy
40
41.PHONY: help clean install update build test release travis deploy
42
43.DEFAULT_GOAL := install
diff --git a/README.md b/README.md
index 048315c0..c9488288 100644
--- a/README.md
+++ b/README.md
@@ -6,23 +6,22 @@
6wallabag is a self hostable application allowing you to not miss any content anymore. 6wallabag is a self hostable application allowing you to not miss any content anymore.
7Click, save and read it when you can. It extracts content so that you can read it when you have time. 7Click, save and read it when you can. It extracts content so that you can read it when you have time.
8 8
9More informations on our website: [wallabag.org](https://wallabag.org) 9More information on our website: [wallabag.org](https://wallabag.org).
10
11![wallabag logo](https://raw.githubusercontent.com/wallabag/logo/master/_default/typo-horizontal/png/sm/logo-typo-horizontal-black-no-bg-no-border-sm.png)
10 12
11# Install wallabag 13# Install wallabag
14Please read [the documentation to see the wallabag requirements](http://doc.wallabag.org/en/master/user/installation.html#requirements).
12 15
13If you don't have it yet, please [install composer](https://getcomposer.org/download/) or be sure to use Composer 1.2 (`composer selfupdate` can help you about that). Read [our documentation](http://doc.wallabag.org) to have more information about installation.
14Then you can install wallabag by executing the following commands: 16Then you can install wallabag by executing the following commands:
15 17
16``` 18```
17 git clone https://github.com/wallabag/wallabag.git 19git clone https://github.com/wallabag/wallabag.git
18 cd wallabag 20cd wallabag && make install
19 git checkout 2.1.1 21make run
20 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
21 php bin/console wallabag:install --env=prod
22 php bin/console server:run --env=prod
23``` 22```
24 23
25## License 24# License
26Copyright © 2013-2016 Nicolas Lœuillet <nicolas@loeuillet.org> 25Copyright © 2013-2016 Nicolas Lœuillet <nicolas@loeuillet.org>
27This work is free. You can redistribute it and/or modify it under the 26This work is free. You can redistribute it and/or modify it under the
28terms of the MIT License. See the COPYING file for more details. 27terms of the MIT License. See the COPYING file for more details.
diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md
index 359bc921..8ac9bbcd 100644
--- a/RELEASE_PROCESS.md
+++ b/RELEASE_PROCESS.md
@@ -1,48 +1,45 @@
1## Definition 1## Definition
2 2
3A release is mostly a git tag of http://github.com/wallabag/wallabag, following [semantic versioning](http://semver.org). 3A release is mostly a git tag of http://github.com/wallabag/wallabag, following [semantic versioning](http://semver.org).
4The last release at the time of writing is 2.0.0-alpha.2, from the v2 branch.
5 4
6### Steps to release 5### Steps to release
7 6
8During this documentation, we assume the release is `release-2.0.0-beta.1`. 7During this documentation, we assume the release is `$LAST_WALLABAG_RELEASE`.
9 8
10#### Files to edit 9#### Files to edit
11 10
12- `app/config/config.yml` (`wallabag_core.version`) 11- `app/config/config.yml` (`wallabag_core.version`)
13- `README.md` (`composer create-project` command) 12- `CHANGELOG.md` (by using this command `github_changelog_generator --no-compare-link`. [github-changelog-generator is available here](https://github.com/skywinder/github-changelog-generator))
14- `docs/en/user/installation.rst` and its translations (`composer create-project` command)
15- `CHANGELOG.md` (by using this command `github_changelog_generator --no-compare-link --future-release "2.x.x"`. [github-changelog-generator is available here](https://github.com/skywinder/github-changelog-generator))
16 13
17#### Create release on GitHub 14#### Create release on GitHub
18 15
19- Run these commands to create the tag: 16- Run these commands to create the tag:
20 17
21``` 18```
22 git checkout v2 19git checkout master
23 git pull origin v2 20git pull origin master
24 git checkout -b release-2.0.0-beta.1 21git checkout -b release-$LAST_WALLABAG_RELEASE
25 SYMFONY_ENV=prod composer up --no-dev 22SYMFONY_ENV=prod composer up --no-dev
26 git add --force composer.lock 23git add --force composer.lock
27 git add README.md 24git commit -m "Release wallabag $LAST_WALLABAG_RELEASE"
28 git commit -m "Release wallabag 2.0.0-beta.1" 25git push origin release-$LAST_WALLABAG_RELEASE
29 git push origin release-2.0.0-beta.1
30``` 26```
31 27
32- Create a new pull request with this title `DON'T MERGE Release wallabag 2.0.0-beta.1`. This pull request is used to launch builds on Travis-CI. 28- Create a new pull request with this title `DON'T MERGE Release wallabag $LAST_WALLABAG_RELEASE`. This pull request is used to launch builds on Travis-CI.
33- Run these commands to create the package: 29- Run these command to create the package:
34 30
35``` 31```
36 git clone git@github.com:wallabag/wallabag.git -b release-2.0.0-beta.1 release-2.0.0-beta.1 32make release master /tmp wllbg-release prod
37 SYMFONY_ENV=prod composer up -d=release-2.0.0-beta.1 --no-dev
38 tar czf wallabag-release-2.0.0-beta.1.tar.gz --exclude="var/*" --exclude=".git" release-2.0.0-beta.1
39``` 33```
40 34
41- [Create the new release on GitHub](https://github.com/wallabag/wallabag/releases/new). You have to upload on this page the package. 35- [Create the new release on GitHub](https://github.com/wallabag/wallabag/releases/new). You have to upload on this page the package.
42- Delete the `release-2.0.0-beta.1` branch and close the pull request (**DO NOT MERGE IT**). 36- Delete the `release-$LAST_WALLABAG_RELEASE` branch and close the pull request (**DO NOT MERGE IT**).
43- Update the URL shortener (used on `wllbg.org` to generate links like `http://wllbg.org/latest-v2-package` or `http://wllbg.org/latest-v2`) 37- Update the URL shortener (used on `wllbg.org` to generate links like `http://wllbg.org/latest-v2-package` or `http://wllbg.org/latest-v2`)
44- Update [the downloads page](https://github.com/wallabag/wallabag.org/blob/master/content/pages/download.md) on the website (MD5 sum, release date) 38- Update [the downloads page](https://github.com/wallabag/wallabag.org/blob/master/content/pages/download.md) on the website (MD5 sum, release date)
45- Drink a beer! 39- Update Dockerfile https://github.com/wallabag/docker (and create a new tag)
40- Update wallabag.org website (downloads, releases and new blog post)
41- Put the next patch version suffixed with `-dev` in `app/config/config.yml` (`wallabag_core.version`)
42- Drink a :beer:!
46 43
47### `composer.lock` 44### `composer.lock`
48A release tag must contain a `composer.lock` file. It sets which dependencies were available at the time a release was done, 45A release tag must contain a `composer.lock` file. It sets which dependencies were available at the time a release was done,
diff --git a/app/config/config.yml b/app/config/config.yml
index 75d7299c..bcc4c8eb 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -30,7 +30,7 @@ framework:
30 assets: ~ 30 assets: ~
31 31
32wallabag_core: 32wallabag_core:
33 version: 2.1.1 33 version: 2.1.2-dev
34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb" 34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
35 languages: 35 languages:
36 en: 'English' 36 en: 'English'
diff --git a/composer.json b/composer.json
index 4f56162e..79de337b 100644
--- a/composer.json
+++ b/composer.json
@@ -65,9 +65,9 @@
65 "liip/theme-bundle": "~1.1", 65 "liip/theme-bundle": "~1.1",
66 "lexik/form-filter-bundle": "~5.0", 66 "lexik/form-filter-bundle": "~5.0",
67 "j0k3r/graby": "~1.0", 67 "j0k3r/graby": "~1.0",
68 "friendsofsymfony/user-bundle": "~2.0@dev", 68 "friendsofsymfony/user-bundle": "dev-master#e168ed64629d034cb9cbbffb9d4350f62ef04fab as 2.0.x-dev",
69 "friendsofsymfony/oauth-server-bundle": "^1.5", 69 "friendsofsymfony/oauth-server-bundle": "^1.5",
70 "stof/doctrine-extensions-bundle": "^1.2@dev", 70 "stof/doctrine-extensions-bundle": "^1.2",
71 "scheb/two-factor-bundle": "~2.0", 71 "scheb/two-factor-bundle": "~2.0",
72 "grandt/phpepub": "~4.0", 72 "grandt/phpepub": "~4.0",
73 "wallabag/php-mobi": "~1.0.0", 73 "wallabag/php-mobi": "~1.0.0",
diff --git a/docs/de/developer/rabbitmq.rst b/docs/de/developer/rabbitmq.rst
index 37e9984b..f81e07e3 100644
--- a/docs/de/developer/rabbitmq.rst
+++ b/docs/de/developer/rabbitmq.rst
@@ -46,6 +46,10 @@ Bearbeite die Datei ``parameters.yml``, um die RabbitMQ Konfiguration einzuricht
46 rabbitmq_user: guest 46 rabbitmq_user: guest
47 rabbitmq_password: guest 47 rabbitmq_password: guest
48 48
49Enable RabbitMQ in wallabag
50---------------------------
51
52In internal settings, in the **Import** section, enable RabbitMQ (with the value 1).
49 53
50Starte den RabbitMQ Consumer 54Starte den RabbitMQ Consumer
51---------------------------- 55----------------------------
diff --git a/docs/de/developer/redis.rst b/docs/de/developer/redis.rst
index 46334cf0..57b41550 100644
--- a/docs/de/developer/redis.rst
+++ b/docs/de/developer/redis.rst
@@ -35,6 +35,10 @@ Bearbeite die Datei ``parameters.yml``, um die RabbitMQ Konfiguration einzuricht
35 redis_host: localhost 35 redis_host: localhost
36 redis_port: 6379 36 redis_port: 6379
37 37
38Enable Redis in wallabag
39------------------------
40
41In internal settings, in the **Import** section, enable Redis (with the value 1).
38 42
39Starte den Redis Consumer 43Starte den Redis Consumer
40------------------------- 44-------------------------
diff --git a/docs/de/developer/testsuite.rst b/docs/de/developer/testsuite.rst
new file mode 100644
index 00000000..b2b16cdc
--- /dev/null
+++ b/docs/de/developer/testsuite.rst
@@ -0,0 +1,10 @@
1Testsuite
2=========
3
4To ensure wallabag development quality, we wrote tests with `PHPUnit <https://phpunit.de>`_.
5
6If you contribute to the project (by translating the application, by fixing bugs or by adding a new feature), please write your own tests.
7
8To launch wallabag testsuite, you need to install `ant <http://ant.apache.org>`_.
9
10Then, execute this command ``make test``.
diff --git a/docs/de/index.rst b/docs/de/index.rst
index b3cd33b0..a380d7bd 100644
--- a/docs/de/index.rst
+++ b/docs/de/index.rst
@@ -30,8 +30,8 @@ Die Dokumentation ist in anderen Sprachen verfügbar :
30 30
31 user/faq 31 user/faq
32 user/installation 32 user/installation
33 user/upgrade-2.0.x-2.1.y 33 user/upgrade-2.0.x-2.1.1
34 user/upgrade-2.0.x-2.0.y 34 user/upgrade-2.0.x-2.1.1
35 user/migration 35 user/migration
36 user/import 36 user/import
37 user/create_account 37 user/create_account
@@ -44,6 +44,7 @@ Die Dokumentation ist in anderen Sprachen verfügbar :
44 user/filters 44 user/filters
45 user/tags 45 user/tags
46 user/android 46 user/android
47 user/parameters
47 48
48.. _dev-docs: 49.. _dev-docs:
49 50
diff --git a/docs/de/user/configuration.rst b/docs/de/user/configuration.rst
index 67695ff1..0b0793b1 100644
--- a/docs/de/user/configuration.rst
+++ b/docs/de/user/configuration.rst
@@ -102,7 +102,7 @@ Wenn *readingTime >= 5 AND domainName = "github.com"*, dann tagge als *lange zu
102Welche Variablen und Operatoren kann ich zum Regeln schreiben nutzen? 102Welche Variablen und Operatoren kann ich zum Regeln schreiben nutzen?
103~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 103~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104 104
105Die folgenden Variabel und Operatoren können genutzt werden, um Tagging-Regeln zu erstellen: 105Die folgenden Variablen und Operatoren können genutzt werden, um Tagging-Regeln zu erstellen (sei vorsichtig, denn bei einigen Werten musst du Anführungszeichen hinzufügen, z.B. ``language = "de"``):
106 106
107=========== ============================================== ======== ========== 107=========== ============================================== ======== ==========
108Variable Bedeutung Operator Bedeutung 108Variable Bedeutung Operator Bedeutung
diff --git a/docs/de/user/installation.rst b/docs/de/user/installation.rst
index 3578dca9..35a30f52 100644
--- a/docs/de/user/installation.rst
+++ b/docs/de/user/installation.rst
@@ -6,6 +6,20 @@ Voraussetzungen
6 6
7wallabag ist kompatibel mit PHP >= 5.5, inkl. PHP 7. 7wallabag ist kompatibel mit PHP >= 5.5, inkl. PHP 7.
8 8
9.. note::
10
11 To install wallabag easily, we create a ``Makefile``, so you need to have the ``make`` tool.
12
13wallabag nutzt eine große Anzahl an Bibliotheken, um zu funktionieren. Diese Bibliotheken müssen mit einem Tool namens Composer installiert werden. Du musst es installieren sofern du es bisher noch nicht gemacht hast.
14
15Composer installieren:
16
17::
18
19 curl -s http://getcomposer.org/installer | php
20
21Du kannst eine spezifische Anleitung `hier <https://getcomposer.org/doc/00-intro.md>`__ finden.
22
9Du benötigst die folgenden Extensions damit wallabag funktioniert. Einige von diesen sind vielleicht schon in deiner Version von PHP aktiviert, somit musst du eventuell 23Du benötigst die folgenden Extensions damit wallabag funktioniert. Einige von diesen sind vielleicht schon in deiner Version von PHP aktiviert, somit musst du eventuell
10nicht alle folgenden Pakete installieren. 24nicht alle folgenden Pakete installieren.
11 25
@@ -39,33 +53,20 @@ Installation
39Auf einem dedizierten Webserver (empfohlener Weg) 53Auf einem dedizierten Webserver (empfohlener Weg)
40~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 54~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41 55
42wallabag nutzt eine große Anzahl an Bibliotheken, um zu funktionieren. Diese Bibliotheken müssen mit einem Tool namens Composer installiert werden. Du musst es installieren sofern du es bisher noch nicht gemacht hast.
43
44Composer installieren:
45
46::
47
48 curl -s http://getcomposer.org/installer | php
49
50Du kannst eine spezifische Anleitung `hier <https://getcomposer.org/doc/00-intro.md>`__ finden.
51
52Um wallabag selbst zu installieren, musst du die folgenden Kommandos ausführen: 56Um wallabag selbst zu installieren, musst du die folgenden Kommandos ausführen:
53 57
54:: 58::
55 59
56 git clone https://github.com/wallabag/wallabag.git 60 git clone https://github.com/wallabag/wallabag.git
57 cd wallabag 61 cd wallabag && make install
58 git checkout 2.1.1 --force
59 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
60 php bin/console wallabag:install --env=prod
61 62
62Um PHPs eingebauten Server zu starten und zu testen, ob alles korrekt installiert wurde, kannst du folgendes Kommando ausführen: 63Um PHPs eingebauten Server zu starten und zu testen, ob alles korrekt installiert wurde, kannst du folgendes Kommando ausführen:
63 64
64:: 65::
65 66
66 php bin/console server:run --env=prod 67 make run
67 68
68Und wallabag unter http://deineserverip:8000 erreichen 69und wallabag unter http://deineserverip:8000 erreichen.
69 70
70.. tip:: 71.. tip::
71 72
@@ -87,18 +88,18 @@ Führe dieses Kommando aus, um das neueste Paket herunterzuladen und zu entpacke
87 88
88 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package 89 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package
89 90
90(md5 hash: ``6c33520e29cc754b687f9cee0398dede``) 91Du findest die `md5 Hashsumme des neuesten Pakets auf unserer Website <https://www.wallabag.org/pages/download-wallabag.html>`_.
91 92
92Jetzt lese die Dokumentation, um einen Virtualhost zu erstellen, dann greife auf dein wallabag zu. 93Jetzt lies die Dokumentation, um einen Virtualhost zu erstellen, dann greife auf dein wallabag zu.
93Wenn du die Datenbankkonfiguration eingestellt hast, MySQL oder PostgreSQL zu nutzen, musst du einen Nutzer über das folgende Kommando erstellen ``php bin/console wallabag:install --env=prod``. 94Wenn du die Datenbankkonfiguration eingestellt hast, MySQL oder PostgreSQL zu nutzen, musst du einen Nutzer über das folgende Kommando erstellen ``php bin/console wallabag:install --env=prod``.
94 95
95Installation mit Docker 96Installation mit Docker
96------------------------ 97~~~~~~~~~~~~~~~~~~~~~~~
97 98
98Wir stellen ein Docker Image zu Verfügung, um wallabag einfach zu installieren. Schaue in unser Repository in unserem `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__, um mehr Informationen zu erhalten. 99Wir stellen ein Docker Image zu Verfügung, um wallabag einfach zu installieren. Schaue in unser Repository in unserem `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__, um mehr Informationen zu erhalten.
99 100
100Kommando, um den Container zu starten 101Kommando, um den Container zu starten
101~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 102^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102 103
103.. code-block:: bash 104.. code-block:: bash
104 105
@@ -108,7 +109,7 @@ Virtualhosts
108------------ 109------------
109 110
110Konfiguration von Apache 111Konfiguration von Apache
111~~~~~~~~~~~~~~~~~~~~~~~ 112~~~~~~~~~~~~~~~~~~~~~~~~
112 113
113Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installieren und du willst PHP als Apache Modul nutzen, dann ist hier ein vhost für wallabag: 114Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installieren und du willst PHP als Apache Modul nutzen, dann ist hier ein vhost für wallabag:
114 115
@@ -190,15 +191,14 @@ Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installie
190 access_log /var/log/nginx/wallabag_access.log; 191 access_log /var/log/nginx/wallabag_access.log;
191 } 192 }
192 193
193Nach dem neuladen oder neustarten von nginx, solltest du nun wallabag unter http://domain.tld erreichen. 194Nach dem Neuladen oder Neustarten von nginx solltest du nun wallabag unter http://domain.tld erreichen.
194 195
195.. tip:: 196.. tip::
196 197
197 When you want to import large file into wallabag, you need to add this line in your nginx configuration ``client_max_body_size XM; # allows file uploads up to X megabytes``.
198 Wenn du eine große Datei in wallabag importieren willst, solltest du diese Zeile zu deiner nginx Konfiguration hinzufügen ``client_max_body_size XM; # allows file uploads up to X megabytes``. 198 Wenn du eine große Datei in wallabag importieren willst, solltest du diese Zeile zu deiner nginx Konfiguration hinzufügen ``client_max_body_size XM; # allows file uploads up to X megabytes``.
199 199
200Konfiguration von lighttpd 200Konfiguration von lighttpd
201~~~~~~~~~~~~~~~~~~~~~~~~~ 201~~~~~~~~~~~~~~~~~~~~~~~~~~
202 202
203Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installieren, dann ist hier ein Rezept für wallabag (bearbeite deine ``lighttpd.conf`` und füge die Konfiguration dort ein): 203Angenommen du willst wallabag in das Verzeichnis ``/var/www/wallabag`` installieren, dann ist hier ein Rezept für wallabag (bearbeite deine ``lighttpd.conf`` und füge die Konfiguration dort ein):
204 204
diff --git a/docs/de/user/parameters.rst b/docs/de/user/parameters.rst
new file mode 100644
index 00000000..4c68fe9e
--- /dev/null
+++ b/docs/de/user/parameters.rst
@@ -0,0 +1,50 @@
1Was bedeuten die Parameter?
2===========================
3.. csv-table:: Datenbankparameter
4 :header: "Name", "Standardwert", "Beschreibung"
5
6 "database_driver", "pdo_sqlite", "Sollte pdo_sqlite oder pdo_mysql oder pdo_pgsql sein"
7 "database_host", "127.0.0.1", "Hostadresse deiner Datenbank (normalerweise localhost oder 127.0.0.1)"
8 "database_port", "~", "Port deiner Datenbank (Du kannst ``~`` stehen lassen, um den Standardport zu nutzen)"
9 "database_name", "symfony", "Benenne deine Datenbank"
10 "database_user", "root", "Benutzer, der Schreibrecht in der Datenbank hat"
11 "database_password", "~", "Passwort des Benutzers"
12 "database_path", "``""%kernel.root_dir%/../data/db/wallabag.sqlite""``", "nur für SQLite, definiere, wo die Datenbankdatei abgelegt werden soll. Lass den Parameter leer für andere Datenbanktypen."
13 "database_table_prefix", "wallabag_", "alle wallabag Tabellen erhalten diesen Präfix im Namen. Du kannst einen ``_`` dafür im Präfix nutzen, um das zu verdeutlichen."
14 "database_socket", "null", "Wenn deine Datenbank einen Socket statt TCP nutzt, schreibe hier den Pfad zum Socket hin (andere Verbindungsparameter werden dann ignoriert."
15
16.. csv-table:: Konfiguration, um mit wallabag E-Mails senden zu können
17 :header: "Name", "Standardwert", "Beschreibung"
18
19 "mailer_transport", "smtp", "Die exakte Transportmethode, um E-Mails zuzustellen. Gültige Werte sind: smtp, gmail, mail, sendmail, null (was das Mailen deaktivert)"
20 "mailer_host", "127.0.0.1", "Der Host, zu dem sich verbunden wird, wenn SMTP als Transport genutzt wird."
21 "mailer_user", "~", "Der Benutzername, wenn SMTP als Transport genutzt wird."
22 "mailer_password", "~", "Das Passwort, wenn SMTP als Transport genutzt wird."
23
24.. csv-table:: Andere wallabag Optionen
25 :header: "Name", "Standardwert", "Beschreibung"
26
27 "locale", "en", "Standardsprache deiner wallabag Instanz (wie z.B. en, fr, es, etc.)"
28 "secret", "ovmpmAWXRCabNlMgzlzFXDYmCFfzGv", "Dieser String sollte einzigartig für deine Applikation sein und er wird genutzt, um sicherheitsrelevanten Operationen mehr Entropie hinzuzufügen."
29 "twofactor_auth", "true", "true, um Zwei-Faktor-Authentifizierung zu aktivieren"
30 "twofactor_sender", "no-reply@wallabag.org", "E-Mail-Adresse des Senders der Mails mit dem Code für die Zwei-Faktor-Authentifizierung"
31 "fosuser_registration", "true", "true, um die Registrierung für jedermann zu aktivieren"
32 "fosuser_confirmation", "true", "true, um eine Bestätigungsmail für jede Registrierung zu senden"
33 "from_email", "no-reply@wallabag.org", "E-Mail-Adresse, die im Absenderfeld jeder Mail genutzt wird"
34 "rss_limit", "50", "Artikellimit für RSS Feeds"
35
36.. csv-table:: RabbitMQ Konfiguration
37 :header: "Name", "Standardwert", "Beschreibung"
38
39 "rabbitmq_host", "localhost", "Host deines RabbitMQ"
40 "rabbitmq_port", "5672", "Port deines RabbitMQ"
41 "rabbitmq_user", "guest", "Benutzer, der die Queue lesen kann"
42 "rabbitmq_password", "guest", "Passwort dieses Benutzers"
43
44.. csv-table:: Redis Konfiguration
45 :header: "Name", "Standardwert", "Beschreibung"
46
47 "redis_scheme", "tcp", "Bestimmt das Protokoll, dass genutzt wird, um mit Redis zu kommunizieren. Gültige Werte sind: tcp, unix, http"
48 "redis_host", "localhost", "IP oder Hostname des Zielservers (ignoriert bei Unix Schema)"
49 "redis_port", "6379", "TCP/IP Port des Zielservers (ignoriert bei Unix Schema)"
50 "redis_path", "null", "Pfad zur Unix Domain Socket Datei, wenn Redis Unix Domain Sockets nutzt"
diff --git a/docs/de/user/upgrade-2.0.x-2.1.y.rst b/docs/de/user/upgrade-2.0.x-2.1.1.rst
index eee50fe4..db81a1be 100644
--- a/docs/de/user/upgrade-2.0.x-2.1.y.rst
+++ b/docs/de/user/upgrade-2.0.x-2.1.1.rst
@@ -1,5 +1,5 @@
1Wallabag updaten 1Wallabag von 2.0.x auf 2.1.1 updaten
2================ 2====================================
3 3
4.. warning:: 4.. warning::
5Wenn du den Import von Pocket durch das Hinzufügen des Consumer Key in den internen Einstellungen konfiguriert hast, fertige bitte ein Backup deines Keys an, bevor du auf das neue Release migrierst: Du wirst den Key nach dem Update in der Konfiguration erneut eintragen müssen. 5Wenn du den Import von Pocket durch das Hinzufügen des Consumer Key in den internen Einstellungen konfiguriert hast, fertige bitte ein Backup deines Keys an, bevor du auf das neue Release migrierst: Du wirst den Key nach dem Update in der Konfiguration erneut eintragen müssen.
@@ -30,23 +30,43 @@ Lade das neueste Release von wallabag herunter:
30 30
31 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package 31 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package
32 32
33(2.1.1 md5 hash: ``9584a3b60a2b2a4de87f536548caac93``) 33(2.1.1 md5 Hashsumme: ``9584a3b60a2b2a4de87f536548caac93``)
34 34
35Entpacke das Archiv in deinen wallabag-Ordner und ersetze ``app/config/parameters.yml`` mit deiner Datei. 35Entpacke das Archiv in deinen wallabag-Ordner und ersetze ``app/config/parameters.yml`` mit deiner Datei.
36 36
37Bitte beachte, dass wir in dieser Version neue Parameter hinzugefügt haben. Du musst die Datei ``app/config/parameters.yml`` bearbeiten und die folgenden Zeilen hinzufügen (ersetze die Werte mit deiner Konfiguration): 37Bitte beachte, dass wir in dieser Version neue Parameter hinzugefügt haben. Du musst die Datei ``app/config/parameters.yml`` bearbeiten und die folgenden Zeilen hinzufügen (ersetze die Werte mit deiner Konfiguration):
38 38
39.. code-block:: bash 39.. code-block:: yml
40 40
41 # RabbitMQ processing 41 parameters:
42 rabbitmq_host: localhost 42 database_driver: pdo_sqlite
43 rabbitmq_port: 5672 43 database_host: 127.0.0.1
44 rabbitmq_user: guest 44 database_port: null
45 rabbitmq_password: guest 45 database_name: symfony
46 46 database_user: root
47 # Redis processing 47 database_password: null
48 redis_host: localhost 48 database_path: '%kernel.root_dir%/../data/db/wallabag.sqlite'
49 redis_port: 6379 49 database_table_prefix: wallabag_
50 mailer_transport: smtp
51 mailer_host: 127.0.0.1
52 mailer_user: null
53 mailer_password: null
54 locale: en
55 secret: ovmpmAWXRCabNlMgzlzFXDYmCFfzGv
56 twofactor_auth: true
57 twofactor_sender: no-reply@wallabag.org
58 fosuser_registration: true
59 fosuser_confirmation: true
60 from_email: no-reply@wallabag.org
61 rss_limit: 50
62 rabbitmq_host: localhost
63 rabbitmq_port: 5672
64 rabbitmq_user: guest
65 rabbitmq_password: guest
66 redis_host: localhost
67 redis_port: 6379
68
69Du kannst `hier eine Dokumentation über die Parameter finden <http://doc.wallabag.org/en/master/user/parameters.html>`_.
50 70
51Wenn du SQLite nutzt, musst auch das ``data/`` Verzeichnis in die neue Installation kopieren. 71Wenn du SQLite nutzt, musst auch das ``data/`` Verzeichnis in die neue Installation kopieren.
52 72
diff --git a/docs/de/user/upgrade-2.0.x-2.0.y.rst b/docs/de/user/upgrade-2.1.x-2.1.y.rst
index 5820a0d2..e638ea9b 100644
--- a/docs/de/user/upgrade-2.0.x-2.0.y.rst
+++ b/docs/de/user/upgrade-2.1.x-2.1.y.rst
@@ -1,17 +1,17 @@
1Wallabag updaten 2.0.x -> 2.1.x 1Wallabag von 2.1.x auf 2.1.y updaten
2=============================== 2====================================
3 3
4Update auf einem dedizierten Webserver 4Update auf einem dedizierten Webserver
5-------------------------------------- 5--------------------------------------
6 6
7Das neueste Release ist auf https://www.wallabag.org/pages/download-wallabag.html veröffentlicht. Um deine wallabag Installation auf die neueste Version upzudaten, führe die folgenden Kommandos in deinem wallabag Ordner aus (ersetze ``2.0.8`` mit der neuesten Releasenummer): 7Das neueste Release ist auf https://www.wallabag.org/pages/download-wallabag.html veröffentlicht. Um deine wallabag Installation auf die neueste Version upzudaten, führe die folgenden Kommandos in deinem wallabag Ordner aus (ersetze ``2.1.2`` mit der neuesten Releasenummer):
8 8
9:: 9::
10 10
11 rm -rf var/cache/* 11 rm -rf var/cache/*
12 git fetch origin 12 git fetch origin
13 git fetch --tags 13 git fetch --tags
14 git checkout 2.0.8 14 git checkout 2.1.2 --force
15 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist 15 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
16 php bin/console cache:clear --env=prod 16 php bin/console cache:clear --env=prod
17 17
@@ -26,7 +26,7 @@ Lade das neueste Release von wallabag herunter:
26 26
27 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package 27 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package
28 28
29(md5 hash: ``4f84c725d1d6e3345eae0a406115e5ff``) 29(md5 Hashsumme von 2.1.1: ``9584a3b60a2b2a4de87f536548caac93``)
30 30
31Entpacke das Archiv in deinen wallabag Ordner und ersetze ``app/config/parameters.yml`` mit deiner Datei. 31Entpacke das Archiv in deinen wallabag Ordner und ersetze ``app/config/parameters.yml`` mit deiner Datei.
32 32
diff --git a/docs/en/developer/api.rst b/docs/en/developer/api.rst
index 83f0bb8f..4828cddd 100644
--- a/docs/en/developer/api.rst
+++ b/docs/en/developer/api.rst
@@ -8,7 +8,7 @@ Requirements
8 8
9* wallabag freshly (or not) installed on http://localhost:8000 9* wallabag freshly (or not) installed on http://localhost:8000
10* ``httpie`` installed on your computer (`see project website <https://github.com/jkbrzt/httpie>`__). Note that you can also adapt the commands using curl or wget. 10* ``httpie`` installed on your computer (`see project website <https://github.com/jkbrzt/httpie>`__). Note that you can also adapt the commands using curl or wget.
11* all the API methods are documented here http://localhost:8000/api/doc 11* all the API methods are documented here http://localhost:8000/api/doc (on your instance) and `on our example instance <http://v2.wallabag.org/api/doc>`_
12 12
13Creating a new API client 13Creating a new API client
14------------------------- 14-------------------------
diff --git a/docs/en/developer/rabbitmq.rst b/docs/en/developer/rabbitmq.rst
index ca0b0f3a..673228e9 100644
--- a/docs/en/developer/rabbitmq.rst
+++ b/docs/en/developer/rabbitmq.rst
@@ -46,6 +46,10 @@ Edit your ``parameters.yml`` file to edit RabbitMQ configuration. The default on
46 rabbitmq_user: guest 46 rabbitmq_user: guest
47 rabbitmq_password: guest 47 rabbitmq_password: guest
48 48
49Enable RabbitMQ in wallabag
50---------------------------
51
52In internal settings, in the **Import** section, enable RabbitMQ (with the value 1).
49 53
50Launch RabbitMQ consumer 54Launch RabbitMQ consumer
51------------------------ 55------------------------
diff --git a/docs/en/developer/redis.rst b/docs/en/developer/redis.rst
index 005d6e4f..2e2bbbea 100644
--- a/docs/en/developer/redis.rst
+++ b/docs/en/developer/redis.rst
@@ -35,6 +35,10 @@ Edit your ``parameters.yml`` file to edit Redis configuration. The default one s
35 redis_host: localhost 35 redis_host: localhost
36 redis_port: 6379 36 redis_port: 6379
37 37
38Enable Redis in wallabag
39------------------------
40
41In internal settings, in the **Import** section, enable Redis (with the value 1).
38 42
39Launch Redis consumer 43Launch Redis consumer
40--------------------- 44---------------------
diff --git a/docs/en/developer/testsuite.rst b/docs/en/developer/testsuite.rst
new file mode 100644
index 00000000..b2b16cdc
--- /dev/null
+++ b/docs/en/developer/testsuite.rst
@@ -0,0 +1,10 @@
1Testsuite
2=========
3
4To ensure wallabag development quality, we wrote tests with `PHPUnit <https://phpunit.de>`_.
5
6If you contribute to the project (by translating the application, by fixing bugs or by adding a new feature), please write your own tests.
7
8To launch wallabag testsuite, you need to install `ant <http://ant.apache.org>`_.
9
10Then, execute this command ``make test``.
diff --git a/docs/en/index.rst b/docs/en/index.rst
index beb3816e..6d85db2b 100644
--- a/docs/en/index.rst
+++ b/docs/en/index.rst
@@ -30,8 +30,8 @@ The documentation is available in other languages:
30 30
31 user/faq 31 user/faq
32 user/installation 32 user/installation
33 user/upgrade-2.0.x-2.1.y 33 user/upgrade-2.0.x-2.1.1
34 user/upgrade-2.0.x-2.0.y 34 user/upgrade-2.1.x-2.1.y
35 user/migration 35 user/migration
36 user/import 36 user/import
37 user/create_account 37 user/create_account
@@ -45,6 +45,7 @@ The documentation is available in other languages:
45 user/filters 45 user/filters
46 user/tags 46 user/tags
47 user/android 47 user/android
48 user/parameters
48 49
49.. _dev-docs: 50.. _dev-docs:
50 51
diff --git a/docs/en/user/android.rst b/docs/en/user/android.rst
index 4271f037..ccbad264 100644
--- a/docs/en/user/android.rst
+++ b/docs/en/user/android.rst
@@ -29,13 +29,13 @@ Fill in your wallabag data. You need to enter your wallabag address. It is impor
29 :alt: Filled in settings 29 :alt: Filled in settings
30 :align: center 30 :align: center
31 31
32After you have filled in your data, push the button Connection test and wait for the test to finish. 32After you have filled in your data, push the button Connection test and wait for the test to finish.
33 33
34.. image:: ../../img/user/android_configuration_connection_test.en.png 34.. image:: ../../img/user/android_configuration_connection_test.en.png
35 :alt: Connection test with your wallabag data 35 :alt: Connection test with your wallabag data
36 :align: center 36 :align: center
37 37
38The connection test shall finish with success. If not, you need to fix this first until you proceed. 38The connection test should finish with success. If not, you need to fix this first until you proceed.
39 39
40.. image:: ../../img/user/android_configuration_connection_test_success.en.png 40.. image:: ../../img/user/android_configuration_connection_test_success.en.png
41 :alt: Connection test successful 41 :alt: Connection test successful
@@ -65,16 +65,16 @@ After hitting the save button, you get the following screen. The app proposes to
65 :alt: Settings saved the first time 65 :alt: Settings saved the first time
66 :align: center 66 :align: center
67 67
68Finally after the syncronisation finished successfully, you are presented the list of unread articles. 68Finally after the synchronisation finished successfully, you are presented to the list of unread articles.
69 69
70.. image:: ../../img/user/android_unread_feed_synced.en.png 70.. image:: ../../img/user/android_unread_feed_synced.en.png
71 :alt: Filled article list cause feeds successfully syncronized 71 :alt: Filled article list cause feeds successfully synchronized
72 :align: center 72 :align: center
73 73
74 74
75 75
76Known limitations 76Known limitations
77---- 77-----------------
78 78
792FA 792FA
80~~~ 80~~~
@@ -85,7 +85,7 @@ Currently the does not support two-factor authentication. You should disable tha
85Limited amount of articles with wallabag v2 85Limited amount of articles with wallabag v2
86~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 86~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87 87
88In your wallabag web instance you can configure how many items are part of the RSS feed. This option did not exist in wallabag v1, where all articles were part of the feed. So if you set the amount of articles being displayed greater than the number of items being content of your RSS feed, you will only see the number of items in your RSS feed. 88In your wallabag web instance you can configure how many items are part of the RSS feed. This option did not exist in wallabag v1, where all articles were part of the feed. So if you set the amount of articles being displayed greater than the number of items being content of your RSS feed, you will only see the number of items in your RSS feed.
89 89
90 90
91SSL/TLS encryption 91SSL/TLS encryption
diff --git a/docs/en/user/configuration.rst b/docs/en/user/configuration.rst
index f4c55dea..f74924df 100644
--- a/docs/en/user/configuration.rst
+++ b/docs/en/user/configuration.rst
@@ -100,7 +100,7 @@ if *« readingTime >= 5 AND domainName = "github.com" »* then tag as *« long r
100Which variables and operators can I use to write rules? 100Which variables and operators can I use to write rules?
101~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 101~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
102 102
103The following variables and operators can be used to create tagging rules: 103The following variables and operators can be used to create tagging rules (be careful, for some values, you need to add quotes, for example ``language = "en"``):
104 104
105=========== ============================================== ======== ========== 105=========== ============================================== ======== ==========
106Variable Meaning Operator Meaning 106Variable Meaning Operator Meaning
diff --git a/docs/en/user/import.rst b/docs/en/user/import.rst
index 758e3816..70f0187d 100644
--- a/docs/en/user/import.rst
+++ b/docs/en/user/import.rst
@@ -35,7 +35,7 @@ From Readability
35Export your Readability data 35Export your Readability data
36~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 36~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 37
38On the tools (`https://www.readability.com/tools/<https://www.readability.com/tools/>`_) page, click on "Export your data" in the "Data Export" section. You will received an email to download a json (which does not end with .json in fact). 38On the tools (`https://www.readability.com/tools/ <https://www.readability.com/tools/>`_) page, click on "Export your data" in the "Data Export" section. You will received an email to download a json (which does not end with .json in fact).
39 39
40Import your data into wallabag 2.x 40Import your data into wallabag 2.x
41~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 41~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -51,7 +51,7 @@ From Instapaper
51Export your Instapaper data 51Export your Instapaper data
52~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 52~~~~~~~~~~~~~~~~~~~~~~~~~~~~
53 53
54On the settings (`https://www.instapaper.com/user<https://www.instapaper.com/user>`_) page, click on "Download .CSV file" in the "Export" section. A CSV file will be downloaded (like ``instapaper-export.csv``). 54On the settings (`https://www.instapaper.com/user <https://www.instapaper.com/user>`_) page, click on "Download .CSV file" in the "Export" section. A CSV file will be downloaded (like ``instapaper-export.csv``).
55 55
56Import your data into wallabag 2.x 56Import your data into wallabag 2.x
57~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 57~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/docs/en/user/installation.rst b/docs/en/user/installation.rst
index 4aaabd82..45e14616 100644
--- a/docs/en/user/installation.rst
+++ b/docs/en/user/installation.rst
@@ -6,7 +6,21 @@ Requirements
6 6
7wallabag is compatible with PHP >= 5.5, including PHP 7. 7wallabag is compatible with PHP >= 5.5, including PHP 7.
8 8
9You'll need the following extensions for wallabag to work. Some of these may already activated in your version of PHP, so you may not have to install all corresponding packages. 9.. note::
10
11 To install wallabag easily, we provide a ``Makefile``, so you need to have the ``make`` tool.
12
13wallabag uses a large number of PHP libraries in order to function. These libraries must be installed with a tool called Composer. You need to install it if you have not already done so and be sure to use the 1.2 version (if you already have Composer, run a ``composer selfupdate``).
14
15Install Composer:
16
17::
18
19 curl -s http://getcomposer.org/installer | php
20
21You can find specific instructions `here <https://getcomposer.org/doc/00-intro.md>`__.
22
23You'll also need the following extensions for wallabag to work. Some of these may already activated in your version of PHP, so you may not have to install all corresponding packages.
10 24
11- php-session 25- php-session
12- php-ctype 26- php-ctype
@@ -38,31 +52,18 @@ Installation
38On a dedicated web server (recommended way) 52On a dedicated web server (recommended way)
39~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 53~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 54
41wallabag uses a large number of PHP libraries in order to function. These libraries must be installed with a tool called Composer. You need to install it if you have not already done so and be sure to use the 1.2 version (if you already have Composer, run a ``composer selfupdate``).
42
43Install Composer:
44
45::
46
47 curl -s http://getcomposer.org/installer | php
48
49You can find specific instructions `here <https://getcomposer.org/doc/00-intro.md>`__.
50
51To install wallabag itself, you must run the following commands: 55To install wallabag itself, you must run the following commands:
52 56
53:: 57::
54 58
55 git clone https://github.com/wallabag/wallabag.git 59 git clone https://github.com/wallabag/wallabag.git
56 cd wallabag 60 cd wallabag && make install
57 git checkout 2.1.1 --force
58 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
59 php bin/console wallabag:install --env=prod
60 61
61To start PHP's build-in server and test if everything did install correctly, you can do: 62To start PHP's build-in server and test if everything did install correctly, you can do:
62 63
63:: 64::
64 65
65 php bin/console server:run --env=prod 66 make run
66 67
67And access wallabag at http://yourserverip:8000 68And access wallabag at http://yourserverip:8000
68 69
@@ -86,18 +87,18 @@ Execute this command to download and extract the latest package:
86 87
87 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package 88 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package
88 89
89(md5 hash of the 2.1.1 package: ``9584a3b60a2b2a4de87f536548caac93``) 90You will find the `md5 hash of the latest package on our website <https://www.wallabag.org/pages/download-wallabag.html>`_.
90 91
91Now, read the following documentation to create your virtual host, then access your wallabag. 92Now, read the following documentation to create your virtual host, then access your wallabag.
92If you changed the database configuration to use MySQL or PostgreSQL, you need to create a user via this command ``php bin/console wallabag:install --env=prod``. 93If you changed the database configuration to use MySQL or PostgreSQL, you need to create a user via this command ``php bin/console wallabag:install --env=prod``.
93 94
94Installation with Docker 95Installation with Docker
95------------------------ 96~~~~~~~~~~~~~~~~~~~~~~~~
96 97
97We provide you a Docker image to install wallabag easily. Have a look to our repository on `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__ to have more information. 98We provide you a Docker image to install wallabag easily. Have a look at our repository on `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__ for more information.
98 99
99Command to launch container 100Command to launch container
100~~~~~~~~~~~~~~~~~~~~~~~~~~~ 101^^^^^^^^^^^^^^^^^^^^^^^^^^^
101 102
102.. code-block:: bash 103.. code-block:: bash
103 104
@@ -193,12 +194,12 @@ After reloading or restarting nginx, you should now be able to access wallabag a
193 194
194.. tip:: 195.. tip::
195 196
196 When you want to import large file into wallabag, you need to add this line in your nginx configuration ``client_max_body_size XM; # allows file uploads up to X megabytes``. 197 When you want to import large files into wallabag, you need to add this line in your nginx configuration ``client_max_body_size XM; # allows file uploads up to X megabytes``.
197 198
198Configuration on lighttpd 199Configuration on lighttpd
199~~~~~~~~~~~~~~~~~~~~~~~~~ 200~~~~~~~~~~~~~~~~~~~~~~~~~
200 201
201Assuming you install wallabag in the /var/www/wallabag folder, here's the recipe for wallabag (edit your ``lighttpd.conf`` file and paste this configuration into it): 202Assuming you install wallabag in the ``/var/www/wallabag`` folder, here's the recipe for wallabag (edit your ``lighttpd.conf`` file and paste this configuration into it):
202 203
203:: 204::
204 205
@@ -239,16 +240,16 @@ Rights access to the folders of the project
239Test environment 240Test environment
240~~~~~~~~~~~~~~~~ 241~~~~~~~~~~~~~~~~
241 242
242When we just want to test wallabag, we just run the command ``php bin/console server:run --env=prod`` to start our wallabag instance and everything will go smoothly because the user who started the project can access to the current folder naturally, without any problem. 243When we just want to test wallabag, we just run the command ``make run`` to start our wallabag instance and everything will go smoothly because the user who started the project can access to the current folder naturally, without any problem.
243 244
244Production environment 245Production environment
245~~~~~~~~~~~~~~~~~~~~~~ 246~~~~~~~~~~~~~~~~~~~~~~
246 247
247As soon as we use Apache or Nginx to access to our wallabag instance, and not from the command ``php bin/console server:run --env=prod`` to start it, we should take care to grant the good rights on the good folders to keep safe all the folders of the project. 248As soon as we use Apache or Nginx to access to our wallabag instance, and not from the command ``make run`` to start it, we should take care to grant the good rights on the good folders to keep safe all the folders of the project.
248 249
249To do so, the folder name, known as ``DocumentRoot`` (for apache) or ``root`` (for Nginx), has to be absolutely accessible by the Apache/Nginx user. Its name is generally ``www-data``, ``apache`` or ``nobody`` (depending on linux system used). 250To do so, the folder name, known as ``DocumentRoot`` (for apache) or ``root`` (for Nginx), has to be absolutely accessible by the Apache/Nginx user. Its name is generally ``www-data``, ``apache`` or ``nobody`` (depending on linux system used).
250 251
251So the folder ``/var/www/wallabag/web`` has to be accessible by this last one. But this could be not enough if we just care about this folder, because we could meet a blank page or get an error 500 when trying to access to the homepage of the project. 252So the folder ``/var/www/wallabag/web`` has to be accessible by this last one. But this may not be enough if we just care about this folder, because we could meet a blank page or get an error 500 when trying to access to the homepage of the project.
252 253
253This is due to the fact that we will need to grant the same rights access on the folder ``/var/www/wallabag/var`` like those we gave on the folder ``/var/www/wallabag/web``. Thus, we fix this problem with the following command: 254This is due to the fact that we will need to grant the same rights access on the folder ``/var/www/wallabag/var`` like those we gave on the folder ``/var/www/wallabag/web``. Thus, we fix this problem with the following command:
254 255
diff --git a/docs/en/user/parameters.rst b/docs/en/user/parameters.rst
new file mode 100644
index 00000000..6cbd5ae4
--- /dev/null
+++ b/docs/en/user/parameters.rst
@@ -0,0 +1,50 @@
1What is the meaning of the parameters?
2======================================
3.. csv-table:: Database parameters
4 :header: "name", "default", "description"
5
6 "database_driver", "pdo_sqlite", "Should be pdo_sqlite or pdo_mysql or pdo_pgsql"
7 "database_host", "127.0.0.1", "host of your database (usually localhost or 127.0.0.1)"
8 "database_port", "~", "port of your database (you can leave ``~`` to use the default one)"
9 "database_name", "symfony", "name of your database"
10 "database_user", "root", "user that can write to this database"
11 "database_password", "~", "password of that user"
12 "database_path", "``""%kernel.root_dir%/../data/db/wallabag.sqlite""``", "only for SQLite, define where to put the database file. Leave it empty for other database"
13 "database_table_prefix", "wallabag_", "all wallabag's tables will be prefixed with that string. You can include a ``_`` for clarity"
14 "database_socket", "null", "If your database is using a socket instead of tcp, put the path of the socket (other connection parameters will then be ignored)"
15
16.. csv-table:: Configuration to send emails from wallabag
17 :header: "name", "default", "description"
18
19 "mailer_transport", "smtp", "The exact transport method to use to deliver emails. Valid values are: smtp, gmail, mail, sendmail, null (which will disable the mailer)"
20 "mailer_host", "127.0.0.1", "The host to connect to when using smtp as the transport."
21 "mailer_user", "~", "The username when using smtp as the transport."
22 "mailer_password", "~", "The password when using smtp as the transport."
23
24.. csv-table:: Other wallabag's option
25 :header: "name", "default", "description"
26
27 "locale", "en", "Default language of your wallabag instance (like en, fr, es, etc.)"
28 "secret", "ovmpmAWXRCabNlMgzlzFXDYmCFfzGv", "This is a string that should be unique to your application and it's commonly used to add more entropy to security related operations."
29 "twofactor_auth", "true", "true to enable Two factor authentication"
30 "twofactor_sender", "no-reply@wallabag.org", "email of the email sender to receive the two factor code"
31 "fosuser_registration", "true", "true to enable public registration"
32 "fosuser_confirmation", "true", "true to send a confirmation by email for each registration"
33 "from_email", "no-reply@wallabag.org", "email address used in From: field in each email"
34 "rss_limit", "50", "limit for RSS feeds"
35
36.. csv-table:: RabbitMQ configuration
37 :header: "name", "default", "description"
38
39 "rabbitmq_host", "localhost", "Host of your RabbitMQ"
40 "rabbitmq_port", "5672", "Port of your RabbitMQ"
41 "rabbitmq_user", "guest", "User that can read queues"
42 "rabbitmq_password", "guest", "Password of that user"
43
44.. csv-table:: Redis configuration
45 :header: "name", "default", "description"
46
47 "redis_scheme", "tcp", "Specifies the protocol used to communicate with an instance of Redis. Valid values are: tcp, unix, http"
48 "redis_host", "localhost", "IP or hostname of the target server (ignored for unix scheme)"
49 "redis_port", "6379", "TCP/IP port of the target server (ignored for unix scheme)"
50 "redis_path", "null", "Path of the UNIX domain socket file used when connecting to Redis using UNIX domain sockets"
diff --git a/docs/en/user/upgrade-2.0.x-2.1.y.rst b/docs/en/user/upgrade-2.0.x-2.1.1.rst
index ec353a18..4f9b9cee 100644
--- a/docs/en/user/upgrade-2.0.x-2.1.y.rst
+++ b/docs/en/user/upgrade-2.0.x-2.1.1.rst
@@ -1,14 +1,13 @@
1Upgrading from 2.0.x to 2.1.y 1Upgrade from 2.0.x to 2.1.1
2============================= 2===========================
3 3
4.. warning:: 4.. warning::
5Before this migration, if you configured the Pocket import by adding your consumer key in Internal settings, please do a backup of it: you'll have to add it into the Config page after the upgrade. 5
6 Before this migration, if you configured the Pocket import by adding your consumer key in Internal settings, please do a backup of it: you'll have to add it into the Config page after the upgrade.
6 7
7Upgrade on a dedicated web server 8Upgrade on a dedicated web server
8--------------------------------- 9---------------------------------
9 10
10The last release is published on https://www.wallabag.org/pages/download-wallabag.html. In order to upgrade your wallabag installation and get the last version, run the following commands in you wallabag folder (replace ``2.1.1`` by the last release number):
11
12:: 11::
13 12
14 rm -rf var/cache/* 13 rm -rf var/cache/*
@@ -28,25 +27,45 @@ Download the last release of wallabag:
28 27
29.. code-block:: bash 28.. code-block:: bash
30 29
31 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package 30 wget http://framabag.org/wallabag-release-2.1.1.tar.gz && tar xvf wallabag-release-2.1.1.tar.gz
32 31
33(md5 hash of the 2.1.1 package: ``9584a3b60a2b2a4de87f536548caac93``) 32(md5 hash of the 2.1.1 package: ``9584a3b60a2b2a4de87f536548caac93``)
34 33
35Extract the archive in your wallabag folder and replace ``app/config/parameters.yml`` with yours. 34Extract the archive in your wallabag folder and replace ``app/config/parameters.yml`` with yours.
36 35
37Please note that we added new parameters in this version. You have to edit ``app/config/parameters.yml`` by adding these lines (replace with your configuration) : 36Please check that your ``app/config/parameters.yml`` contains all the required parameters. Here is a default ``parameters.yml`` file. If you don't know which parameter you need to set, please leave the default one.
38 37
39.. code-block:: bash 38.. code-block:: yml
40 39
41 # RabbitMQ processing 40 parameters:
42 rabbitmq_host: localhost 41 database_driver: pdo_sqlite
43 rabbitmq_port: 5672 42 database_host: 127.0.0.1
44 rabbitmq_user: guest 43 database_port: null
45 rabbitmq_password: guest 44 database_name: symfony
46 45 database_user: root
47 # Redis processing 46 database_password: null
48 redis_host: localhost 47 database_path: '%kernel.root_dir%/../data/db/wallabag.sqlite'
49 redis_port: 6379 48 database_table_prefix: wallabag_
49 mailer_transport: smtp
50 mailer_host: 127.0.0.1
51 mailer_user: null
52 mailer_password: null
53 locale: en
54 secret: ovmpmAWXRCabNlMgzlzFXDYmCFfzGv
55 twofactor_auth: true
56 twofactor_sender: no-reply@wallabag.org
57 fosuser_registration: true
58 fosuser_confirmation: true
59 from_email: no-reply@wallabag.org
60 rss_limit: 50
61 rabbitmq_host: localhost
62 rabbitmq_port: 5672
63 rabbitmq_user: guest
64 rabbitmq_password: guest
65 redis_host: localhost
66 redis_port: 6379
67
68You can find `here a documentation about parameters <http://doc.wallabag.org/en/master/user/parameters.html>`_.
50 69
51If you use SQLite, you must also copy your ``data/`` folder inside the new installation. 70If you use SQLite, you must also copy your ``data/`` folder inside the new installation.
52 71
diff --git a/docs/en/user/upgrade-2.0.x-2.0.y.rst b/docs/en/user/upgrade-2.1.x-2.1.y.rst
index 3391c2cd..575f4ba9 100644
--- a/docs/en/user/upgrade-2.0.x-2.0.y.rst
+++ b/docs/en/user/upgrade-2.1.x-2.1.y.rst
@@ -1,17 +1,17 @@
1Upgrade from 2.0.x to 2.0.y 1Upgrading from 2.1.x to 2.1.y
2=========================== 2=============================
3 3
4Upgrade on a dedicated web server 4Upgrade on a dedicated web server
5--------------------------------- 5---------------------------------
6 6
7The last release is published on https://www.wallabag.org/pages/download-wallabag.html. In order to upgrade your wallabag installation and get the last version, run the following commands in you wallabag folder (replace ``2.0.8`` by the last release number): 7The last release is published on https://www.wallabag.org/pages/download-wallabag.html. In order to upgrade your wallabag installation and get the last version, run the following commands in you wallabag folder (replace ``2.1.2`` by the last release number):
8 8
9:: 9::
10 10
11 rm -rf var/cache/* 11 rm -rf var/cache/*
12 git fetch origin 12 git fetch origin
13 git fetch --tags 13 git fetch --tags
14 git checkout 2.0.8 14 git checkout 2.1.2 --force
15 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist 15 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
16 php bin/console cache:clear --env=prod 16 php bin/console cache:clear --env=prod
17 17
@@ -26,7 +26,7 @@ Download the last release of wallabag:
26 26
27 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package 27 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package
28 28
29(md5 hash of the 2.0.8 package: ``4f84c725d1d6e3345eae0a406115e5ff``) 29(md5 hash of the 2.1.1 package: ``9584a3b60a2b2a4de87f536548caac93``)
30 30
31Extract the archive in your wallabag folder and replace ``app/config/parameters.yml`` with yours. 31Extract the archive in your wallabag folder and replace ``app/config/parameters.yml`` with yours.
32 32
diff --git a/docs/fr/developer/rabbitmq.rst b/docs/fr/developer/rabbitmq.rst
index 771725a7..92db5a28 100644
--- a/docs/fr/developer/rabbitmq.rst
+++ b/docs/fr/developer/rabbitmq.rst
@@ -46,6 +46,10 @@ Modifiez votre fichier ``parameters.yml`` pour éditer la configuration RabbitMQ
46 rabbitmq_user: guest 46 rabbitmq_user: guest
47 rabbitmq_password: guest 47 rabbitmq_password: guest
48 48
49Activer RabbitMQ dans wallabag
50------------------------------
51
52Dans les paramètres internes, section **Import**, activez RabbitMQ (avec la valeur 1).
49 53
50Démarrer les clients RabbitMQ 54Démarrer les clients RabbitMQ
51----------------------------- 55-----------------------------
diff --git a/docs/fr/developer/redis.rst b/docs/fr/developer/redis.rst
index 5557e7a8..8a212e8a 100644
--- a/docs/fr/developer/redis.rst
+++ b/docs/fr/developer/redis.rst
@@ -35,6 +35,10 @@ Modifiez votre fichier ``parameters.yml`` pour éditer la configuration Redis. C
35 redis_host: localhost 35 redis_host: localhost
36 redis_port: 6379 36 redis_port: 6379
37 37
38Activer Redis dans wallabag
39---------------------------
40
41Dans les paramètres internes, section **Import**, activez Redis (avec la valeur 1).
38 42
39Démarrer les clients Redis 43Démarrer les clients Redis
40-------------------------- 44--------------------------
diff --git a/docs/fr/developer/testsuite.rst b/docs/fr/developer/testsuite.rst
new file mode 100644
index 00000000..bd5c68c6
--- /dev/null
+++ b/docs/fr/developer/testsuite.rst
@@ -0,0 +1,10 @@
1Suite de tests
2==============
3
4Pour assurer la qualité du développement de wallabag, nous avons écrit des tests avec `PHPUnit <https://phpunit.de>`_.
5
6Si vous contribuez au projet (en traduisant l'application, en corrigeant des bugs ou en ajoutant une nouvelle fonctionnalité), merci d'écrire vos propres tests.
7
8Pour lancer la suite de tests de wallabag, vous devez installer `ant <http://ant.apache.org>`_.
9
10Ensuite, exécutez la commande ``make test``.
diff --git a/docs/fr/index.rst b/docs/fr/index.rst
index 359b103c..2a265ff3 100644
--- a/docs/fr/index.rst
+++ b/docs/fr/index.rst
@@ -31,8 +31,8 @@ La documentation est disponible dans d'autres langues :
31 31
32 user/faq 32 user/faq
33 user/installation 33 user/installation
34 user/upgrade-2.0.x-2.1.y 34 user/upgrade-2.0.x-2.1.1
35 user/upgrade-2.0.x-2.0.y 35 user/upgrade-2.0.x-2.1.1
36 user/migration 36 user/migration
37 user/import 37 user/import
38 user/create_account 38 user/create_account
@@ -45,6 +45,7 @@ La documentation est disponible dans d'autres langues :
45 user/share 45 user/share
46 user/filters 46 user/filters
47 user/tags 47 user/tags
48 user/parameters
48 49
49.. _dev-docs: 50.. _dev-docs:
50 51
diff --git a/docs/fr/user/configuration.rst b/docs/fr/user/configuration.rst
index 278f0022..8bfe66f5 100644
--- a/docs/fr/user/configuration.rst
+++ b/docs/fr/user/configuration.rst
@@ -102,7 +102,7 @@ if *« readingTime >= 5 AND domainName = "github.com" »* then tag as *« long r
102Quels variables et opérateurs puis-je utiliser pour écrire mes règles ? 102Quels variables et opérateurs puis-je utiliser pour écrire mes règles ?
103~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 103~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104 104
105Les variables et opérateurs suivants peuvent être utilisés lors de la création de vos règles : 105Les variables et opérateurs suivants peuvent être utilisés lors de la création de vos règles (attention, pour certaines valeurs, vous devez ajouter des guillemets, par exemple ``language = "en"``) :
106 106
107=========== ============================================== ========== ========== 107=========== ============================================== ========== ==========
108Variable Sens Opérateur Sens 108Variable Sens Opérateur Sens
diff --git a/docs/fr/user/import.rst b/docs/fr/user/import.rst
index 6f114dd6..2e6caafb 100644
--- a/docs/fr/user/import.rst
+++ b/docs/fr/user/import.rst
@@ -36,7 +36,7 @@ Depuis Readability
36Exportez vos données de Readability 36Exportez vos données de Readability
37~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38 38
39Sur la page des outils (`https://www.readability.com/tools/<https://www.readability.com/tools/>`_), cliquez sur "Export your data" dans la section "Data Export". Vous allez recevoir un email avec un lien pour télécharger le json. 39Sur la page des outils (`https://www.readability.com/tools/ <https://www.readability.com/tools/>`_), cliquez sur "Export your data" dans la section "Data Export". Vous allez recevoir un email avec un lien pour télécharger le json.
40 40
41Importez vos données dans wallabag 2.x 41Importez vos données dans wallabag 2.x
42~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 42~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -52,7 +52,7 @@ Depuis Instapaper
52Exportez vos données de Instapaper 52Exportez vos données de Instapaper
53~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 53~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54 54
55Sur la page des paramètres (`https://www.instapaper.com/user<https://www.instapaper.com/user>`_), cliquez sur "Download .CSV file" dans la section "Export". Un fichier CSV se téléchargera (``instapaper-export.csv``). 55Sur la page des paramètres (`https://www.instapaper.com/user <https://www.instapaper.com/user>`_), cliquez sur "Download .CSV file" dans la section "Export". Un fichier CSV se téléchargera (``instapaper-export.csv``).
56 56
57Importez vos données dans wallabag 2.x 57Importez vos données dans wallabag 2.x
58~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 58~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/docs/fr/user/installation.rst b/docs/fr/user/installation.rst
index 9dd39af7..4f94d6c8 100644
--- a/docs/fr/user/installation.rst
+++ b/docs/fr/user/installation.rst
@@ -6,6 +6,20 @@ Pré-requis
6 6
7wallabag est compatible avec PHP >= 5.5, PHP 7 inclus. 7wallabag est compatible avec PHP >= 5.5, PHP 7 inclus.
8 8
9.. note::
10
11 Pour installer wallabag facilement, nous avons créé un ``Makefile``, vous avez donc besoin d'avoir installé l'outil ``make``.
12
13wallabag utilise un grand nombre de bibliothèques PHP pour fonctionner. Ces bibliothèques doivent être installées à l'aide d'un outil nommé Composer. Vous devez l'installer si ce n'est déjà fait et vous assurer que vous utilisez bien la version 1.2 (si vous avez déjà Composer, faite un ``composer selfupdate``).
14
15Installation de Composer :
16
17::
18
19 curl -s http://getcomposer.org/installer | php
20
21Vous pouvez trouver des instructions spécifiques `ici (en anglais) <https://getcomposer.org/doc/00-intro.md>`__.
22
9Vous aurez besoin des extensions suivantes pour que wallabag fonctionne. Il est possible que certaines de ces extensions soient déjà activées dans votre version de PHP, donc vous n'avez pas forcément besoin d'installer tous les paquets correspondants. 23Vous aurez besoin des extensions suivantes pour que wallabag fonctionne. Il est possible que certaines de ces extensions soient déjà activées dans votre version de PHP, donc vous n'avez pas forcément besoin d'installer tous les paquets correspondants.
10 24
11- php-session 25- php-session
@@ -36,36 +50,23 @@ Installation
36Sur un serveur dédié (méthode conseillée) 50Sur un serveur dédié (méthode conseillée)
37~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 51~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38 52
39wallabag utilise un grand nombre de bibliothèques PHP pour fonctionner. Ces bibliothèques doivent être installées à l'aide d'un outil nommé Composer. Vous devez l'installer si ce n'est déjà fait et vous assurer que vous utilisez bien la version 1.2 (si vous avez déjà Composer, faite un ``composer selfupdate``).
40
41Installation de Composer :
42
43::
44
45 curl -s http://getcomposer.org/installer | php
46
47Vous pouvez trouver des instructions spécifiques `ici (en anglais) <https://getcomposer.org/doc/00-intro.md>`__.
48
49Pour installer wallabag, vous devez exécuter ces commandes : 53Pour installer wallabag, vous devez exécuter ces commandes :
50 54
51:: 55::
52 56
53 git clone https://github.com/wallabag/wallabag.git 57 git clone https://github.com/wallabag/wallabag.git
54 cd wallabag 58 cd wallabag && make install
55 git checkout 2.1.1 --force
56 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
57 php bin/console wallabag:install --env=prod
58 59
59Pour démarrer le serveur interne à php et vérifier que tout s'est installé correctement, vous pouvez exécuter : 60Pour démarrer le serveur interne à php et vérifier que tout s'est installé correctement, vous pouvez exécuter :
60 61
61:: 62::
62 63
63 php bin/console server:run --env=prod 64 make run
64 65
65Et accéder wallabag à l'adresse http://lipdevotreserveur:8000 66Et accéder wallabag à l'adresse http://lipdevotreserveur:8000
66 67
67.. tip:: 68.. tip::
68 Pour définir des paramètres via des variables d'environnement, vous pouvez les spécifier avec le préfixe ``SYMFONY__``. Par exemple, ``SYMFONY__DATABASE_DRIVER``. Vous pouvez lire `documentation Symfony <http://symfony.com/doc/current/cookbook/configuration/external_parameters.html>`__ pour en savoir plus. 69 Pour définir des paramètres via des variables d'environnement, vous pouvez les spécifier avec le préfixe ``SYMFONY__``. Par exemple, ``SYMFONY__DATABASE_DRIVER``. Vous pouvez lire la `documentation Symfony <http://symfony.com/doc/current/cookbook/configuration/external_parameters.html>`__ pour en savoir plus.
69 70
70Sur un serveur mutualisé 71Sur un serveur mutualisé
71~~~~~~~~~~~~~~~~~~~~~~~~ 72~~~~~~~~~~~~~~~~~~~~~~~~
@@ -83,18 +84,18 @@ Exécutez cette commande pour télécharger et décompresser l'archive :
83 84
84 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package 85 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package
85 86
86(hash md5 de l'archive 2.1.1 : ``9584a3b60a2b2a4de87f536548caac93``) 87Vous trouverez `le hash md5 du dernier package sur notre site <https://www.wallabag.org/pages/download-wallabag.html>`_.
87 88
88Maintenant, lisez la documentation ci-dessous pour crééer un virtual host. Accédez ensuite à votre installation de wallabag. 89Maintenant, lisez la documentation ci-dessous pour crééer un virtual host. Accédez ensuite à votre installation de wallabag.
89Si vous avez changé la configuration pour modifier le type de stockage (MySQL ou PostgreSQL), vous devrez vous créer un utilisateur via la commande ``php bin/console wallabag:install --env=prod``. 90Si vous avez changé la configuration pour modifier le type de stockage (MySQL ou PostgreSQL), vous devrez vous créer un utilisateur via la commande ``php bin/console wallabag:install --env=prod``.
90 91
91Installation avec Docker 92Installation avec Docker
92------------------------ 93~~~~~~~~~~~~~~~~~~~~~~~~
93 94
94Nous vous proposons une image Docker pour installer wallabag facilement. Allez voir du côté de `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__ pour plus d'informations. 95Nous vous proposons une image Docker pour installer wallabag facilement. Allez voir du côté de `Docker Hub <https://hub.docker.com/r/wallabag/wallabag/>`__ pour plus d'informations.
95 96
96Commande pour démarrer le containeur 97Commande pour démarrer le containeur
97~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 98^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98 99
99.. code-block:: bash 100.. code-block:: bash
100 101
diff --git a/docs/fr/user/parameters.rst b/docs/fr/user/parameters.rst
new file mode 100644
index 00000000..ec8c8995
--- /dev/null
+++ b/docs/fr/user/parameters.rst
@@ -0,0 +1,50 @@
1À quoi servent les paramètres ?
2===============================
3.. csv-table:: Paramètres de base de données
4 :header: "name", "default", "description"
5
6 "database_driver", "pdo_sqlite", "Doit être pdo_sqlite ou pdo_mysql ou pdo_pgsql"
7 "database_host", "127.0.0.1", "Hôte de votre base de données (généralement localhost ou 127.0.0.1)"
8 "database_port", "~", "Port de votre base de données (vous pouvez laisser ``~`` pour utiliser celui par défaut)"
9 "database_name", "symfony", "Nom de votre base de données"
10 "database_user", "root", "Utilisateur de votre base de données"
11 "database_password", "~", "Mot de passe de cet utilisateur"
12 "database_path", "``""%kernel.root_dir%/../data/db/wallabag.sqlite""``", "Uniquement pour SQLite. Chemin du fichier de base de données. Laissez vide pour les autres bases de données."
13 "database_table_prefix", "wallabag_", "Toutes les tables de wallabag seront préfixées par cette chaine. Vous pouvez ajouter un ``_`` pour plus de clarté"
14 "database_socket", "null", "Si votre base de données utilise un socket plutôt que tcp, spécifiez le chemin du socket (les autres paramètres de connexion seront alors ignorés)"
15
16.. csv-table:: Configuration pour envoyer des emails depuis wallabag
17 :header: "name", "default", "description"
18
19 "mailer_transport", "smtp", "Méthode de transport exacte utilisée pour envoyer des emails. Les valeurs correctes sont : smtp, gmail, mail, sendmail, null (ce qui désactivera l'envoi des emails)"
20 "mailer_host", "127.0.0.1", "Hôte sur lequel se connecter quand on utilise smtp comme transport."
21 "mailer_user", "~", "Utilisateur smtp."
22 "mailer_password", "~", "Mot de passe de cet utilisateur."
23
24.. csv-table:: Autres options de wallabag
25 :header: "name", "default", "description"
26
27 "locale", "en", "Langue par défaut de votre instance wallabag (comme en, fr, es, etc.)"
28 "secret", "ovmpmAWXRCabNlMgzlzFXDYmCFfzGv", "C'est une chaine qui doit être unique à votre application et qui est couramment utilisée pour ajouter plus d'entropie aux opérations relatives à la sécurité."
29 "twofactor_auth", "true", "true pour activer l'authentification à deux facteurs"
30 "twofactor_sender", "no-reply@wallabag.org", "Email de l'expéditeur du code de l'authentification à deux facteurs"
31 "fosuser_registration", "true", "true pour activer l'inscription publique"
32 "fosuser_confirmation", "true", "true pour envoyer un email de confirmation pour chaque création de compte"
33 "from_email", "no-reply@wallabag.org", "Email de l'expéditeur pour chaque email envoyé"
34 "rss_limit", "50", "Limite pour les flux RSS"
35
36.. csv-table:: Configuration RabbitMQ
37 :header: "name", "default", "description"
38
39 "rabbitmq_host", "localhost", "Hôte de votre instance RabbitMQ"
40 "rabbitmq_port", "5672", "Port de votre instance RabbitMQ"
41 "rabbitmq_user", "guest", "Utilisateur de votre instance RabbitMQ"
42 "rabbitmq_password", "guest", "Mot de passe de cet utilisateur"
43
44.. csv-table:: Configuration Redis
45 :header: "name", "default", "description"
46
47 "redis_scheme", "tcp", "Définit le protocole utilisé pour commuiquer avec l'instance Redis. Les valeurs correctes sont : tcp, unix, http"
48 "redis_host", "localhost", "IP ou hôte du serveur cible (ignoré pour un schéma unix)"
49 "redis_port", "6379", "Port TCP/IP du serveur cible (ignoré pour un schéma unix)"
50 "redis_path", "null", "Chemin du fichier de socket du domaine UNIX utilisé quand on se connecte à Redis en utilisant les sockets du domaine UNIX"
diff --git a/docs/fr/user/upgrade-2.0.x-2.1.y.rst b/docs/fr/user/upgrade-2.0.x-2.1.1.rst
index 952fa737..ec883d10 100644
--- a/docs/fr/user/upgrade-2.0.x-2.1.y.rst
+++ b/docs/fr/user/upgrade-2.0.x-2.1.1.rst
@@ -1,4 +1,4 @@
1Mettre à jour de la 2.0.x à la 2.1.y 1Mettre à jour de la 2.0.x à la 2.1.1
2==================================== 2====================================
3 3
4.. warning:: 4.. warning::
@@ -7,8 +7,6 @@ Avant cette migration, si vous aviez configuré l'import depuis Pocket en ajouta
7Mise à jour sur un serveur dédié 7Mise à jour sur un serveur dédié
8-------------------------------- 8--------------------------------
9 9
10La dernière version de wallabag est publiée à cette adresse : https://www.wallabag.org/pages/download-wallabag.html. Pour mettre à jour votre installation de wallabag, exécutez les commandes suivantes dans votre répertoire d'installation (remplacez ``2.1.1`` par le numéro de la dernière version) :
11
12:: 10::
13 11
14 rm -rf var/cache/* 12 rm -rf var/cache/*
@@ -28,25 +26,45 @@ Téléchargez la dernière version de wallabag :
28 26
29.. code-block:: bash 27.. code-block:: bash
30 28
31 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package 29 wget http://framabag.org/wallabag-release-2.1.1.tar.gz && tar xvf wallabag-release-2.1.1.tar.gz
32 30
33(hash md5 de l'archive 2.1.1 : ``9584a3b60a2b2a4de87f536548caac93``) 31(hash md5 de l'archive 2.1.1 : ``9584a3b60a2b2a4de87f536548caac93``)
34 32
35Décompressez l'archive dans votre répertoire d'installation et remplacez le fichier ``app/config/parameters.yml`` avec le votre. 33Décompressez l'archive dans votre répertoire d'installation et remplacez le fichier ``app/config/parameters.yml`` avec le votre.
36 34
37Nous avons ajouté de nouveaux paramètres dans cette nouvelle version. Vous devez donc éditer le fichier ``app/config/parameters.yml`` en ajoutant ces lignes (et en remplaçant par votre configuration) : 35Vérifiez que votre fichier ``app/config/parameters.yml`` contient tous les paramètres requis. Voici un fichier ``parameters.yml`` par défaut. Si vous ne savez pas quelle valeur mettre à un paramètre, laissez la valeur par défaut.
38 36
39.. code-block:: bash 37.. code-block:: yml
40 38
41 # RabbitMQ processing 39 parameters:
42 rabbitmq_host: localhost 40 database_driver: pdo_sqlite
43 rabbitmq_port: 5672 41 database_host: 127.0.0.1
44 rabbitmq_user: guest 42 database_port: null
45 rabbitmq_password: guest 43 database_name: symfony
46 44 database_user: root
47 # Redis processing 45 database_password: null
48 redis_host: localhost 46 database_path: '%kernel.root_dir%/../data/db/wallabag.sqlite'
49 redis_port: 6379 47 database_table_prefix: wallabag_
48 mailer_transport: smtp
49 mailer_host: 127.0.0.1
50 mailer_user: null
51 mailer_password: null
52 locale: en
53 secret: ovmpmAWXRCabNlMgzlzFXDYmCFfzGv
54 twofactor_auth: true
55 twofactor_sender: no-reply@wallabag.org
56 fosuser_registration: true
57 fosuser_confirmation: true
58 from_email: no-reply@wallabag.org
59 rss_limit: 50
60 rabbitmq_host: localhost
61 rabbitmq_port: 5672
62 rabbitmq_user: guest
63 rabbitmq_password: guest
64 redis_host: localhost
65 redis_port: 6379
66
67Vous trouverez `ici une documentation détaillée concernant les paramètres <http://doc.wallabag.org/fr/master/user/parameters.html>`_.
50 68
51Si vous utilisez SQLite, vous devez également conserver le contenu du répertoire ``data/``. 69Si vous utilisez SQLite, vous devez également conserver le contenu du répertoire ``data/``.
52 70
diff --git a/docs/fr/user/upgrade-2.0.x-2.0.y.rst b/docs/fr/user/upgrade-2.1.x-2.1.y.rst
index 8d8ad806..c048099f 100644
--- a/docs/fr/user/upgrade-2.0.x-2.0.y.rst
+++ b/docs/fr/user/upgrade-2.1.x-2.1.y.rst
@@ -1,17 +1,17 @@
1Mettre à jour de la 2.0.x à la 2.0.y 1Mettre à jour de la 2.1.x à la 2.1.y
2==================================== 2====================================
3 3
4Mise à jour sur un serveur dédié 4Mise à jour sur un serveur dédié
5-------------------------------- 5--------------------------------
6 6
7La dernière version de wallabag est publiée à cette adresse : https://www.wallabag.org/pages/download-wallabag.html. Pour mettre à jour votre installation de wallabag, exécutez les commandes suivantes dans votre répertoire d'installation (remplacez ``2.0.8`` par le numéro de la dernière version) : 7La dernière version de wallabag est publiée à cette adresse : https://www.wallabag.org/pages/download-wallabag.html. Pour mettre à jour votre installation de wallabag, exécutez les commandes suivantes dans votre répertoire d'installation (remplacez ``2.1.2`` par le numéro de la dernière version) :
8 8
9:: 9::
10 10
11 rm -rf var/cache/* 11 rm -rf var/cache/*
12 git fetch origin 12 git fetch origin
13 git fetch --tags 13 git fetch --tags
14 git checkout 2.0.8 14 git checkout 2.1.2 --force
15 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist 15 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
16 php bin/console cache:clear --env=prod 16 php bin/console cache:clear --env=prod
17 17
@@ -26,7 +26,7 @@ Téléchargez la dernière version de wallabag :
26 26
27 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package 27 wget http://wllbg.org/latest-v2-package && tar xvf latest-v2-package
28 28
29(hash md5 de l'archive 2.0.8 : ``4f84c725d1d6e3345eae0a406115e5ff``) 29(hash md5 de l'archive 2.1.1 : ``9584a3b60a2b2a4de87f536548caac93``)
30 30
31Décompressez l'archive dans votre répertoire d'installation et remplacez le fichier ``app/config/parameters.yml`` avec le votre. 31Décompressez l'archive dans votre répertoire d'installation et remplacez le fichier ``app/config/parameters.yml`` avec le votre.
32 32
diff --git a/scripts/install.sh b/scripts/install.sh
new file mode 100644
index 00000000..54d0bb78
--- /dev/null
+++ b/scripts/install.sh
@@ -0,0 +1,10 @@
1#! /usr/bin/env bash
2# You can execute this file to install wallabag
3# eg: `sh install.sh prod`
4
5ENV=$1
6TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
7
8git checkout $TAG
9SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist
10php bin/console wallabag:install --env=$ENV
diff --git a/scripts/release.sh b/scripts/release.sh
new file mode 100644
index 00000000..e118b87e
--- /dev/null
+++ b/scripts/release.sh
@@ -0,0 +1,19 @@
1#! /usr/bin/env bash
2# You can execute this file to create a new package for wallabag
3# eg: `sh release.sh master /tmp wllbg-release prod`
4
5VERSION=$1
6TMP_FOLDER=$2
7RELEASE_FOLDER=$3
8ENV=$4
9
10rm -rf $TMP_FOLDER/$RELEASE_FOLDER
11mkdir $TMP_FOLDER/$RELEASE_FOLDER
12git clone git@github.com:wallabag/wallabag.git -b $VERSION $TMP_FOLDER/$RELEASE_FOLDER/$VERSION
13cd $TMP_FOLDER/$RELEASE_FOLDER/$VERSION && SYMFONY_ENV=$ENV composer up -n --no-dev
14cd $TMP_FOLDER/$RELEASE_FOLDER/$VERSION && php bin/console wallabag:install --env=$ENV
15cd $TMP_FOLDER/$RELEASE_FOLDER && tar czf wallabag-$VERSION.tar.gz --exclude="var/cache/*" --exclude="var/logs/*" --exclude="var/sessions/*" --exclude=".git" $VERSION
16echo "MD5 checksum of the package for wallabag $VERSION"
17md5 $TMP_FOLDER/$RELEASE_FOLDER/wallabag-$VERSION.tar.gz
18scp $TMP_FOLDER/$RELEASE_FOLDER/wallabag-$VERSION.tar.gz framasoft_bag@78.46.248.87:/var/www/framabag.org/web
19rm -rf $TMP_FOLDER/$RELEASE_FOLDER
diff --git a/scripts/update.sh b/scripts/update.sh
new file mode 100644
index 00000000..b920a829
--- /dev/null
+++ b/scripts/update.sh
@@ -0,0 +1,13 @@
1#! /usr/bin/env bash
2# You can execute this file to update wallabag
3# eg: `sh update.sh prod`
4
5ENV=$1
6TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
7
8rm -rf var/cache/*
9git fetch origin
10git fetch --tags
11git checkout $TAG --force
12SYMFONY_ENV=$ENV composer install --no-dev -o --prefer-dist
13php bin/console cache:clear --env=$ENV
diff --git a/src/Wallabag/ApiBundle/Entity/AccessToken.php b/src/Wallabag/ApiBundle/Entity/AccessToken.php
index 2ff63a83..c09a0c80 100644
--- a/src/Wallabag/ApiBundle/Entity/AccessToken.php
+++ b/src/Wallabag/ApiBundle/Entity/AccessToken.php
@@ -19,7 +19,7 @@ class AccessToken extends BaseAccessToken
19 protected $id; 19 protected $id;
20 20
21 /** 21 /**
22 * @ORM\ManyToOne(targetEntity="Client") 22 * @ORM\ManyToOne(targetEntity="Client", inversedBy="accessTokens")
23 * @ORM\JoinColumn(nullable=false) 23 * @ORM\JoinColumn(nullable=false)
24 */ 24 */
25 protected $client; 25 protected $client;
diff --git a/src/Wallabag/ApiBundle/Entity/RefreshToken.php b/src/Wallabag/ApiBundle/Entity/RefreshToken.php
index 6d0cab68..822a02d8 100644
--- a/src/Wallabag/ApiBundle/Entity/RefreshToken.php
+++ b/src/Wallabag/ApiBundle/Entity/RefreshToken.php
@@ -19,7 +19,7 @@ class RefreshToken extends BaseRefreshToken
19 protected $id; 19 protected $id;
20 20
21 /** 21 /**
22 * @ORM\ManyToOne(targetEntity="Client") 22 * @ORM\ManyToOne(targetEntity="Client", inversedBy="refreshTokens")
23 * @ORM\JoinColumn(nullable=false) 23 * @ORM\JoinColumn(nullable=false)
24 */ 24 */
25 protected $client; 25 protected $client;
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php
index cc7c2c94..8e438229 100644
--- a/src/Wallabag/CoreBundle/Command/InstallCommand.php
+++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php
@@ -9,7 +9,7 @@ use Symfony\Component\Console\Helper\Table;
9use Symfony\Component\Console\Input\ArrayInput; 9use Symfony\Component\Console\Input\ArrayInput;
10use Symfony\Component\Console\Input\InputInterface; 10use Symfony\Component\Console\Input\InputInterface;
11use Symfony\Component\Console\Input\InputOption; 11use Symfony\Component\Console\Input\InputOption;
12use Symfony\Component\Console\Output\NullOutput; 12use Symfony\Component\Console\Output\BufferedOutput;
13use Symfony\Component\Console\Output\OutputInterface; 13use Symfony\Component\Console\Output\OutputInterface;
14use Symfony\Component\Console\Question\ConfirmationQuestion; 14use Symfony\Component\Console\Question\ConfirmationQuestion;
15use Symfony\Component\Console\Question\Question; 15use Symfony\Component\Console\Question\Question;
@@ -97,7 +97,8 @@ class InstallCommand extends ContainerAwareCommand
97 try { 97 try {
98 $this->getContainer()->get('doctrine')->getManager()->getConnection()->connect(); 98 $this->getContainer()->get('doctrine')->getManager()->getConnection()->connect();
99 } catch (\Exception $e) { 99 } catch (\Exception $e) {
100 if (false === strpos($e->getMessage(), 'Unknown database')) { 100 if (false === strpos($e->getMessage(), 'Unknown database')
101 && false === strpos($e->getMessage(), 'database "'.$this->getContainer()->getParameter('database_name').'" does not exist')) {
101 $fulfilled = false; 102 $fulfilled = false;
102 $status = '<error>ERROR!</error>'; 103 $status = '<error>ERROR!</error>';
103 $help = 'Can\'t connect to the database: '.$e->getMessage(); 104 $help = 'Can\'t connect to the database: '.$e->getMessage();
@@ -420,16 +421,18 @@ class InstallCommand extends ContainerAwareCommand
420 } 421 }
421 422
422 $this->getApplication()->setAutoExit(false); 423 $this->getApplication()->setAutoExit(false);
423 $exitCode = $this->getApplication()->run(new ArrayInput($parameters), new NullOutput()); 424
425 $output = new BufferedOutput();
426 $exitCode = $this->getApplication()->run(new ArrayInput($parameters), $output);
424 427
425 if (0 !== $exitCode) { 428 if (0 !== $exitCode) {
426 $this->getApplication()->setAutoExit(true); 429 $this->getApplication()->setAutoExit(true);
427 430
428 $errorMessage = sprintf('The command "%s" terminated with an error code: %u.', $command, $exitCode); 431 $this->defaultOutput->writeln('');
429 $this->defaultOutput->writeln("<error>$errorMessage</error>"); 432 $this->defaultOutput->writeln('<error>The command "'.$command.'" generates some errors: </error>');
430 $exception = new \Exception($errorMessage, $exitCode); 433 $this->defaultOutput->writeln($output->fetch());
431 434
432 throw $exception; 435 die();
433 } 436 }
434 437
435 // PDO does not always close the connection after Doctrine commands. 438 // PDO does not always close the connection after Doctrine commands.
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig
index a0a0d3c3..804adb36 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig
@@ -30,11 +30,16 @@
30 <meta property="og:title" content="{{ entry.title | raw }}" /> 30 <meta property="og:title" content="{{ entry.title | raw }}" />
31 <meta property="og:type" content="article" /> 31 <meta property="og:type" content="article" />
32 <meta property="og:url" content="{{ app.request.uri }}" /> 32 <meta property="og:url" content="{{ app.request.uri }}" />
33 {% set picturePath = app.request.schemeAndHttpHost ~ asset('bundles/wallabagcore/themes/_global/img/logo-other_themes.png') %}
33 {% if entry.previewPicture is not null %} 34 {% if entry.previewPicture is not null %}
34 <meta property="og:image" content="{{ entry.previewPicture }}" /> 35 {% set picturePath = entry.previewPicture %}
35 {% else %}
36 <meta property="og:image" content="{{ app.request.schemeAndHttpHost }}{{ asset('bundles/wallabagcore/themes/_global/img/logo-other_themes.png') }}" />
37 {% endif %} 36 {% endif %}
37 <meta property="og:image" content="{{ picturePath }}" />
38 <meta name="twitter:card" content="summary" />
39 <meta name="twitter:image" content="{{ picturePath }}" />
40 <meta name="twitter:site" content="@wallabagapp" />
41 <meta name="twitter:title" content="{{ entry.title | raw }}" />
42 <meta name="twitter:description" content="{{ entry.title | raw }}" />
38 </head> 43 </head>
39 <body> 44 <body>
40 <header> 45 <header>
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig
index 966a84db..3385cd53 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig
@@ -1 +1 @@
<a id="bookmarklet" ondragend="this.click();" href="javascript:var url=location.href||url;var wllbg=window.open('{{ url('bookmarklet') }}?url=' + encodeURI(url),'_blank');wllbg.close();void(0);">bag it!</a> <a id="bookmarklet" ondragend="this.click();" href="javascript:(function(){var url=location.href||url;var wllbg=window.open('{{ url('bookmarklet') }}?url=' + encodeURI(url),'_blank');})();">bag it!</a>
diff --git a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php
index 4f103921..7bf4b43c 100644
--- a/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php
+++ b/tests/Wallabag/CoreBundle/WallabagCoreTestCase.php
@@ -90,9 +90,7 @@ abstract class WallabagCoreTestCase extends WebTestCase
90 try { 90 try {
91 $this->client->getContainer()->get('wallabag_core.redis.client')->connect(); 91 $this->client->getContainer()->get('wallabag_core.redis.client')->connect();
92 } catch (\Exception $e) { 92 } catch (\Exception $e) {
93 $this->markTestSkipped( 93 $this->markTestSkipped('Redis is not installed/activated');
94 'Redis is not installed/activated'
95 );
96 } 94 }
97 } 95 }
98} 96}
diff --git a/tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php b/tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php
index 23c80bec..c0417bbe 100644
--- a/tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php
+++ b/tests/Wallabag/ImportBundle/Controller/ChromeControllerTest.php
@@ -54,6 +54,7 @@ class ChromeControllerTest extends WallabagCoreTestCase
54 54
55 public function testImportChromeWithRedisEnabled() 55 public function testImportChromeWithRedisEnabled()
56 { 56 {
57 $this->checkRedis();
57 $this->logInAs('admin'); 58 $this->logInAs('admin');
58 $client = $this->getClient(); 59 $client = $this->getClient();
59 $client->getContainer()->get('craue_config')->set('import_with_redis', 1); 60 $client->getContainer()->get('craue_config')->set('import_with_redis', 1);
diff --git a/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php b/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php
index 98f13d72..6154ae8d 100644
--- a/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php
+++ b/tests/Wallabag/ImportBundle/Controller/FirefoxControllerTest.php
@@ -54,6 +54,7 @@ class FirefoxControllerTest extends WallabagCoreTestCase
54 54
55 public function testImportFirefoxWithRedisEnabled() 55 public function testImportFirefoxWithRedisEnabled()
56 { 56 {
57 $this->checkRedis();
57 $this->logInAs('admin'); 58 $this->logInAs('admin');
58 $client = $this->getClient(); 59 $client = $this->getClient();
59 $client->getContainer()->get('craue_config')->set('import_with_redis', 1); 60 $client->getContainer()->get('craue_config')->set('import_with_redis', 1);