fdroiddata/metadata/com.amabyte.vtucslabmanual.yml
Hans-Christoph Steiner cf4e8a40ff 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
2020-12-09 19:10:44 +01:00

36 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Categories:
- Science & Education
License: GPL-3.0-only
SourceCode: https://github.com/Amabyte/vtu-cs-lab-manual
IssueTracker: https://github.com/Amabyte/vtu-cs-lab-manual/issues
AutoName: VTU CS Lab Manual
Description: |-
VTU CS Lab Manual aims at providing Lab Manual for Computer Science students of
all semesters affiliated to <a href="http://vtu.ac.in/">Vishweshwarayya Technical
University</a>. The Lab materials provided in this app are all checked and verified
to be working. Content is derived from FSMKs Lab manual project which is
released under CC-BY-SA.
RepoType: git
Repo: https://github.com/Amabyte/vtu-cs-lab-manual
Builds:
- versionName: '1.0'
versionCode: 1
commit: 00ee44039c5cc6bad020c19c5ec6e7817304a55e
subdir: app
gradle:
- yes
MaintainerNotes: |-
1.0,1:
* markdown4j-2.2.jar matches https://code.google.com/p/markdown4j/downloads/list
* markdown4j only provide source tarballs, no repo, so we cannot include it via
srclibs. "org.commonjava.googlecode.markdown4j:markdown4j:2.2-cj-1.0" does not
work.
AutoUpdateMode: None
UpdateCheckMode: RepoManifest/free
CurrentVersion: '1.0'
CurrentVersionCode: 1