Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YAML: add link / reference to external document

Tags:

yaml

How can I add a link to a YAML file that points to, e.g. another web site? The description field would be fine.

I read the YAML documentation but could not find a reference to "external references".

like image 894
Ulrich Scholz Avatar asked Jun 22 '16 07:06

Ulrich Scholz


People also ask

How do I add a hyperlink in YAML?

[] — link text inside square brackets. () — link URL inside round brackets.

Can YAML reference other files?

No, standard YAML does not include any kind of "import" or "include" statement. You could create a ! include <filename> handler.

Can YAML reference itself?

JSON. YAML 1.2 is a superset of JavaScript Object Notation (JSON) but has some built-in advantages. For example, YAML can self-reference, support complex datatypes, embed block literals, support comments, and more.

How do I use inheritance in YAML?

On the first line of your YAML definition, use the ! inherit directive followed by a colon and the identifier of the definition you want to inherit from.


1 Answers

Easy solution: descriptions use format Markdown, which allows links with the format

[I'm an inline-style link](https://www.google.com)
like image 53
Ulrich Scholz Avatar answered Sep 27 '22 18:09

Ulrich Scholz