Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autogenerate event pages #592

Merged
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
5d29948
Generate events
Jan 2, 2024
820e49d
Create dummy structure that needs to be used for generating events
Jan 2, 2024
b7edbfb
Create dummy structure that needs to be used for generating WMT events
Jan 2, 2024
081adc2
Add 2024 events
Jan 2, 2024
f66dc26
Add 2024 WMT events
Jan 2, 2024
0729fca
Create layout for events/WMT events
Jan 2, 2024
354de3a
Add events that have calls for papers
Jan 2, 2024
e0a4413
List MT Summit, AMTA and EAMT events
Jan 2, 2024
8520afa
Autogenerate 2024 events
Jan 2, 2024
65ae271
Unbold event
Jan 2, 2024
6de69d5
Remove manually added 2024 events and autogenerate them
Jan 2, 2024
6031162
Remove include
Jan 2, 2024
e4bd396
Remove unecessary import
Jan 2, 2024
5f2e8b1
Remove duplicate entries
Jan 2, 2024
e971e60
Add validation for events
Feb 7, 2024
7367830
Add schema
Feb 7, 2024
adcb22a
Update theme version
Feb 7, 2024
46f043b
Update excludes
Feb 7, 2024
5613961
Auto-generate events
Feb 7, 2024
fc18ef6
Remove unecessary imports
Feb 7, 2024
690f34d
Add WMT24 manually
Feb 7, 2024
e2186c2
Remove manually added WMT24 event
Feb 8, 2024
dff45af
Fix links
Feb 8, 2024
78f80d0
Fix links
Feb 8, 2024
67465cc
Remove MT Summit section
Feb 8, 2024
1410fdf
Fix loop
Feb 8, 2024
9268fca
Change structure
Feb 10, 2024
ba71a3c
Change naming convention
Feb 10, 2024
530a476
Change naming convention
Feb 10, 2024
270647c
Change slugs
Feb 10, 2024
33a27ab
Give style to the table
Feb 10, 2024
a58f749
Change structure
Feb 10, 2024
0784f31
Add style for table
Feb 10, 2024
d36b369
Update requirements
Feb 10, 2024
305a6ad
Fix Unicode characters handling
Feb 13, 2024
250f67e
Fix Unicode handling and autogenerate opening paragraphs
Feb 13, 2024
7646853
Change structure
Feb 13, 2024
2491360
Fix link
Feb 13, 2024
8783983
Generate event attendance mode
Feb 15, 2024
aca9aa8
Add event
Feb 15, 2024
375a674
Change structure
Feb 15, 2024
3bc7adb
Change to single quotes
Feb 15, 2024
6b0c322
Update _calls_for_papers.json
bittlingmayer Feb 15, 2024
073e6b4
Update
Feb 15, 2024
c6b5bc6
Add form for creating events
Feb 22, 2024
aed274b
Change structure to previous state
Feb 22, 2024
594d94e
Change structure to previous state
Feb 22, 2024
0be7a7c
Update AMTA 2024
Feb 22, 2024
39f1039
Exclude jsonforms
Feb 22, 2024
d294dd7
Exclude .js files from html proofer
Feb 23, 2024
3a46e74
Remove unnecessary folders
Feb 23, 2024
577503a
Remove form and change naming convention
Mar 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ vendor
/venv
.pytest_cache
__pycache__
.github/tests/.pytest_cache
.github/tests/.pytest_cache
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ description: Open information and community for machine translation, to make
# Pages permalink
permalink: pretty


# TODO: remove this by moving them all under a content/ directory
defaults:
- scope:
Expand Down
8 changes: 8 additions & 0 deletions _data/_calls_for_papers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

