17

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".

2
  • 1
    What's the code you have a the moment? Commented Jun 22, 2016 at 7:55
  • I just added an html referece like <a href="../folder/file.html>here</a>. Page says, it cannot be parsed. Commented Jun 22, 2016 at 7:59

4 Answers 4

17

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

[I'm an inline-style link](https://www.google.com)
Sign up to request clarification or add additional context in comments.

2 Comments

Tried this as a value for property of an action in GitHub Actions workflow. Returns "can not read an implicit mapping pair; a colon is missing".
For my yaml parameter I had to put everything in quotation marks: "[I'm an inline-style link](https://www.google.com)"
1

I was looking for the same, this may help too.

 <a href="https://..." target="_blank">click to open the extarnal tab</a>

Comments

1

This works

title: Test Release and Updates
name: Developed and maintained by Testing Team
description: <a href="http://testing.test123.org/xx3/landing.gsp">Testing Landing Page</a>
theme: jekyll-theme-cayman
github:
  is_project_page: false

1 Comment

The link to the website is broken
0

YAML does not include any kind of "import" or "include" statement.
BUT what you can do is to use PyYAML (documentation here).
Also, read this previous post, there are some solutions you may want to use to your case.

1 Comment

I would be fine to have a clickable link to another file. No need to import one

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.