Skip to content

Commit

Permalink
Autogenerate event pages (#592)
Browse files Browse the repository at this point in the history
* Generate events

---------

Co-authored-by: Tovmas <tharrison748@gmail.com>
Co-authored-by: Tovmas <harrisontovmas@gmail.com>
Co-authored-by: Adam Bittlingmayer <bittlingmayer@users.noreply.github.com>
  • Loading branch information
4 people authored Mar 3, 2024
1 parent 02dcf4d commit e48ab07
Show file tree
Hide file tree
Showing 52 changed files with 2,411 additions and 422 deletions.
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
}
130 changes: 130 additions & 0 deletions _data/_events.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
[
{
"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'"
},
"organizer": {
"type": "Association/Organization/etc.",
"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": [
"",
"",
"",
""
]
}
]
}
]
184 changes: 184 additions & 0 deletions _data/_events_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
{
"$schema":"http://json-schema.org/draft-07/schema#",
"$id":"https://machinetranslate.org/events-schema",
"title":"Events",
"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":{
"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"
},
"speakers":{
"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

0 comments on commit e48ab07

Please sign in to comment.