Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As proposed in #63, this revisits how links in reference tabs look and how they're composed. In favor of a simple
"icon"
and"description"
properties instead of"author"
, this looks to fill the space better and allow a more flexible way of describing references.For now,
"icon"
is just an optional an simple string. The front-end is built as it would expect a simple emoji, not a long string. We can leave pending adding Coding Train characters here, but we gotta know what's the status with them."description"
also is an optional string, can be relatively long, but they work better short and snappy. They can contain HTML tags that will be parsed, so that links can be added inside. For example, the following descriptions mentions two authors and links to their respective websites:Here are some screenshots of how the front-end looks like in different screen sizes:
This also updates tests to fit this new property schema, and updated manually all files that had
"author"
.@klinegareth I also went ahead and moved the
index.json
fromcontent/videos/tracks
from there cause not only it cause an the unexpected error, it also cause that tests inside of it didn't continue going forward, and that made the script ignore a lot of content. I figured you didn't remove it because it could be used as a template for new videos, so I moved it to a new location:content/templates/videos
. The templates folder can be used to leave some template JSONs for different content. Tracks and contributions can also have one. I left the testing rules for that folder more loose in case you want to change it. Let me know if this is fine!