Improve documentation

This commit is contained in:
Frédéric Guillot 2014-10-30 22:10:59 -04:00
parent eda790dc2b
commit 43790e0fbc
8 changed files with 77 additions and 63 deletions

View File

@ -61,14 +61,15 @@ Requirements
Documentation Documentation
------------- -------------
- [Installation and updates](docs/installation-and-updates.markdown) - [Installation](docs/installation.markdown)
- [Upgrade to a new version](docs/upgrade.markdown)
- [Cronjob](docs/cronjob.markdown) - [Cronjob](docs/cronjob.markdown)
- [Advanced configuration](docs/config.markdown) - [Advanced configuration](docs/config.markdown)
- [Full article download](docs/full-article-download.markdown) - [Full article download](docs/full-article-download.markdown)
- [Multiple users](docs/multiple-users.markdown) - [Multiple users](docs/multiple-users.markdown)
- [Translations](docs/translations.markdown) - [Translations](docs/translations.markdown)
- [Themes](docs/themes.markdown) - [Themes](docs/themes.markdown)
- [API documentation](docs/json-rpc-api.markdown) - [Json-RPC API](docs/json-rpc-api.markdown)
- [Fever API](docs/fever.markdown) - [Fever API](docs/fever.markdown)
- [FAQ](docs/faq.markdown) - [FAQ](docs/faq.markdown)

View File

@ -30,7 +30,7 @@ define('ENABLE_MULTIPLE_DB', true);
define('DEBUG', true); define('DEBUG', true);
// DEBUG_FILENAME => default is data/debug.log // DEBUG_FILENAME => default is data/debug.log
define('DEBUG_FILENAME', DATA_DIRECTORY.DIRECTORY_SEPARATOR.'debug.log'); define('DEBUG_FILENAME', DATA_DIRECTORY.'/debug.log');
// THEME_DIRECTORY => default is themes // THEME_DIRECTORY => default is themes
define('THEME_DIRECTORY', 'themes'); define('THEME_DIRECTORY', 'themes');

View File

@ -1,10 +1,9 @@
Cronjob (background feeds update) Cronjob
================================= =======
How do I update my feeds with a cronjob? The cronjob is a background task to update your feeds automatically.
----------------------------------------
You just need to be inside the directory `miniflux` and run the script `cronjob.php`. Technically, you just need to be inside the directory `miniflux` and run the script `cronjob.php`.
Parameters | Type | Value Parameters | Type | Value
@ -17,16 +16,18 @@ Parameters | Type | Value
Examples: Examples:
crontab -e ```bash
crontab -e
# Update all feeds every 4 hours # Update all feeds every 4 hours
0 */4 * * * cd /path/to/miniflux && php cronjob.php >/dev/null 2>&1 0 */4 * * * cd /path/to/miniflux && php cronjob.php >/dev/null 2>&1
# Update the 10 oldest feeds each time # Update the 10 oldest feeds each time
0 */4 * * * cd /path/to/miniflux && php cronjob.php --limit=10 >/dev/null 2>&1 0 */4 * * * cd /path/to/miniflux && php cronjob.php --limit=10 >/dev/null 2>&1
# Update all feeds in 60 minutes (updates the 8 oldest feeds each time with a total of 120 feeds). # Update all feeds in 60 minutes (updates the 8 oldest feeds each time with a total of 120 feeds).
* */4 * * * cd /path/to/miniflux && php cronjob.php --call-interval=4 --update-interval=60 >/dev/null 2>&1 * */4 * * * cd /path/to/miniflux && php cronjob.php --call-interval=4 --update-interval=60 >/dev/null 2>&1
```
Note: cronjob.php can also be called from the web, in this case specify the options as GET variables. Note: cronjob.php can also be called from the web, in this case specify the options as GET variables.

View File

