Skip to content

Commit 88f3c67

Browse files
authored
Merge pull request #14 from PeterDaveHello/patch-1
Enable code blocks syntax highlight in README.md
2 parents f7fcd22 + a113476 commit 88f3c67

File tree

1 file changed

+29
-17
lines changed

1 file changed

+29
-17
lines changed

README.md

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,34 +55,42 @@ You can also run rssit as a command-line application by submitting a URL path di
5555

5656
Configuration is primarily done at `~/.config/rssit/config.ini`. Here is a sample configuration:
5757

58-
[core]
59-
hostname = localhost
60-
port = 8123
58+
```ini
59+
[core]
60+
hostname = localhost
61+
port = 8123
6162

62-
[default]
63-
output = rss
63+
[default]
64+
output = rss
65+
```
6466

6567
You can also add specific configurations for any generator and feed.
6668

67-
[twitter]
68-
output = atom
69+
```ini
70+
[twitter]
71+
output = atom
6972

70-
[twitter/u/Support]
71-
title = Support from Twitter
72-
description = Twitter's Support User
73+
[twitter/u/Support]
74+
title = Support from Twitter
75+
description = Twitter's Support User
76+
```
7377
7478
Since configuration is applied from parent folders to children,
7579
with the configuration above, http://localhost:8123/f/twitter/u/Support will result in this configuration:
7680
77-
title = Support from Twitter
78-
description = Twitter's Support User
79-
output = atom
81+
```ini
82+
title = Support from Twitter
83+
description = Twitter's Support User
84+
output = atom
85+
```
8086

8187
Configuration is lazily applied, so the following entry is perfectly acceptable,
8288
and would modify the previous URL's configuration accordingly:
8389

84-
[twitter/u]
85-
output = rss
90+
```ini
91+
[twitter/u]
92+
output = rss
93+
```
8694

8795
If you only wish to modify the configuration per-request, you can do so via standard GET request parameters:
8896

@@ -101,13 +109,17 @@ which uses data from the "social" output format to download media.
101109
To use download.py, clone the [dlscripts repo](https://github.com/qsniyg/dlscripts/) somewhere,
102110
and add the following to your configuration:
103111

104-
social_hooks = python path/to/download.py
112+
```ini
113+
social_hooks = python path/to/download.py
114+
```
105115

106116
RSSit will then send the data to the program's stdin.
107117

108118
To disable hooks entirely (useful for one-off usages):
109119

110-
nohooks = true
120+
```ini
121+
nohooks = true
122+
```
111123

112124
### Common options
113125

0 commit comments

Comments
 (0)