Skip to content

Commit

Permalink
Merge #18, #21, #23, #25 and #29 into master (#30)
Browse files Browse the repository at this point in the history
* update package-lock

* Fix issue with empty emails (#18)

Co-authored-by: fill-the-fill <[email protected]>

* Test commit to Staging

* Resolve previous commit to staging

* replace authors text and size (#21)

Co-authored-by: fill-the-fill <[email protected]>

* Rewrites to fix dead links (#23)

* Merge #18 into master (#19)

* update package-lock

* Fix issue with empty emails (#18)

Co-authored-by: fill-the-fill <[email protected]>

---------

Co-authored-by: fill-the-fill <[email protected]>

* Merge #18, #21 into master (#22)

* update package-lock

* Fix issue with empty emails (#18)

Co-authored-by: fill-the-fill <[email protected]>

* Test commit to Staging

* Resolve previous commit to staging

* replace authors text and size (#21)

Co-authored-by: fill-the-fill <[email protected]>

---------

Co-authored-by: fill-the-fill <[email protected]>

* fixed redirects for old routes

* fixed cip import issue

* removed console log

---------

Co-authored-by: Fill <[email protected]>
Co-authored-by: fill-the-fill <[email protected]>
Co-authored-by: Aldo Dumitrescu <[email protected]>

* Redirects (#25)

* Merge #18 into master (#19)

* update package-lock

* Fix issue with empty emails (#18)

Co-authored-by: fill-the-fill <[email protected]>

---------

Co-authored-by: fill-the-fill <[email protected]>

* Merge #18, #21 into master (#22)

* update package-lock

* Fix issue with empty emails (#18)

Co-authored-by: fill-the-fill <[email protected]>

* Test commit to Staging

* Resolve previous commit to staging

* replace authors text and size (#21)

Co-authored-by: fill-the-fill <[email protected]>

---------

Co-authored-by: fill-the-fill <[email protected]>

* fixed redirects for old routes

* fixed cip import issue

* removed console log

* added netlify redirects

* added pattern matching to redirect

* added _redirects file

* moved _redirects to public folder

* redirect test

* removed test redirect

* splat

---------

Co-authored-by: Fill <[email protected]>
Co-authored-by: fill-the-fill <[email protected]>
Co-authored-by: Aldo Dumitrescu <[email protected]>

* remove duplicate authors (#29)

Co-authored-by: fill-the-fill <[email protected]>

---------

Co-authored-by: fill-the-fill <[email protected]>
Co-authored-by: Aldo Dumitrescu <[email protected]>
Co-authored-by: Aldo Dumitrescu <[email protected]>
  • Loading branch information
4 people authored May 20, 2024
1 parent e6aec72 commit 24707d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/createAuthorsArray.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,18 @@ function extractAuthors(filePath) {
}

const markdownFiles = getMarkdownFiles('./content');
let authors = [];
let authors = new Map();

markdownFiles.forEach((file) => {
const newAuthors = extractAuthors(file);
newAuthors.forEach((newAuthor) => {
if (!authors.find(author => author.name === newAuthor.name && author.email === newAuthor.email)) {
authors.push(newAuthor);
if (!authors.has(newAuthor.name)) {
authors.set(newAuthor.name, newAuthor);
}
});
});

// Convert Map back to array
authors = Array.from(authors.values());

fs.writeFileSync('./data/authors.json', JSON.stringify(authors, null, 2));

0 comments on commit 24707d0

Please sign in to comment.