Write a script to convert all events and news items to mdx files #1
Open
opened 2 years ago by n3parikh
·
49 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
assigned to @j285he
mentioned in merge request !1
added 1 commit
842a4255
- Delete afterhours.event.mdxCompare with previous version
added 1 commit
1800a22f
- Delete parseTime.jsCompare with previous version
Instead of making a new copy of
events.xml
, make the required changes to the string read from file.Instead of making a new copy of
news.xml
, make the required changes to the string read from file.Skip over comment nodes completely
Determine the current term from the month
Can replace this with a for each loop
Can delete this.
changed this line in version 4 of the diff
changed this line in version 4 of the diff
changed this line in version 4 of the diff
changed this line in version 4 of the diff
changed this line in version 4 of the diff
changed this line in version 4 of the diff
added 1 commit
8d6da95e
- Misc. fixesCompare with previous version
added 2 commits
Compare with previous version
added 1 commit
3c902505
- FormattingCompare with previous version
added 1 commit
cb4a447a
- Delete events.xmlCompare with previous version
added 1 commit
cb62b1d9
- Delete news.xmlCompare with previous version
resolved all threads
requested review from @n3parikh and removed review request for @a3thakra
added 1 commit
e8fc8407
- Minor date fixesCompare with previous version
changed the description
What is this for?
Does this comment apply to this code, or is it for the deleted code?
I have 2 questions, but otherwise, this looks to me. Great work!
Sometimes in
events.mdx
the time attribute contains times like "7pm" or "7 PM". These time formats can't be converted to date objects by simply writingnew Date(`${dateStr} ${timeStr}`)
so had to convert them all to a proper time format. Is there an easier way to do this?Yeah you're right, it's more for the deleted code. I guess it still applies but I think the code has been simplified enough that it's pretty intuitive. I'll fix this.
changed this line in version 10 of the diff
added 1 commit
199adf6d
- Remove commentCompare with previous version
resolved all threads
added 1 commit
82561cb1
- Change .mdx files to .md filesCompare with previous version
added 1 commit
8f7cd053
- Remove commasCompare with previous version
changed the description
added 15 commits
master
cd40e3af
- Merge branch 'master' into mdx-conversionf323bb34
- Change metadata formatCompare with previous version
added 1 commit
ad00cb81
- Add years to event/news file structure resultCompare with previous version
added 1 commit
86440c96
- Various fixesCompare with previous version
added 2 commits
4b11379d
- Replace <tt> with <code>5a04c39d
- Merge branch 'mdx-conversion' of git.uwaterloo.ca:csc/old-website into mdx-conversionCompare with previous version
added 1 commit
11f588e1
- Use full date strings in newsCompare with previous version
Could we touch the
events.xml
file and delete <redacted> ? It creates an md event file that does not work.added 1 commit
1d2e9122
- Add script to convert tech talksCompare with previous version
added 1 commit
0a771f56
- Only output large thumbnail if it's availableCompare with previous version
added 1 commit
8d970014
- Add missing quotesCompare with previous version
added 1 commit
289e0f8c
- Fix presentors arrayCompare with previous version
added 1 commit
3c2b8e00
- Add retries if resource doesn't existCompare with previous version
added 4 commits
master
6b301acc
- Merge remote-tracking branch 'origin/master' into mdx-conversionCompare with previous version
added 1 commit
78b1134a
- Make sure that news entries are not overwrittenCompare with previous version