asciidoctor-foodogsquared-e.../lib/asciidoctor/fdroid-link-inline-macro
Gabriel Arazas 869181bafa Update Asciidoctor extension dependency
Asciidoctor already handles the caching so we don't really need to. On
the plus side, it gives some choice whether the pipeline should have a
cache or not.
2023-05-28 17:49:15 +08:00
..
extension.rb Update Asciidoctor extension dependency 2023-05-28 17:49:15 +08:00
README.adoc Add shorthand link macro for F-Droid 2023-05-27 19:37:24 +08:00

Table of Contents

An inline macro as a shorthand for F-droid links.

Synopsis

fdroid:$APP_ID[$CAPTION]

Where…

  • $APP_ID is the application ID of the program (e.g., org.moire.ultrasonic).

  • $CAPTION is the link text. By default, it will use the display name of the application from its metadata repository. In other words, it will create an additional network request.

Attributes

  • lang is the language page to be linked. By default, it links to the English page of en.

Example usage

  • fdroid:org.moire.ultrasonic[] should link to the F-Droid page for Ultrasonic with the link text 'Ultrasonic'.

  • fdroid:org.moire.ultrasonic[Hello there] is the same as previous item but with the link text replaced with 'Hello there'.

  • fdroid:org.moire.ultrasonic[lang=it] is the same as the first list item but links to the Italian page.