Commit cf4e8a40 authored by Hans-Christoph Steiner's avatar Hans-Christoph Steiner
Browse files

convert all MediaWiki links to HTML links

```python
import yaml, glob, re, os
from fdroidserver import metadata

pat = re.compile(r'\[(https?://[^ \]]+)\s+([^\]]+)\]')

for f in glob.glob('metadata/*.yml'):
    with open(f) as fp:
        data = yaml.load(fp)
    description = data.get('Description', '')
    for m in pat.finditer(data.get('Description', '')):
        link = m.group(1)
        text = m.group(2)
        print(f, link, text, flush=True)
        description = description.replace(m.group(), '<a href="%s">%s</a>' % (link, text))
    data['Description'] = description
    app = metadata.App(data)
    metadata.write_metadata(f, app)
```

```
sed -i 's,^      - true,      - yes,' metadata/*.yml
sed -i 's,^      - false,      - no,' metadata/*.yml
```

closes fdroid-website#510
parent cc6460c6
......@@ -15,7 +15,7 @@ Description: |-
Speech (TTS) services while you are connected. Each paired Bluetooth device or
virtual device (home dock, car dock, power connection, or headset plug) can be
configured to your liking. There is a
[https://github.com/jroal/a2dpvolume/wiki/Manual manual] on the website.
<a href="https://github.com/jroal/a2dpvolume/wiki/Manual">manual</a> on the website.
A secondary feature is the ability to capture location information so you can
find where you left your car. The location can also be automatically captured
......
......@@ -26,7 +26,7 @@ Description: |-
* Icon Shape selection on Android 8.0
For Pixel users, there’s also a
[https://github.com/amirzaidi/launcher3magisk/releases Magisk version].
<a href="https://github.com/amirzaidi/launcher3magisk/releases">Magisk version</a>.
RepoType: git
Repo: https://github.com/amirzaidi/Launcher3.git
......
......@@ -10,7 +10,7 @@ Description: |-
demos.
We use a patched fork authorized by the
[https://github.com/anupam1525/AcrylicPaint/ original author] until main
<a href="https://github.com/anupam1525/AcrylicPaint/">original author</a> until main
development is active again.
RepoType: git
......
......@@ -19,7 +19,7 @@ Description: |-
Key features:
* Free software ([https://github.com/milesmcc/LibreNews-Server server] and client licensed under GPLv3)
* Free software (<a href="https://github.com/milesmcc/LibreNews-Server">server</a> and client licensed under GPLv3)
* Doesn’t use up a ton of battery life
* Up-to-date and current
* Doesn’t rely on Google infrastructure
......@@ -34,8 +34,7 @@ Description: |-
* Syncs automatically, regardless of whether the app is open
You can expect LibreNews to send you about three notifications per day if you
connect to the [https://librenews.io default server] [https://librenews.io/api
API].
connect to the <a href="https://librenews.io">default server</a> <a href="https://librenews.io/api">API</a>.
RepoType: git
Repo: https://github.com/milesmcc/LibreNews-Android
......
......@@ -19,7 +19,7 @@ Description: |-
* Keepalive feature to prevent unnecessary disconnections
* Compatible with ARMv7, x86, and MIPS devices
* No root required
* Based on the popular [http://www.infradead.org/openconnect/ OpenConnect Linux package]
* Based on the popular <a href="http://www.infradead.org/openconnect/">OpenConnect Linux package</a>
Requirements:
......
......@@ -9,7 +9,7 @@ Changelog: https://github.com/aminecmi/ReaderforSelfoss/blob/HEAD/CHANGELOG.md
AutoName: Reader for Selfoss
Description: |-
A new RSS reader for [http://selfoss.aditu.de/ selfoss].
A new RSS reader for <a href="http://selfoss.aditu.de/">selfoss</a>.
It connects to your selfoss instance (works only with selfoss, and can't work
without it), and you'll be able to read and manage all your RSS feeds.
......
......@@ -15,7 +15,7 @@ Description: |-
refills.
Help with translating RxDroid to your language at
[https://crowdin.com/project/rxdroid crowdin.com]!
<a href="https://crowdin.com/project/rxdroid">crowdin.com</a>!
RepoType: git
Repo: https://github.com/jclehner/rxdroid
......
......@@ -10,7 +10,7 @@ Bitcoin: 1GLTBBirbj8GZ8uY1gwovZ1QEMjfWu3rWT
AutoName: GLT Companion
Description: |-
Advanced schedule browser for the [https://linuxtage.at/ Grazer Linuxtage]
Advanced schedule browser for the <a href="https://linuxtage.at/">Grazer Linuxtage</a>
conference in Graz, Austria. Download the most recent schedule and browse it
offline.
......
......@@ -10,7 +10,7 @@ Description: |-
allow it to access. You can control the level of detail of the data collected
from within the app. The app comes preconfigured so as to collect data for
upstream's open 3G connectivity map,
[https://skylla.fc.univie.ac.at/~puehringer/o3gm_django Open3GMap]: it sends
<a href="https://skylla.fc.univie.ac.at/~puehringer/o3gm_django">Open3GMap</a>: it sends
data once an hour when a WiFi connection is available, but the URLs and
frequency can be chosen.
......
......@@ -20,7 +20,7 @@ Description: |-
This is a re-issued version of https://f-droid.org/packages/at.zweng.bankomatinfos. The original app was
removed from the PlayStore due to TOS violations. More information in the
[https://github.com/johnzweng/bankomatinfos/issues/7 issue tracker].
<a href="https://github.com/johnzweng/bankomatinfos/issues/7">issue tracker</a>.
RepoType: git
Repo: https://github.com/johnzweng/bankomatinfos.git
......
......@@ -8,12 +8,10 @@ IssueTracker: https://github.com/mattkwan/android-xserver/issues
AutoName: X Server
Summary: Display remote X11 apps
Description: |-
X Server, allowing you to display [http://en.wikipedia.org/wiki/X_Window_System
X11] applications on your device. It could be used in conjunction with
X Server, allowing you to display <a href="http://en.wikipedia.org/wiki/X_Window_System">X11</a> applications on your device. It could be used in conjunction with
https://f-droid.org/packages/info.guardianproject.lildebi to use graphical apps according to the
instructions on
[https://web.archive.org/web/20141008132408/http://j05hyyy.blogspot.ca/2012_09_01_archive.html
this blog]
<a href="https://web.archive.org/web/20141008132408/http://j05hyyy.blogspot.ca/2012_09_01_archive.html">this blog</a>
RepoType: git
Repo: https://github.com/mattkwan/android-xserver
......
......@@ -9,7 +9,7 @@ IssueTracker: https://gitlab.com/AwaisKing/Instagrabber/issues
AutoName: InstaGrabber
Description: |-
[NOTE: this app is discontinued, use [https://f-droid.org/en/packages/me.austinhuang.instagrabber/ the maintained fork] instead]
[NOTE: this app is discontinued, use <a href="https://f-droid.org/en/packages/me.austinhuang.instagrabber/">the maintained fork</a> instead]
Hey moron, this is what you can do:
* you can search for hashtags and use usernames.
......
......@@ -19,7 +19,7 @@ Description: |-
Select your bike network, find some stations in the list or on the map
(OpenStreetMap) and you’re good to go!
Data is retrieved from the [http://api.citybik.es/v2/ CityBikes] API.
Data is retrieved from the <a href="http://api.citybik.es/v2/">CityBikes</a> API.
RepoType: git
Repo: https://github.com/bparmentier/OpenBikeSharing
......
......@@ -10,7 +10,7 @@ Changelog: https://github.com/cbeyls/fosdem-companion-android/releases
AutoName: FOSDEM Companion
Description: |-
Advanced schedule browser for the [https://fosdem.org/ FOSDEM] conference in
Advanced schedule browser for the <a href="https://fosdem.org/">FOSDEM</a> conference in
Brussels, Belgium. Download the most recent schedule and browse it offline.
Features:
......
......@@ -14,8 +14,8 @@ Description: |-
* If your smartphone encounters an unknown access point with a known name (for example, a malicious access point pretending to be your home network), it asks whether you trust this access point before connecting. This makes sure that other people are not able to steal your data.
Further details are discussed in two papers, a
[https://brambonne.com/docs/bonne14sasquatchprivacypolice.pdf short one] and
[https://brambonne.com/docs/bonne14sasquatch.pdf long version].
<a href="https://brambonne.com/docs/bonne14sasquatchprivacypolice.pdf">short one</a> and
<a href="https://brambonne.com/docs/bonne14sasquatch.pdf">long version</a>.
RepoType: git
Repo: https://github.com/BramBonne/privacypolice
......
......@@ -12,7 +12,7 @@ AutoName: BRouter
Description: |-
Sophisticated routing engine for offline cycling directions. Works as a
selectable navigation service within a mapping application like
https://f-droid.org/packages/net.osmand.plus. Check out the [http://brouter.de/brouter/ website] for a
https://f-droid.org/packages/net.osmand.plus. Check out the <a href="http://brouter.de/brouter/">website</a> for a
full description of features.
RepoType: git
......
......@@ -8,7 +8,7 @@ IssueTracker: https://github.com/rafi-kamal/Bangla-Dictionary/issues
AutoName: Ridmik Dictionary
Description: |-
Based on ankur.org's database. More info
[http://www.bengalinux.org/english-to-bengali-dictionary/about.htm here].
<a href="http://www.bengalinux.org/english-to-bengali-dictionary/about.htm">here</a>.
RepoType: git
Repo: https://github.com/rafi-kamal/Bangla-Dictionary.git
......
......@@ -9,7 +9,7 @@ IssueTracker: https://github.com/graham22/Classic/issues
Name: MidniteSolar Classic Monitor
AutoName: Classic
Description: |-
Unofficial status monitor for [http://www.midnitesolar.com/ Midnite solar]’s
Unofficial status monitor for <a href="http://www.midnitesolar.com/">Midnite solar</a>’s
Classic 150, 200, 250 Charge Controller. It is a Read Only Program, it does not
write to the Classic.
......
......@@ -23,7 +23,7 @@ Description: |-
Just install, enable, reboot, and you’re done. Get back to work.
Requires the [http://xposed.info Xposed framework]
Requires the <a href="http://xposed.info">Xposed framework</a>
RequiresRoot: 'yes'
......
......@@ -12,7 +12,7 @@ Donate: http://citux.tip.me
AutoName: TD
Description: |-
Watch video streams about gaming with this simple client for the
[http://twitch.tv Twitch] streaming service.
<a href="http://twitch.tv">Twitch</a> streaming service.
RepoType: git
Repo: https://github.com/CiTuX/TD
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment