New Feature: Easy Abbreviation

new feature contributing

Posted on: 25 May 2021 purlPURL: https://gxy.io/GTN:N00013

Thanks to the great tutorial developed by first time contributor Erik Schill avatar Erik Schill and edited by Simon Bray avatar Simon Bray , we noticed that they defined a number of abbreviations and re-used those throughout their tutorial.

As the GTN is intended to be easy for contributors and easy for learners, we wanted to make use of the <abbr> tag which allows you to define commonly re-used terms in your HTML. However this is a bit clumsy to write every time, so we’ve implemented a tag and some metadata which permits easily defining and referencing abbreviations throughout your text.

In your tutorial metadata you can add an abbreviations section like:

---
title: My awesome tutorial
...
abbreviations:
  API: Application Programming Interface
  JSON: JavaScript Object Notation
---

And in your text you can use braces to refer to the term

Markdown

The `/jobs` {API} will return {JSON}. When we call the {API} we'll get back this result {JSON}.

The /jobs Application Programming Interface (API) will return JavaScript Object Notation (JSON). When we call the API we’ll get back this result JSON.

These will even generate an automatic Glossary at the end. Check out the use of this new feature in the BioBlend Dev Tutorial!

View Material

Recent News

See all news

GTN's Gift for 2024

19 December 2024   gtn single-cell new feature new tutorial contributing community

Community Pages

Credit where it's due: GTN Reviewers in the spotlight

2 December 2024   gtn infrastructure new feature automation contributing community

We would like to recognise and thank all of the reviewers who have contributed to the GTN tutorials; your efforts are greatly appreciated, and we are grateful for your contributions to the GTN community. Today, we are highlighting your efforts on every single learning material across the GTN.