Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 5f5d9ad

Browse files
authored
Merge pull request #30 from SamR1/urls-refacto
URLs update
2 parents 34a67f2 + 88f704e commit 5f5d9ad

File tree

13 files changed

+182
-108
lines changed

13 files changed

+182
-108
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ lint-fix:
3737
$(BLACK) $(FLASK_APP)
3838

3939
serve:
40+
echo 'Running on http://$(HOST):$(PORT)'
4041
$(FLASK) run --with-threads -h $(HOST) -p $(PORT)
4142

4243
run:
44+
echo 'Running on http://$(HOST):$(PORT)'
4345
FLASK_ENV=production && $(GUNICORN) -b 127.0.0.1:5000 "$(FLASK_APP):create_app()" --error-logfile $(GUNICORN_LOG)
4446

4547
venv:

docs/_sources/installation.rst.txt

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Installation
7070
7171
7272
73-
- The files location can be changed with the following environment variables:
73+
- The files location and settings can be changed with the following environment variables:
7474

7575
=========================== =============================================== ===========================================================================================
7676
variable description app default value
@@ -91,35 +91,34 @@ Installation
9191
Usage
9292
~~~~~
9393

94+
.. versionchanged:: 0.7.0
95+
9496
The following RSS feeds are available:
9597

9698
- for Twitter search:
9799

98-
- http://localhost:8080/tweets/<keywords>?token=XXX
99-
- http://localhost:8080/<keywords>?token=XXX (*will be deprecated in a next version*)
100+
- http://localhost:8080/tweets?q=<query>&token=<token>
100101

101102
- for Mastodon search:
102103

103-
- keyword as a hashtag:
104+
- hashtag:
104105

105-
- http://localhost:8080/toots/<hashtag>?token=XXX (without the leading #)
106+
- http://localhost:8080/toots/tags/<hashtag>?token=<token> (without the leading #)
106107

107108
- query:
108109

109-
- http://localhost:8080/toots/search/<query>?token=XXX
110-
- http://localhost:8080/toot_search/<query>?token=XXX (*will be deprecated in a next version*)
110+
- http://localhost:8080/toots/search?q=<query>&token=<token>
111111

112-
- for Mastodon connected user favorites:
112+
- for Mastodon user favorites:
113113

114-
- http://localhost:8080/toots/favorites?token=XXX
115-
- http://localhost:8080/toot_favorites?token=XXX (*will be deprecated in a next version*)
114+
- http://localhost:8080/toots/favorites?token=<token>
116115

117-
- for Mastodon connected user bookmarks:
116+
- for Mastodon user bookmarks:
118117

119-
- http://localhost:8080/toots/bookmarks?token=XXX
118+
- http://localhost:8080/toots/bookmarks?token=<token>
120119

121-
- for Mastodon connected user home timeline:
120+
- for Mastodon user home timeline:
122121

123-
- http://localhost:8080/toots/home_timeline?token=XXX
122+
- http://localhost:8080/toots/home_timeline?token=<token>
124123

125-
where XXX is the token set in configuration.
124+
where ``<token>`` is the token set in configuration.

