1
0
Fork 0
mirror of https://codeberg.org/Reuh/feather.git synced 2025-10-27 10:09:32 +00:00

docs: offline mode

This commit is contained in:
Étienne Fildadut 2025-10-13 14:36:13 +02:00
parent d9da6b208a
commit 470163bfed
2 changed files with 6 additions and 1 deletions

View file

@ -78,6 +78,10 @@ Run `feather sync` to synchronize all local data with the server. The synchroniz
If you don't want to bother running `feather sync` manually, you can also start the Feather update daemon using `feather daemon`. The daemon will periodically call `sync-up` (by default every minute) and `sync-down` (by default every 15 minutes) for as long as it runs. If you don't want to bother running `feather sync` manually, you can also start the Feather update daemon using `feather daemon`. The daemon will periodically call `sync-up` (by default every minute) and `sync-down` (by default every 15 minutes) for as long as it runs.
#### If you are offline
Nothing change, but all the synchronization commands will wait until the server become reachable again.
### Configuration ### Configuration
Feather will try to load the configuration from the file `config.toml` by default. A lot of things can be configured, see [the default configuration file](src/feather/config.default.toml) for details. Most configuration options can also be set using environment variables - this is also detailed in the default configuration file ([here's another link if your mouse is too far from the previous one](src/feather/config.default.toml)). Feather will try to load the configuration from the file `config.toml` by default. A lot of things can be configured, see [the default configuration file](src/feather/config.default.toml) for details. Most configuration options can also be set using environment variables - this is also detailed in the default configuration file ([here's another link if your mouse is too far from the previous one](src/feather/config.default.toml)).
@ -161,7 +165,6 @@ before publishing:
- [ ] Share the fun somewhere - [ ] Share the fun somewhere
- [ ] Test with FreshRSS - [ ] Test with FreshRSS
- [ ] Feed & category order for googlereader ?? - [ ] Feed & category order for googlereader ??
- [ ] Detect offline mode
"i'll look into it later": "i'll look into it later":

View file

@ -12,6 +12,8 @@ from feather.data import Article, ArticleId, Category
class ClientSession(ABC): class ClientSession(ABC):
"""Represent a client session with a RSS reader server. All operations will block indefinitely when waiting for the network."""
@abstractmethod @abstractmethod
def __init__(self, config: Config): def __init__(self, config: Config):
self.config: Config = config self.config: Config = config