-
Notifications
You must be signed in to change notification settings - Fork 0
How to add to the database
You can add any X-Men or spinoff comic that is contained within a collection. Comics outside of collections are not supported.
There are three files in the database folder:
- Collections
- Comics
- Series
All comics are part of a series, like Uncanny X-Men
and all series have volumes like Uncanny X-Men Volume 1
. All comics are also part of a collection like X-Men Epic Collection: Children of the Atom
To add a new comic
-
Find where to add it in the collections file. Can be anywhere but will usually be where the roughly ordered comment is
* Roughly ordered for flow of crossovers until here.
-
Customise the name, date and comics. Comic IDs are a concatenation of series name, volume and issue number. e.g. UncannyXMenVol31 is Uncanny X-Men volume 3 issue 1
-
Now that you have defined which comics happen when in the reading order, and which collection they were published in, it’s time to add the comics themselves
-
The comics.ts file is ordered alphabetically by series and volume so find where you want to add to. Assuming you are adding a new series, copy one of the blocks e.g.
https://github.com/SubJunk/TimelineTools/blob/master/src/database/comics.ts#L93
-
Customise the name and the list of comics and dates. The source of truth for our dates is marvel.com
-
Now we have the comics within the collection we just need the series to exist if it does not already. So just copy a line in
series.ts
and add your new onehttps://github.com/SubJunk/TimelineTools/blob/master/src/database/series.ts#L108
-
Each line in that file can contain all volumes in that series. A good example is at
https://github.com/SubJunk/TimelineTools/blob/master/src/database/series.ts#L127
which is one series with three volumes. -
Add images