Fix table heading alignment

This commit is contained in:
Brian Beck 2016-11-28 19:24:02 -08:00
parent 6a9e4b721c
commit b8a64ddc38
2 changed files with 162 additions and 54 deletions

View file

@ -85,7 +85,9 @@ The query root, from which multiple types of MusicBrainz
requests can be made.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -124,7 +126,9 @@ entity will be given as a result even if the actual name wouldnt be. They
available for artists, labels, and works.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>name</strong></td>
@ -170,7 +174,9 @@ field.</td>
or settlements (countries, cities, or the like).
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -323,7 +329,9 @@ the codes assigned by ISO to countries and subdivisions.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -348,7 +356,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -377,7 +387,9 @@ photographer, an illustrator, or a poet whose writings are set to music), or
even a fictional character.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -567,7 +579,9 @@ field.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -596,7 +610,9 @@ artists, with (optionally) their names as credited in the specific release,
track, etc., and join phrases between them.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>artist</strong></td>
@ -623,7 +639,9 @@ separate artist names as they appear on the release, track, etc.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -649,7 +667,9 @@ A query for all MusicBrainz entities directly linked to another
entity.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>areas</strong></td>
@ -974,7 +994,9 @@ release, but is not included in the credits for the release itself.</td>
Geographic coordinates described with latitude and longitude.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>latitude</strong></td>
@ -995,7 +1017,9 @@ organised event which people can attend, and is relevant to MusicBrainz.
Generally this means live performances, like concerts and festivals.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -1084,7 +1108,9 @@ field.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -1109,7 +1135,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -1136,7 +1164,9 @@ devices created or adapted to make musical sounds. Instruments are primarily
used in relationships between two other entities.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -1210,7 +1240,9 @@ field.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -1235,7 +1267,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -1262,7 +1296,9 @@ these results were found through a search.</td>
represent a record company.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -1389,7 +1425,9 @@ field.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -1414,7 +1452,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -1440,7 +1480,9 @@ Fields indicating the begin and end date of an entitys
lifetime, including whether it has ended (even if the date is unknown).
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>begin</strong></td>
@ -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.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>area</strong></td>
@ -1593,7 +1637,9 @@ A lookup of an individual MusicBrainz entity by its MBID.
Information about pagination in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>hasNextPage</strong></td>
@ -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.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -1728,7 +1776,9 @@ field.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -1753,7 +1803,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -1789,7 +1841,9 @@ stage in the production process before any final mastering but after any editing
or mixing.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -1900,7 +1954,9 @@ from the lengths of the tracks using it.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -1925,7 +1981,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -1952,7 +2010,9 @@ way to represent all the different ways in which entities are connected to each
other and to URLs outside MusicBrainz.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>target</strong></td>
@ -2022,7 +2082,9 @@ field.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -2047,7 +2109,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -2072,7 +2136,9 @@ these results were found through a search.</td>
Lists of entity relationships for each entity type.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>areas</strong></td>
@ -2577,7 +2643,9 @@ walk into a store and purchase an album or single, theyre each represented in
MusicBrainz as one release.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -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.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -2783,7 +2853,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -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.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>area</strong></td>
@ -2835,7 +2909,9 @@ or a vinyl record, while a release group embraces the overall concept of an
album it doesnt matter how many CDs or editions/versions it had.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -2966,7 +3042,9 @@ field.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -2991,7 +3069,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -3016,7 +3096,9 @@ these results were found through a search.</td>
A search for MusicBrainz entities using Lucene query syntax.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>areas</strong></td>
@ -3258,7 +3340,9 @@ separate release groups, releases, recordings, works or events with a common
theme.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -3319,7 +3403,9 @@ field.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -3344,7 +3430,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -3371,7 +3459,9 @@ with extra information for example, the genres that apply to an artist,
release, or recording.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>name</strong></td>
@ -3390,7 +3480,9 @@ release, or recording.
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -3415,7 +3507,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -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.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -3471,7 +3567,9 @@ acquired, an entry in another database, etc.
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -3496,7 +3594,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>
@ -3523,7 +3623,9 @@ intellectual or artistic creation, which can be expressed in the form of one or
more audio recordings.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>id</strong></td>
@ -3615,7 +3717,9 @@ field.</td>
A connection to a list of items.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>pageInfo</strong></td>
@ -3640,7 +3744,9 @@ ignoring pagination.</td>
An edge in a connection.
<table><thead>
<th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>
<th align="left">Field&nbsp;/&nbsp;Argument</th>
<th align="left">Type</th>
<th align="left">Description</th>
</thead><tbody>
<tr>
<td valign="top"><strong>node</strong></td>

View file

@ -40,7 +40,9 @@ function renderObject (type, { skipTitle = false } = {}) {
console.log(`${type.description}\n`)
}
console.log('<table><thead>')
console.log(' <th>Field&nbsp;/&nbsp;Argument</th><th>Type</th><th>Description</th>')
console.log(' <th align="left">Field&nbsp;/&nbsp;Argument</th>')
console.log(' <th align="left">Type</th>')
console.log(' <th align="left">Description</th>')
console.log('</thead><tbody>')
type.fields.forEach(field => {
console.log(' <tr>')