diff --git a/config/authors.mjs b/config/authors.mjs index 7d168a61cb4..4708619dd5f 100644 --- a/config/authors.mjs +++ b/config/authors.mjs @@ -1,6 +1,48 @@ +/* + * A list of (documentation) authors. + * The ID is the (future v3) FreeSewing user ID (zero for now) + * The name is what we'll use as display name + */ export const authors = { - joostdecock: { - id: 1, - name: 'Joost De Cock', - }, + joostdecock: { id: 0, name: 'Joost De Cock' }, + benjamesben: { id: 0, name: 'Benjamin' }, + nikhil: { id: 0, name: 'nikhil' }, + jackseye: { id: 0, name: 'jackseye' }, + 'Annie Kao': { id: 0, name: 'Annie Kao' }, + Bart: { id: 0, name: 'Bart' }, + 'Enoch Riese': { id: 0, name: 'Enoch Riese' }, + Zee: { id: 0, name: 'Zee' }, + 'James Bradbury': { id: 0, name: 'James Bradbury' }, + jgfichte: { id: 0, name: 'jgfichte' }, + Tríona: { id: 0, name: 'Tríona' }, + starfetch: { id: 0, name: 'starfetch' }, + bobgeorgethe3rd: { id: 0, name: 'starfetch' }, + 'Glenn Matthews': { id: 0, name: 'Glenn Matthews' }, + 'Raphael Sizemore': { id: 0, name: 'Raphael Sizemore' }, + 'Joe Schofield': { id: 0, name: 'Joe Schofield' }, + mergerg: { id: 0, name: 'starfetch' }, + woutervdub: { id: 0, name: 'Wouter van Wageningen' }, + 'anna-puk': { id: 0, name: 'Anna Puk' }, + 'Nick Dower': { id: 0, name: 'Nick Dower' }, + 'Sanne Kalkman': { id: 0, name: 'Sanne Kalkman' }, + 'Darigov Research': { id: 0, name: 'Darigov Research' }, + 'Jeroen Hoek': { id: 0, name: 'Jeroen Hoek' }, + Natalia: { id: 0, name: 'Natalia Sayang' }, + chri5b: { id: 0, name: 'chri5b' }, + tangerineshark: { id: 0, name: 'tangerineshark' }, + 'MA-TATAS': { id: 0, name: 'MA-TATAS' }, +} + +/* + * Maps git commiter name to author for those cases where the + * name in the authors table is different + */ +export const gitToAuthor = { + 'Joost De Cock': 'joostdecock', + 'Benjamin F': 'benjamesben', + SeaZeeZee: 'Zee', + 'Wouter van Wageningen': 'woutervdub', + 'bobgeorgethe3rd@googlemail.com': 'bobgeorgethe3rd', + '70777269+tangerineshark@users.noreply.github.com': 'tangerineshark', + 'thijs.assies@gmail.com': 'MA-TATAS', } diff --git a/sites/shared/components/wrappers/mdx.mjs b/sites/shared/components/wrappers/mdx.mjs index 7b63dbd3759..8a9141d6d60 100644 --- a/sites/shared/components/wrappers/mdx.mjs +++ b/sites/shared/components/wrappers/mdx.mjs @@ -2,6 +2,7 @@ import { components as baseComponents } from 'shared/components/mdx/index.mjs' // List of authors import { authors as allAuthors } from 'config/authors.mjs' +import { docUpdates } from 'site/prebuild/doc-updates.mjs' // FreeSewing config import { freeSewingConfig } from 'shared/config/freesewing.config.mjs' // Components @@ -55,7 +56,7 @@ const Ul = ({ children }) => ( ) const MetaData = ({ authors = [], maintainers = [], updated = '20220825', locale, slug, t }) => ( -