docs/installation.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ <h2>Installation<a class="headerlink" href="#installation" title="Permalink to t
143143
</div>
144144
</div></blockquote>
145145
</li>
146-
<li><p>The files location can be changed with the following environment variables:</p></li>
146+
<li><p>The files location and settings can be changed with the following environment variables:</p></li>
147147
</ul>
148148
<table class="docutils align-default">
149149
<colgroup>
@@ -185,61 +185,61 @@ <h2>Installation<a class="headerlink" href="#installation" title="Permalink to t
185185
</section>
186186
<section id="usage">
187187
<h2>Usage<a class="headerlink" href="#usage" title="Permalink to this heading"></a></h2>
188+
<div class="versionchanged">
189+
<p><span class="versionmodified changed">Changed in version 0.7.0.</span></p>
190+
</div>
188191
<p>The following RSS feeds are available:</p>
189192
<ul>
190193
<li><p>for Twitter search:</p>
191194
<blockquote>
192195
<div><ul class="simple">
193-
<li><p><a class="reference external" href="http://localhost:8080/tweets">http://localhost:8080/tweets</a>/&lt;keywords&gt;?token=XXX</p></li>
194-
<li><p><a class="reference external" href="http://localhost:8080">http://localhost:8080</a>/&lt;keywords&gt;?token=XXX (<em>will be deprecated in a next version</em>)</p></li>
196+
<li><p><a class="reference external" href="http://localhost:8080/tweets">http://localhost:8080/tweets</a>?q=&lt;query&gt;&amp;token=&lt;token&gt;</p></li>
195197
</ul>
196198
</div></blockquote>
197199
</li>
198200
<li><p>for Mastodon search:</p>
199201
<blockquote>
200202
<div><ul>
201-
<li><p>keyword as a hashtag:</p>
203+
<li><p>hashtag:</p>
202204
<blockquote>
203205
<div><ul class="simple">
204-
<li><p><a class="reference external" href="http://localhost:8080/toots">http://localhost:8080/toots</a>/&lt;hashtag&gt;?token=XXX (without the leading #)</p></li>
206+
<li><p><a class="reference external" href="http://localhost:8080/toots/tags">http://localhost:8080/toots/tags</a>/&lt;hashtag&gt;?token=&lt;token&gt; (without the leading #)</p></li>
205207
</ul>
206208
</div></blockquote>
207209
</li>
208210
<li><p>query:</p>
209211
<blockquote>
210212
<div><ul class="simple">
211-
<li><p><a class="reference external" href="http://localhost:8080/toots/search">http://localhost:8080/toots/search</a>/&lt;query&gt;?token=XXX</p></li>
212-
<li><p><a class="reference external" href="http://localhost:8080/toot_search">http://localhost:8080/toot_search</a>/&lt;query&gt;?token=XXX (<em>will be deprecated in a next version</em>)</p></li>
213+
<li><p><a class="reference external" href="http://localhost:8080/toots/search">http://localhost:8080/toots/search</a>?q=&lt;query&gt;&amp;token=&lt;token&gt;</p></li>
213214
</ul>
214215
</div></blockquote>
215216
</li>
216217
</ul>
217218
</div></blockquote>
218219
</li>
219-
<li><p>for Mastodon connected user favorites:</p>
220+
<li><p>for Mastodon user favorites:</p>
220221
<blockquote>
221222
<div><ul class="simple">
222-
<li><p><a class="reference external" href="http://localhost:8080/toots/favorites?token=XXX">http://localhost:8080/toots/favorites?token=XXX</a></p></li>
223-
<li><p><a class="reference external" href="http://localhost:8080/toot_favorites?token=XXX">http://localhost:8080/toot_favorites?token=XXX</a> (<em>will be deprecated in a next version</em>)</p></li>
223+
<li><p><a class="reference external" href="http://localhost:8080/toots/favorites">http://localhost:8080/toots/favorites</a>?token=&lt;token&gt;</p></li>
224224
</ul>
225225
</div></blockquote>
226226
</li>
227-
<li><p>for Mastodon connected user bookmarks:</p>
227+
<li><p>for Mastodon user bookmarks:</p>
228228
<blockquote>
229229
<div><ul class="simple">
230-
<li><p><a class="reference external" href="http://localhost:8080/toots/bookmarks?token=XXX">http://localhost:8080/toots/bookmarks?token=XXX</a></p></li>
230+
<li><p><a class="reference external" href="http://localhost:8080/toots/bookmarks">http://localhost:8080/toots/bookmarks</a>?token=&lt;token&gt;</p></li>
231231
</ul>
232232
</div></blockquote>
233233
</li>
234-
<li><p>for Mastodon connected user home timeline:</p>
234+
<li><p>for Mastodon user home timeline:</p>
235235
<blockquote>
236236
<div><ul class="simple">
237-
<li><p><a class="reference external" href="http://localhost:8080/toots/home_timeline?token=XXX">http://localhost:8080/toots/home_timeline?token=XXX</a></p></li>
237+
<li><p><a class="reference external" href="http://localhost:8080/toots/home_timeline">http://localhost:8080/toots/home_timeline</a>?token=&lt;token&gt;</p></li>
238238
</ul>
239239
</div></blockquote>
240240
</li>
241241
</ul>
242-
<p>where XXX is the token set in configuration.</p>
242+
<p>where <code class="docutils literal notranslate"><span class="pre">&lt;token&gt;</span></code> is the token set in configuration.</p>
243243
</section>
244244
</section>
245245

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)