From 8f43d1aecfe6797ad4f4c8d55d9751d4a04370f2 Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 21:25:58 +0200
Subject: [PATCH 01/11] Create index.html
---
index.html | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 index.html
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..b6dd642
--- /dev/null
+++ b/index.html
@@ -0,0 +1,31 @@
+
+
+
+
+
+ Tech Talks Digest
+
+
+
+
+
+ Tech Talks Digest
+ List of finished talks.
+
+
+
+
+ Title |
+ Labels |
+
+
+
+
+
+
+
+
+
From 073ef9db2dd21ea8bcd85cac74279d26af6d6ecf Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 21:28:03 +0200
Subject: [PATCH 02/11] Create _example.md
---
talks/_example.md | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 talks/_example.md
diff --git a/talks/_example.md b/talks/_example.md
new file mode 100644
index 0000000..c53b136
--- /dev/null
+++ b/talks/_example.md
@@ -0,0 +1,28 @@
+# Tech Talk Title
+
+**Speaker(s):**
+**Video URL:**
+
+## Timestamps
+
+- `00:00` -
+- `00:00` -
+
+## Official Abstract/Summary
+
+>
+
+## Key Takeaways
+
+-
+-
+
+### Questions/Discussion Points**
+
+-
+-
+
+## Relevant Links/Resources
+
+-
+-
From 1317882b05cb3ece486bf2aa71969ea37caaba3a Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 21:30:53 +0200
Subject: [PATCH 03/11] Update pull_request_template.md
---
.github/pull_request_template.md | 31 ++-----------------------------
1 file changed, 2 insertions(+), 29 deletions(-)
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index f949459..e433dd7 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,31 +1,4 @@
-# Tech Talk Title
+Until ready; mark as Draft.
-Mention any related issues here, using the syntax `#issue_number`. For example:
+Mention related issue here, using the syntax `#issue_number`. For example:
- This PR closes #123.
-
-**Speaker(s):**
-**Video URL:**
-
-## Timestamps
-
-- `00:00` -
-- `00:00` -
-
-## Official Abstract/Summary
-
->
-
-## Key Takeaways
-
--
--
-
-### Questions/Discussion Points**
-
--
--
-
-## Relevant Links/Resources
-
--
--
From 69f3212771f8f2cdba85fff4cc309067ee4b0c86 Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 21:52:44 +0200
Subject: [PATCH 04/11] Update _example.md
---
talks/_example.md | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/talks/_example.md b/talks/_example.md
index c53b136..56f8d11 100644
--- a/talks/_example.md
+++ b/talks/_example.md
@@ -1,4 +1,9 @@
-# Tech Talk Title
+---
+title: "Innovative AI Technologies"
+labels: "AI, Innovation"
+---
+
+# Title
**Speaker(s):**
**Video URL:**
From 3ba4cbd7d39a5b50adb69490ba344461c48355c6 Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 22:17:25 +0200
Subject: [PATCH 05/11] Update index.html
---
index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.html b/index.html
index b6dd642..da97f95 100644
--- a/index.html
+++ b/index.html
@@ -23,7 +23,7 @@ Tech Talks Digest
-
+
From 3fd1d776888191b1fd1b96f8a17e8ca394f75271 Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 22:19:22 +0200
Subject: [PATCH 06/11] Create main.py
---
main.py | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 main.py
diff --git a/main.py b/main.py
new file mode 100644
index 0000000..84c9de1
--- /dev/null
+++ b/main.py
@@ -0,0 +1,27 @@
+import frontmatter
+import os
+
+def generate_table_rows(talks_directory):
+ rows = []
+ for filename in os.listdir(talks_directory):
+ if filename.endswith(".md") and not filename.startswith("_"):
+ with open(os.path.join(talks_directory, filename), 'r') as f:
+ post = frontmatter.load(f)
+ title = post.metadata.get('title', 'No Title')
+ year = post.metadata.get('year', '')
+ labels = post.metadata.get('labels', '')
+ rows.append(f'{title} | {labels} |
')
+ return '\n'.join(rows)
+
+def update_html_with_table_rows(table_rows):
+ html_file_path = 'index.html'
+ with open(html_file_path, 'r', encoding='utf-8') as file:
+ html_content = file.read()
+
+ new_html_content = html_content.replace('', table_rows)
+ with open(html_file_path, 'w', encoding='utf-8') as file:
+ file.write(new_html_content)
+
+if __name__ == "__main__":
+ table_rows = generate_table_rows('./talks')
+ update_html_with_table_rows(table_rows)
From 766bea321631bfdc11af7f9db3f835b09768615c Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 22:21:01 +0200
Subject: [PATCH 07/11] Update README.md
---
README.md | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 07ecc01..55583c0 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,10 @@
-# tech-talks-digest
+# Tech Talks Digest
+
+## About
+
A curated collection of insights, summaries, and key takeaways from various tech talks and conferences. Includes detailed timestamps for quick reference and video links for deeper exploration.
+
+## Setup
+
+1. ...
+2. ...
From 2a9a83ba74da9fc55a09a652c8fd132c1a73a787 Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 22:22:07 +0200
Subject: [PATCH 08/11] Create script.js
---
script.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 script.js
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..cd0ea8d
--- /dev/null
+++ b/script.js
@@ -0,0 +1,13 @@
+document.getElementById('labelFilter').addEventListener('change', function() {
+ const selectedLabel = this.value.toLowerCase();
+ const talks = document.querySelectorAll('tr');
+
+ talks.forEach(talk => {
+ const labels = talk.dataset.labels.toLowerCase();
+ if (selectedLabel === 'all' || labels.includes(selectedLabel)) {
+ talk.style.display = '';
+ } else {
+ talk.style.display = 'none';
+ }
+ });
+});
From 86f0f65044e184c66fd856e9ef0809683d2cdac3 Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 22:27:15 +0200
Subject: [PATCH 09/11] Update _example.md
---
talks/_example.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/talks/_example.md b/talks/_example.md
index 56f8d11..959523a 100644
--- a/talks/_example.md
+++ b/talks/_example.md
@@ -1,6 +1,7 @@
---
-title: "Innovative AI Technologies"
-labels: "AI, Innovation"
+title: "Example Title"
+labels: "topic1, topic2"
+year: 1989
---
# Title
From 1652d987300d73fc4526fa2f3659a6ef2c9fdff3 Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 22:53:37 +0200
Subject: [PATCH 10/11] Create .github/workflows/update-gh-pages.yaml
---
.github/workflows/update-gh-pages.yaml | 34 ++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 .github/workflows/update-gh-pages.yaml
diff --git a/.github/workflows/update-gh-pages.yaml b/.github/workflows/update-gh-pages.yaml
new file mode 100644
index 0000000..b22747b
--- /dev/null
+++ b/.github/workflows/update-gh-pages.yaml
@@ -0,0 +1,34 @@
+name: Update Talks Information and Deploy to GitHub Pages
+
+on:
+ push:
+ branches:
+ - main
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v2
+
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: '3.x'
+
+ - name: Install Dependencies
+ run: |
+ pip install -r requirements.txt
+
+ - name: Run Python Script
+ run: python main.py
+
+ - name: Commit and Push Changes
+ run: |
+ git config --global user.name 'github-actions[bot]'
+ git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
+ git add index.html
+ git commit -m "Update index.html" -a || echo "No changes to commit"
+ git push
From a911208491b39f484f9e796ae4fbec6fafd9d607 Mon Sep 17 00:00:00 2001
From: Angelica Gardner <23157778+angelicagardner@users.noreply.github.com>
Date: Thu, 11 Apr 2024 22:55:18 +0200
Subject: [PATCH 11/11] Create requirements.txt
---
requirements.txt | 1 +
1 file changed, 1 insertion(+)
create mode 100644 requirements.txt
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..dde5f72
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1 @@
+frontmatter