From b8a64ddc38878525f798c312bc6d1e8b44f4a935 Mon Sep 17 00:00:00 2001 From: Brian Beck Date: Mon, 28 Nov 2016 19:24:02 -0800 Subject: [PATCH] Fix table heading alignment --- doc/types.md | 212 ++++++++++++++++++++++++++++++---------- scripts/render-types.js | 4 +- 2 files changed, 162 insertions(+), 54 deletions(-) diff --git a/doc/types.md b/doc/types.md index 751dd50..4d2bc3a 100644 --- a/doc/types.md +++ b/doc/types.md @@ -85,7 +85,9 @@ The query root, from which multiple types of MusicBrainz requests can be made. - + + + @@ -124,7 +126,9 @@ entity will be given as a result – even if the actual name wouldn’t be. They available for artists, labels, and works.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -170,7 +174,9 @@ field. or settlements (countries, cities, or the like).
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
name
- + + + @@ -323,7 +329,9 @@ the codes assigned by ISO to countries and subdivisions. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -348,7 +356,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -377,7 +387,9 @@ photographer, an illustrator, or a poet whose writings are set to music), or even a fictional character.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -567,7 +579,9 @@ field. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -596,7 +610,9 @@ artists, with (optionally) their names as credited in the specific release, track, etc., and join phrases between them.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -623,7 +639,9 @@ separate artist names as they appear on the release, track, etc. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
artist
- + + + @@ -649,7 +667,9 @@ A query for all MusicBrainz entities directly linked to another entity.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -974,7 +994,9 @@ release, but is not included in the credits for the release itself. Geographic coordinates described with latitude and longitude.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
areas
- + + + @@ -995,7 +1017,9 @@ organised event which people can attend, and is relevant to MusicBrainz. Generally this means live performances, like concerts and festivals.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
latitude
- + + + @@ -1084,7 +1108,9 @@ field. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -1109,7 +1135,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -1136,7 +1164,9 @@ devices created or adapted to make musical sounds. Instruments are primarily used in relationships between two other entities.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -1210,7 +1240,9 @@ field. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -1235,7 +1267,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -1262,7 +1296,9 @@ these results were found through a search. represent a record company.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -1389,7 +1425,9 @@ field. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -1414,7 +1452,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -1440,7 +1480,9 @@ Fields indicating the begin and end date of an entity’s lifetime, including whether it has ended (even if the date is unknown).
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -1464,7 +1506,9 @@ lifetime, including whether it has ended (even if the date is unknown). A lookup of an individual MusicBrainz entity by its MBID.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
begin
- + + + @@ -1593,7 +1637,9 @@ A lookup of an individual MusicBrainz entity by its MBID. Information about pagination in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
area
- + + + @@ -1623,7 +1669,9 @@ A [place](https://musicbrainz.org/doc/Place) is a venue, studio or other place where music is performed, recorded, engineered, etc.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
hasNextPage
- + + + @@ -1728,7 +1776,9 @@ field. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -1753,7 +1803,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -1789,7 +1841,9 @@ stage in the production process before any final mastering but after any editing or mixing.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -1900,7 +1954,9 @@ from the lengths of the tracks using it. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -1925,7 +1981,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -1952,7 +2010,9 @@ way to represent all the different ways in which entities are connected to each other and to URLs outside MusicBrainz.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -2022,7 +2082,9 @@ field. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
target
- + + + @@ -2047,7 +2109,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -2072,7 +2136,9 @@ these results were found through a search. Lists of entity relationships for each entity type.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -2577,7 +2643,9 @@ walk into a store and purchase an album or single, they’re each represented in MusicBrainz as one release.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
areas
- + + + @@ -2758,7 +2826,9 @@ It is not a mark of how good or bad the music itself is – for that, use A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -2783,7 +2853,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -2809,7 +2881,9 @@ Date on which a release was issued in a country/region with a particular label, catalog number, barcode, and what release format was used.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -2835,7 +2909,9 @@ or a vinyl record, while a release group embraces the overall concept of an album – it doesn’t matter how many CDs or editions/versions it had.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
area
- + + + @@ -2966,7 +3042,9 @@ field. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -2991,7 +3069,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -3016,7 +3096,9 @@ these results were found through a search. A search for MusicBrainz entities using Lucene query syntax.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -3258,7 +3340,9 @@ separate release groups, releases, recordings, works or events with a common theme.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
areas
- + + + @@ -3319,7 +3403,9 @@ field. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -3344,7 +3430,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -3371,7 +3459,9 @@ with extra information – for example, the genres that apply to an artist, release, or recording.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -3390,7 +3480,9 @@ release, or recording. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
name
- + + + @@ -3415,7 +3507,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -3442,7 +3536,9 @@ external to MusicBrainz, i.e. an official homepage, a site where music can be acquired, an entry in another database, etc.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -3471,7 +3567,9 @@ acquired, an entry in another database, etc. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -3496,7 +3594,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + @@ -3523,7 +3623,9 @@ intellectual or artistic creation, which can be expressed in the form of one or more audio recordings.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
- + + + @@ -3615,7 +3717,9 @@ field. A connection to a list of items.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
id
- + + + @@ -3640,7 +3744,9 @@ ignoring pagination. An edge in a connection.
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
pageInfo
- + + + diff --git a/scripts/render-types.js b/scripts/render-types.js index 7428d43..679fa6e 100644 --- a/scripts/render-types.js +++ b/scripts/render-types.js @@ -40,7 +40,9 @@ function renderObject (type, { skipTitle = false } = {}) { console.log(`${type.description}\n`) } console.log('
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription
node
') - console.log(' ') + console.log(' ') + console.log(' ') + console.log(' ') console.log('') type.fields.forEach(field => { console.log(' ')
Field / ArgumentTypeDescriptionField / ArgumentTypeDescription