From 6a9e4b721c38d51650a30d46f98b364f4e1881d3 Mon Sep 17 00:00:00 2001 From: Brian Beck Date: Mon, 28 Nov 2016 19:22:31 -0800 Subject: [PATCH] Fix arg rendering --- doc/types.md | 514 ++++++++++++++++++++-------------------- scripts/render-types.js | 2 +- 2 files changed, 258 insertions(+), 258 deletions(-) diff --git a/doc/types.md b/doc/types.md index 2a55cc8..751dd50 100644 --- a/doc/types.md +++ b/doc/types.md @@ -94,7 +94,7 @@ requests can be made. id - [ID](#id)! + ID! The ID of an object @@ -218,12 +218,12 @@ the codes assigned by ISO to countries and subdivisions. after - [String](#string) + String first - [Int](#int) + Int @@ -233,12 +233,12 @@ the codes assigned by ISO to countries and subdivisions. after - [String](#string) + String first - [Int](#int) + Int @@ -248,12 +248,12 @@ the codes assigned by ISO to countries and subdivisions. after - [String](#string) + String first - [Int](#int) + Int @@ -263,12 +263,12 @@ the codes assigned by ISO to countries and subdivisions. after - [String](#string) + String first - [Int](#int) + Int @@ -278,22 +278,22 @@ the codes assigned by ISO to countries and subdivisions. after - [String](#string) + String first - [Int](#int) + Int type - [[ReleaseGroupType](#releasegrouptype)] + [ReleaseGroupType] Filter by one or more release group types. status - [[ReleaseStatus](#releasestatus)] + [ReleaseStatus] Filter by one or more release statuses. @@ -308,12 +308,12 @@ the codes assigned by ISO to countries and subdivisions. after - [String](#string) + String first - [Int](#int) + Int @@ -472,12 +472,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -487,22 +487,22 @@ field. after - [String](#string) + String first - [Int](#int) + Int type - [[ReleaseGroupType](#releasegrouptype)] + [ReleaseGroupType] Filter by one or more release group types. status - [[ReleaseStatus](#releasestatus)] + [ReleaseStatus] Filter by one or more release statuses. @@ -512,17 +512,17 @@ field. after - [String](#string) + String first - [Int](#int) + Int type - [[ReleaseGroupType](#releasegrouptype)] + [ReleaseGroupType] Filter by one or more release group types. @@ -532,12 +532,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -552,12 +552,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -658,17 +658,17 @@ entity. after - [String](#string) + String first - [Int](#int) + Int collection - [MBID](#mbid) + MBID The MBID of a collection in which the entity is found. @@ -678,42 +678,42 @@ entity. after - [String](#string) + String first - [Int](#int) + Int area - [MBID](#mbid) + MBID The MBID of an area to which the entity is linked. collection - [MBID](#mbid) + MBID The MBID of a collection in which the entity is found. recording - [MBID](#mbid) + MBID The MBID of a recording to which the entity is linked. release - [MBID](#mbid) + MBID The MBID of a release to which the entity is linked. releaseGroup - [MBID](#mbid) + MBID The MBID of a release group to which the entity is linked. work - [MBID](#mbid) + MBID The MBID of a work to which the artist is linked. @@ -723,32 +723,32 @@ entity. after - [String](#string) + String first - [Int](#int) + Int area - [MBID](#mbid) + MBID The MBID of an area to which the entity is linked. artist - [MBID](#mbid) + MBID The MBID of an artist to which the entity is linked. collection - [MBID](#mbid) + MBID The MBID of a collection in which the entity is found. place - [MBID](#mbid) + MBID The MBID of a place to which the event is linked. @@ -758,27 +758,27 @@ entity. after - [String](#string) + String first - [Int](#int) + Int area - [MBID](#mbid) + MBID The MBID of an area to which the entity is linked. collection - [MBID](#mbid) + MBID The MBID of a collection in which the entity is found. release - [MBID](#mbid) + MBID The MBID of a release to which the entity is linked. @@ -788,22 +788,22 @@ entity. after - [String](#string) + String first - [Int](#int) + Int area - [MBID](#mbid) + MBID The MBID of an area to which the entity is linked. collection - [MBID](#mbid) + MBID The MBID of a collection in which the entity is found. @@ -813,27 +813,27 @@ entity. after - [String](#string) + String first - [Int](#int) + Int artist - [MBID](#mbid) + MBID The MBID of an artist to which the entity is linked. collection - [MBID](#mbid) + MBID The MBID of a collection in which the entity is found. release - [MBID](#mbid) + MBID The MBID of a release to which the entity is linked. @@ -843,53 +843,53 @@ entity. after - [String](#string) + String first - [Int](#int) + Int area - [MBID](#mbid) + MBID The MBID of an area to which the entity is linked. artist - [MBID](#mbid) + MBID The MBID of an artist to which the entity is linked. collection - [MBID](#mbid) + MBID The MBID of a collection in which the entity is found. label - [MBID](#mbid) + MBID The MBID of a label to which the release is linked. track - [MBID](#mbid) + MBID The MBID of a track that is included in the release. trackArtist - [MBID](#mbid) + MBID The MBID of an artist that appears on a track in the release, but is not included in the credits for the release itself. recording - [MBID](#mbid) + MBID The MBID of a recording to which the entity is linked. releaseGroup - [MBID](#mbid) + MBID The MBID of a release group to which the entity is linked. @@ -899,27 +899,27 @@ release, but is not included in the credits for the release itself. after - [String](#string) + String first - [Int](#int) + Int artist - [MBID](#mbid) + MBID The MBID of an artist to which the entity is linked. collection - [MBID](#mbid) + MBID The MBID of a collection in which the entity is found. release - [MBID](#mbid) + MBID The MBID of a release to which the entity is linked. @@ -929,22 +929,22 @@ release, but is not included in the credits for the release itself. after - [String](#string) + String first - [Int](#int) + Int artist - [MBID](#mbid) + MBID The MBID of an artist to which the entity is linked. collection - [MBID](#mbid) + MBID The MBID of a collection in which the entity is found. @@ -954,17 +954,17 @@ release, but is not included in the credits for the release itself. after - [String](#string) + String first - [Int](#int) + Int resource - [URLString](#urlstring) + URLString The web address for which to browse URL entities. @@ -1069,12 +1069,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -1195,12 +1195,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -1344,22 +1344,22 @@ field. after - [String](#string) + String first - [Int](#int) + Int type - [[ReleaseGroupType](#releasegrouptype)] + [ReleaseGroupType] Filter by one or more release group types. status - [[ReleaseStatus](#releasestatus)] + [ReleaseStatus] Filter by one or more release statuses. @@ -1374,12 +1374,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -1473,7 +1473,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1483,7 +1483,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1493,7 +1493,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1503,7 +1503,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1513,7 +1513,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1523,7 +1523,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1533,7 +1533,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1543,7 +1543,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1553,7 +1553,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1563,7 +1563,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1573,7 +1573,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1583,7 +1583,7 @@ A lookup of an individual MusicBrainz entity by its MBID. mbid - [MBID](#mbid)! + MBID! The MBID of the entity. @@ -1693,12 +1693,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -1713,12 +1713,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -1840,12 +1840,12 @@ from the lengths of the tracks using it. after - [String](#string) + String first - [Int](#int) + Int @@ -1855,22 +1855,22 @@ from the lengths of the tracks using it. after - [String](#string) + String first - [Int](#int) + Int type - [[ReleaseGroupType](#releasegrouptype)] + [ReleaseGroupType] Filter by one or more release group types. status - [[ReleaseStatus](#releasestatus)] + [ReleaseStatus] Filter by one or more release statuses. @@ -1885,12 +1885,12 @@ from the lengths of the tracks using it. after - [String](#string) + String first - [Int](#int) + Int @@ -2081,37 +2081,37 @@ Lists of entity relationships for each entity type. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2122,37 +2122,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2163,37 +2163,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2204,37 +2204,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2245,37 +2245,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2286,37 +2286,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2327,37 +2327,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2368,37 +2368,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2409,37 +2409,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2450,37 +2450,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2491,37 +2491,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2532,37 +2532,37 @@ field. after - [String](#string) + String first - [Int](#int) + Int before - [String](#string) + String last - [Int](#int) + Int direction - [String](#string) + String Filter by the relationship direction. type - [String](#string) + String Filter by the relationship type. typeID - [MBID](#mbid) + MBID The MBID associated with the value of the type field. @@ -2673,12 +2673,12 @@ It is not a mark of how good or bad the music itself is – for that, use after - [String](#string) + String first - [Int](#int) + Int @@ -2688,12 +2688,12 @@ It is not a mark of how good or bad the music itself is – for that, use after - [String](#string) + String first - [Int](#int) + Int @@ -2703,12 +2703,12 @@ It is not a mark of how good or bad the music itself is – for that, use after - [String](#string) + String first - [Int](#int) + Int @@ -2718,17 +2718,17 @@ It is not a mark of how good or bad the music itself is – for that, use after - [String](#string) + String first - [Int](#int) + Int type - [[ReleaseGroupType](#releasegrouptype)] + [ReleaseGroupType] Filter by one or more release group types. @@ -2743,12 +2743,12 @@ It is not a mark of how good or bad the music itself is – for that, use after - [String](#string) + String first - [Int](#int) + Int @@ -2906,12 +2906,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -2921,22 +2921,22 @@ field. after - [String](#string) + String first - [Int](#int) + Int type - [[ReleaseGroupType](#releasegrouptype)] + [ReleaseGroupType] Filter by one or more release group types. status - [[ReleaseStatus](#releasestatus)] + [ReleaseStatus] Filter by one or more release statuses. @@ -2951,12 +2951,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -3025,18 +3025,18 @@ A search for MusicBrainz entities using Lucene query syntax. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3046,18 +3046,18 @@ and search fields. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3067,18 +3067,18 @@ and search fields. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3088,18 +3088,18 @@ and search fields. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3109,18 +3109,18 @@ and search fields. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3130,18 +3130,18 @@ and search fields. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3151,18 +3151,18 @@ and search fields. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3172,18 +3172,18 @@ and search fields. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3193,18 +3193,18 @@ and search fields. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3214,18 +3214,18 @@ and search fields. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3235,18 +3235,18 @@ and search fields. query - [String](#string)! + String! The query terms, in Lucene search syntax. See examples and search fields. after - [String](#string) + String first - [Int](#int) + Int @@ -3304,12 +3304,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -3580,12 +3580,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int @@ -3600,12 +3600,12 @@ field. after - [String](#string) + String first - [Int](#int) + Int diff --git a/scripts/render-types.js b/scripts/render-types.js index 2be960b..7428d43 100644 --- a/scripts/render-types.js +++ b/scripts/render-types.js @@ -52,7 +52,7 @@ function renderObject (type, { skipTitle = false } = {}) { field.args.forEach((arg, i) => { console.log(' ') console.log(` ${arg.name}`) - console.log(` ${renderType(arg.type)}`) + console.log(` ${markdown(renderType(arg.type))}`) console.log(` ${markdown(arg.description)}`) console.log(' ') })