[ "Only Calls For Papers for events not listed in events.json (non-machine translation events) should be added here, e.g. ACL. For events we cover, there are properties in events.json.",
{
"name": "Name of the event",
"callsForPapersDeadline": "The deadline",
"url": "The URL to the event"
}
]
19 changes: 19 additions & 0 deletions _data/_calls_for_papers_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema":"http://json-schema.org/draft-07/schema#",
"$id":"https://machinetranslate.org/events-schema",
"Title": "Calls For Papers",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"calls_for_papers_deadline": {
"type": "string"
}
},
"required": ["name"],
"additionalItems": false,
"additionalProperties": false
}
131 changes: 131 additions & 0 deletions _data/_events.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
[
{
"name": "Name of the event",
"id": "The slug for the event: Don't provide 'id' if a dedicated page doesn't need to be created for the event",
"description": "Description of the event",
"calls_for_papers_deadline": "Date format: yyyy-mm-dd, If the event has a calls For Papers",
"start_date": "Date format: yyyy-mm-dd",
"end_date": "Date format: yyyy-mm-dd",
"more_paragraphs": [
"About the event",
"About the event",
"About the event"
],
"location": {
"online": "true: if the event is online. Default: false",
"location": "Location of the event. If hybrid, add online at the end. For example, 'Banghok, Thailand and online'",
"url": "URL for the location where the event will happen"
},
"organizer": {
"type": "Association/Organization/etc.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this.

"name": "Name of the organization/association",
"url": "URL about the organizer"
},
"links": [
"Any additional links should be added here like the example below",
"link1",
"link2",
"link3"
],
"important_dates": [
{
"name": "",
"date": ""
},
{
"name": "",
"date": ""
},
{
"name": "",
"date": ""
}
],
"speakers": [
{
"type": "Type of the speaker: Panellist/Invited/Organizer, etc.",
"about": [
"Information about each speaker: Name and Institution",
"",
"",
""
]
},
{
"type": "Type of the speaker: Panellist/Invited/Organizer, etc.",
"about": [
"Information about each speaker: Name and Institution",
"",
"",
""
]
}
],
"workshops": [
{
"name": "",
"description": ""
}
],
"shared_tasks": {
"name": "url",
"name_2": "url",
"name_3": "url",
"name_4": "url"
},
"multiday_schedule": [
"Only given if the schedule is for more than one day",
[
{
"start_date": "",
"title": ""
},
{
"start_date": "",
"title": ""
}
],
[
{
"start_date": "",
"title": ""
},
{
"start_date": "",
"title": ""
}
]
],
"one_day_schedule":[
"Only given if the schedule is for one day only",
{
"start_time": "",
"title": ""
},
{
"start_time": "",
"title": ""
}
],
"calls_for_papers": [
{
"title": "",
"topics": [
"",
"",
"",
""
]
},
{
"title": "",
"topics": [
"",
"",
"",
""
]
}
]
}
]
187 changes: 187 additions & 0 deletions _data/_events_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
{
"$schema":"http://json-schema.org/draft-07/schema#",
"$id":"https://machinetranslate.org/events-schema",
"title":"Events",
tovmasharrison marked this conversation as resolved.
Show resolved Hide resolved
"properties":{
"name":{
"type":"string"
},
"id":{
"type":"string"
},
"description":{
"type":"string"
},
"calls_for_papers_deadline":{
"type":"string"
},
"start_date":{
"type":"string"
},
"end_date":{
"type":"string"
},
"more_paragraphs":{
"type":"array",
"items":{
"type":"string"
},
"minItems":1
},
"location":{
"type":"object",
"properties":{
"url":{
"type":"string"
},
"online":{
"type":"boolean"
},
"location": {
"type":"string"
}
},
"minItems":1
},
"organizer":{
"type":"object",
"properties":{
"type":{
"type":"string"
},
"name":{
"type":"string"
},
"url":{
"type":"string"
}
},
"minItems":1
},
"links":{
"type":"array",
"items":{
"type":"string"
},
"minItems":1
},
"important_dates":{
"type":"array",
"items":{
"type":"object",
"properties": {
"name": {
"type": "string"
},
"date":{
"type": "string",
"format": "date"
}
}
},
"minItems":1
},
"speakers":{
"type":"array",
"items":{
"type":"object",
"properties":{
"type":{
"type":"string"
},
"about":{
"type":"array",
"items":{
"type":"string"
}
}
}
},
"minItems":1
},
"workshops":{
"type":"array",
"items":{
"type":"object",
"properties":{
"name":{
"type":"string"
},
"description":{
"type":"string"
}
}
},
"minItems":1
},
"shared_tasks":{
"type":"array",
"items":{
"type":"object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"minItems":1
},
"multiday_schedule":{
"type":"array",
"items":{
"type":"array",
"properties":{
"start_time":{
"type": "string"
},
"title": {
"type": "string"
}
}
},
"minItems":1
},
"one_day_schedule":{
"type":"array",
"items":{
"type":"object",
"properties":{
"start_time":{
"type":"string"
},
"title":{
"type":"string"
}
}
},
"minItems":1
},
"calls_for_papers":{
"type":"array",
"items":{
"type":"object",
"properties":{
"title":{
"type":"string"
},
"topics":{
"type":"array",
"items":{
"type":"string"
}
}
}
},
"minItems":1
}
},
"required":[
"name",
"start_date"
],
"additionalItems":false,
"additionalProperties":false
}
Loading
Loading