machinetranslate / machinetranslate.org

Open information and community for machine translation
https://machinetranslate.org
Creative Commons Attribution Share Alike 4.0 International
71 stars 56 forks source link

Autogenerate event pages #592

Closed tovmasharrison closed 7 months ago

tovmasharrison commented 9 months ago

Description

The events can be autogenerated by adding WMT events to wmt_events.json and the rest to events.json. I have tried to automate the most commonly added information about the events. However, specific information that is not automated can be added manually to the markdown file after generating the event.

The _events.json and _wmt_events.json files include the empty structure of available fields that can be automated by choice. I have included them for reference.

Also, I have created a list to show all the MT Summit, EAMT, and AMTA events separately at the top of the page. This closes that part in #584.

How it works:

Please let me know if you have any questions or suggestions.

Fixes #563

Checklist:

bittlingmayer commented 9 months ago

The JSON schema needs to be way more minimal.

We want to reduce the burden on people adding events.

It's fine if we harmonise a bit how events are displayed.

bittlingmayer commented 9 months ago

Having a JSON schema is a good idea.

We should just use something like https://json-schema.org/, and then we can quickly run a validator.

Instead of using ad-hoc schema format, and then still needing dozens of if-statements.

tovmasharrison commented 7 months ago

Hey @bittlingmayer,

I made quite a bit of changes.

Also, I have created a WMT Test event so we can see what it will look like. If everything is fine, I'll remove it.

Please let me know what you think.

bittlingmayer commented 7 months ago

Yes, with schema is better!

Made a few comments, but today is busy with the community meetup, will look more on the weekend.

tovmasharrison commented 7 months ago

@bittlingmayer All done.

tovmasharrison commented 7 months ago

@bittlingmayer Done

tovmasharrison commented 7 months ago

@bittlingmayer

I have added a form submission at http://127.0.0.1:4000/add_event that returns a JSON version of the inputs, which can be copied and pasted inside the events.json / wmt_events.json / calls_for_papers.json files.

I have reverted the structure for speakers, important_dates, multiday_schedule, and one_day_schedule to their previous states since their input boxes were being represented as textarea. See below.

Screen Shot 2024-02-22 at 13 53 20

Also, the WMT Test event is still included for reference. I'll remove it once everything looks good.

Let me know what you think.