@ -1,34 +1,40 @@
FAQ FAQ
=== ===
### How does Miniflux update my feeds from the user interface? How does Miniflux update my feeds from the user interface?
----------------------------------------------------------
Miniflux uses an Ajax request to refresh each subscription. Miniflux uses an Ajax request to refresh each subscription.
By default, there is only 5 feeds updated in parallel. By default, there is only 5 feeds updated in parallel.
### I have 600 subscriptions, can Miniflux handle that? I have 600 subscriptions, can Miniflux handle that?
---------------------------------------------------
Probably, but your life is cluttered. Probably, but your life is cluttered.
### Why are there no categories? Why is feature X missing? Why are there no categories? Why is feature X missing?
------------------------------------------------------
Miniflux is a minimalist software. _Less is more_. Miniflux is a minimalist software. _Less is more_.
Sorry, I don't plan to have categories or tags. Sorry, I don't plan to have categories or tags.
### I found a bug, what next? I found a bug, what next?
-------------------------
Report the bug to the [issues tracker](https://github.com/fguillot/miniflux/issues) and I will fix it. Report the bug to the [issues tracker](https://github.com/fguillot/miniflux/issues) and I will fix it.
You can report feeds that doesn't works properly too. You can report feeds that doesn't works properly too.
### What browser is compatible with Miniflux? What browser is compatible with Miniflux?
-----------------------------------------
Miniflux is tested with the latest versions of Mozilla Firefox, Google Chrome and Safari. Miniflux is tested with the latest versions of Mozilla Firefox, Google Chrome and Safari.
I don't use Microsoft products, and as such I have no idea if Miniflux works correctly with Internet Explorer. I don't use Microsoft products, and as such I have no idea if Miniflux works correctly with Internet Explorer.
### How to setup Miniflux on OVH? How to setup Miniflux on OVH shared-hosting?
--------------------------------------------
OVH shared web-hosting can use different PHP versions. OVH shared web-hosting can use different PHP versions.
To have Miniflux working properly you have to use a custom `.htaccess`. To have Miniflux working properly you have to use a custom `.htaccess`.

View File

@ -24,26 +24,29 @@ Add a PHP file to the directory `PicoFeed\Rules`, the filename must be the domai
Example with the BBC website, `www.bbc.co.uk.php`: Example with the BBC website, `www.bbc.co.uk.php`:
<?php ```php
return array( <?php
'test_url' => 'http://www.bbc.co.uk/news/world-middle-east-23911833',
'body' => array( return array(
'//div[@class="story-body"]', 'test_url' => 'http://www.bbc.co.uk/news/world-middle-east-23911833',
), 'body' => array(
'strip' => array( '//div[@class="story-body"]',
'//script', ),
'//form', 'strip' => array(
'//style', '//script',
'//*[@class="story-date"]', '//form',
'//*[@class="story-header"]', '//style',
'//*[@class="story-related"]', '//*[@class="story-date"]',
'//*[contains(@class, "byline")]', '//*[@class="story-header"]',
'//*[contains(@class, "story-feature")]', '//*[@class="story-related"]',
'//*[@id="video-carousel-container"]', '//*[contains(@class, "byline")]',
'//*[@id="also-related-links"]', '//*[contains(@class, "story-feature")]',
'//*[contains(@class, "share") or contains(@class, "hidden") or contains(@class, "hyper")]', '//*[@id="video-carousel-container"]',
) '//*[@id="also-related-links"]',
); '//*[contains(@class, "share") or contains(@class, "hidden") or contains(@class, "hyper")]',
)
);
```
Actually, only `body`, `strip` and `test_url` are supported. Actually, only `body`, `strip` and `test_url` are supported.

View File

@ -1,5 +1,5 @@
Installation and Updates Installation instructions
======================== =========================
Installation Installation
------------ ------------
@ -19,24 +19,6 @@ Installation
1. `git clone https://github.com/fguillot/miniflux.git` 1. `git clone https://github.com/fguillot/miniflux.git`
2. Go to the third step just above 2. Go to the third step just above
Update
------
### From the archive:
1. Close your session (logout)
2. Rename your actual miniflux directory (to keep a backup)
3. Uncompress the new archive and copy your database file `db.sqlite` in the directory `data`
4. Make the directory `data` writeable by the web server user
5. Login and check if everything is ok
6. Remove the old miniflux directory
### From the repository:
1. Close your session (logout)
2. `git pull`
3. Login and check if everything is ok
Security Security
-------- --------

View File

@ -11,7 +11,9 @@ A theme doesn't change the behaviour of the application but only the page layout
The first step is to create a new directory structure for your theme: The first step is to create a new directory structure for your theme:
mkdir -p themes/mysuperskin/{css,img,fonts} ```bash
mkdir -p themes/mysuperskin/{css,img,fonts}
```
The name of your theme should be only alphanumeric. The name of your theme should be only alphanumeric.
@ -43,4 +45,4 @@ Other themes included in the default installation:
- NoStyle by Frederic Guillot - NoStyle by Frederic Guillot
- Still by Franklin - Still by Franklin
**PS: Those themes are maintained and tested by their authors.** **PS: Those themes are maintained and tested by their respective authors.**

19
docs/upgrade.markdown Normal file
View File

@ -0,0 +1,19 @@
Upgrade to a new version
========================
### From the archive:
1. Close your session (logout)
2. Rename your actual miniflux directory (to keep a backup)
3. Uncompress the new archive and copy your database file `db.sqlite` in the directory `data`
4. Make the directory `data` writeable by the web server user
5. Login and check if everything is ok
6. Remove the old miniflux directory
### From the repository:
1. Close your session (logout)
2. `git pull`
3. Login and check if everything is ok
Note: Always do a backup of your database before!