Creating fret diagrams with chord names but no staff/staves using fret diagram markup

This snippet shows how to create fret diagrams with chord names but no staff/staves, for a fret diagram which is not one of the predefined fretboard diagrams i.e. with the fret diagrams specified using fret diagram markup.

The first example in the "Fret diagram markups" section of the "Notation Reference" (http://lilypond.org/doc/v2.18/Documentation/6f/lily-b213fdb4.ly) is defined using fret diagram markup, so I have used that example as the basis for this snippet. Hence, this is also an example of how to remove the staff (and all things in the staff) from the first example in the "Fret diagram markups" section of the "Notation reference".

For more info, please see: