diff --git a/.github/workflows/pr-preview.yaml b/.github/workflows/pr-preview.yaml index 3e262d2..face5cf 100644 --- a/.github/workflows/pr-preview.yaml +++ b/.github/workflows/pr-preview.yaml @@ -6,6 +6,11 @@ on: branches: - main +permissions: + contents: read + issues: write + pull-requests: write + # Default to bash defaults: run: @@ -15,6 +20,10 @@ jobs: # Build job for PR preview build-preview: runs-on: ubuntu-latest + permissions: + contents: read + issues: write + pull-requests: write env: HUGO_VERSION: 0.126.0 steps: @@ -54,37 +63,42 @@ jobs: retention-days: 7 - name: Comment on PR + continue-on-error: true uses: actions/github-script@v7 with: script: | - const prNumber = context.payload.pull_request.number; - const runId = context.runId; - const repo = context.repo; - - const comment = `## 🔍 Preview Build Complete - - The site has been built successfully for this PR! - - ### How to preview: - 1. Download the preview artifact from the [workflow run](https://github.com/${repo.owner}/${repo.repo}/actions/runs/${runId}) - 2. Extract the zip file - 3. Open \`index.html\` in your browser to preview the site - - ### Alternative preview methods: - - Use a local HTTP server: \`python -m http.server 8000\` or \`npx serve\` - - Or use VS Code's Live Server extension - - **Note:** The preview uses the GitHub Pages URL (\`https://eclipse-volttron.github.io/\`) as the base URL. Links will work correctly when viewing locally. - - ### Build Details: - - **PR:** #${prNumber} - - **Commit:** ${context.payload.pull_request.head.sha.substring(0, 7)} - - **Artifact:** pr-preview-${prNumber} - `; - - github.rest.issues.createComment({ - owner: repo.owner, - repo: repo.repo, - issue_number: prNumber, - body: comment - }); + try { + const prNumber = context.payload.pull_request.number; + const runId = context.runId; + const repo = context.repo; + + const comment = `## 🔍 Preview Build Complete + + The site has been built successfully for this PR! + + ### How to preview: + 1. Download the preview artifact from the [workflow run](https://github.com/${repo.owner}/${repo.repo}/actions/runs/${runId}) + 2. Extract the zip file + 3. Open \`index.html\` in your browser to preview the site + + ### Alternative preview methods: + - Use a local HTTP server: \`python -m http.server 8000\` or \`npx serve\` + - Or use VS Code's Live Server extension + + **Note:** The preview uses the GitHub Pages URL (\`https://eclipse-volttron.github.io/\`) as the base URL. Links will work correctly when viewing locally. + + ### Build Details: + - **PR:** #${prNumber} + - **Commit:** ${context.payload.pull_request.head.sha.substring(0, 7)} + - **Artifact:** pr-preview-${prNumber} + `; + + await github.rest.issues.createComment({ + owner: repo.owner, + repo: repo.repo, + issue_number: prNumber, + body: comment + }); + } catch (error) { + core.warning('Could not post PR preview comment (likely fork PR permissions): ' + error.message); + } diff --git a/assets/js/main.js b/assets/js/main.js index d1d53e7..c1f76f7 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -111,7 +111,6 @@ // Dealing with playlists // const playlist_figures = document.getElementsByClassName("PlaylistFig") - // youtube_urls {"figure_id": url that equals figure_id} diff --git a/assets/sass/custom.scss b/assets/sass/custom.scss index eb33a1e..0fa4b4f 100644 --- a/assets/sass/custom.scss +++ b/assets/sass/custom.scss @@ -452,6 +452,51 @@ $breakpoints: ( height:10vw; } +.vimeo-showcase-container { + width: 100%; + height: 800px; + max-width: 100%; + margin-bottom: 2em; + border-radius: 6px; + overflow: hidden; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); + + iframe { + width: 100%; + height: 100%; + border: 0; + display: block; + } + + @include breakpoint(mobilel) { + height: 550px; + } +} + +.sidebar-vimeo-container { + width: 100%; + height: 380px; + margin-bottom: 1.5em; + border-radius: 6px; + overflow: hidden; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); + + iframe { + width: 100%; + height: 100%; + border: 0; + display: block; + } + + @include breakpoint(narrower) { + height: 420px; + } + + @include breakpoint(mobilel) { + height: 350px; + } +} + #cta { text-align: center; padding: 3.5em 0; diff --git a/content/tags/office hours.md b/content/tags/office hours.md index ede7ab6..f9ae089 100644 --- a/content/tags/office hours.md +++ b/content/tags/office hours.md @@ -3,33 +3,18 @@ title: "OFFICE HOURS" menu: archives weight: 42 -tags: - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - - 9 - - 10 - - 11 - - 12 - --- -{{< figure class="figConfig" title="Office Hours - January 5, 2024" src="../../images/VideoImages/OfficeHourThumbnails/OH-Jan5-24.jpg" link="https://youtu.be/sV7tXz53LVE?list=TLGGAUACxCrhMjoyMTA2MjAyNA" caption="This office hours has a presentation by Ben Bartling of Slipstream talking about BACPypes3’s features and his use of its scripting capabilities. This discussion feeds directly into the driver working...">}} -{{< figure class="figConfig" title="Office Hours - November 10, 2023" src="../../images/VideoImages/OfficeHourThumbnails/OH-Nov10-23.jpg" link="https://youtu.be/DqOuq50AjAI?list=TLGGB5HeUhn2LCwyMTA2MjAyNA" caption="This office hours has a demonstration of the 2030.5 agent as well as a discussion of the upcoming VOLTTRON 9.0 release. This is an update to the “monolithic” version of the platform incorporating...">}} -{{< figure class="figConfig" title="Office Hours - October 27, 2023" src="../../images/VideoImages/OfficeHourThumbnails/OH-Oct27-23.jpg" link="https://youtu.be/P2-T4iomrkQ?list=TLGGxyx1BwejocUyMTA2MjAyNA" caption="This session saw a demonstration of a Home Assistant driver for sharing data between this home automation system and the VOLTTRON platform. ILC has been configured to utilize this driver as an...">}} - -{{< figure class="figConfig" title="Office Hours - October 13, 2023" src="../../images/VideoImages/OfficeHourThumbnails/OH-Oct13-23.jpg" link="https://youtu.be/UXKyckwkJo0?list=TLGGH2LXlrWvsRYyMTA2MjAyNA" caption="This open topic session led to a discussion on visualizing devices for a lighting application as well as adding and removing configurations through the VOLTTRON web interface.">}} -{{< figure class="figConfig" title="Office Hours - September 29, 2023" src="../../images/VideoImages/OfficeHourThumbnails/OH-Sep29-23.jpg" link="https://youtu.be/l7iGyECLVdo?list=TLGGJkKfDlcgBdEyMTA2MjAyNA" caption="This session saw a presentation and discussion of the 2030.5 driver that is ready for testing by the community.">}} -{{< figure class="figConfig" title="Office Hours - September 1, 2023" src="../../images/VideoImages/OfficeHourThumbnails/OH-Sep01-23.jpg" link="https://youtu.be/c52R6OX_2rQ?list=TLGGV3CnC8CTXz8yMTA2MjAyNA" caption="The new core publish/subscribe by tag service is presented at this session and is discussed in the context of the the overall interoperability effort.">}} +

Explore Eclipse VOLTTRON™ Office Hours recordings hosted on Vimeo.

-{{< figure class="figConfig" title="Office Hours - June 28, 2023" src="../../images/VideoImages/OfficeHourThumbnails/OH-Jun28-23.jpg" link="https://youtu.be/D_R3i3Izv9o?list=TLGGO5JDbQV-VbsyMTA2MjAyNA" caption="An open-topic Office Hours session that covered questions around the Docker image, debugging a user’s driver setup, Linux distros, and more.">}} -{{< figure class="figConfig" title="Office Hours - June 9, 2023" src="../../images/VideoImages/OfficeHourThumbnails/OH-Jun09-23.jpg" link="https://youtu.be/d2HMYAtJvIs?list=TLGGaN02kwYQ6YoyMTA2MjAyNA" caption="An Office Hours video that followed up on a community request to discuss code spaces and visual studio code integration with Github.">}} -{{< figure class="figConfig" title="Office Hours - May 26, 2023" src="../../images/VideoImages/OfficeHourThumbnails/OH-May26-23.jpg" link="https://youtu.be/sJ1tzvBjbGE?list=TLGGsKr4i3qtAXwyMTA2MjAyNA" caption="Today’s office hours was an open topic forum where upcoming releases and release process was discussed among other topics.">}} +
+ +
-{{< figure class="figConfig" title="Office Hours - May 12, 2023" src="../../images/VideoImages/OfficeHourThumbnails/OH-May12-23.jpg" link="https://youtu.be/qTa-4VBKYPY?list=TLGGzk06PqfzdX0yMTA2MjAyNA" caption="In this office hours session, there is a discussion of the next code drop of the modular codebase. Open topic discussion touches on the current production version (8.2), the github workflow for...">}} +

You can also view the full collection directly on Vimeo.

diff --git a/content/tags/playlists.md b/content/tags/playlists.md index c8aabfb..cc8bb0b 100644 --- a/content/tags/playlists.md +++ b/content/tags/playlists.md @@ -5,29 +5,14 @@ weight: 42 --- -
-
- - - -

Eclipse VOLTTRON™ Intro

-
-
- - - -

Eclipse VOLTTRON™ Demos

-
-
- - - -

Eclipse VOLTTRON™ Community Meetings

-
-
- - - -

Office Hours

-
+

Explore Eclipse VOLTTRON™ videos, tutorials, and office hours recordings hosted on Vimeo.

+ +
+
+ +

You can also view the full collection directly on Vimeo.

diff --git a/layouts/partials/sidebar/AboutSidebar.html b/layouts/partials/sidebar/AboutSidebar.html index 8ceb14a..3102930 100644 --- a/layouts/partials/sidebar/AboutSidebar.html +++ b/layouts/partials/sidebar/AboutSidebar.html @@ -21,18 +21,17 @@

Related Materials

Recent Videos

-

Check out the playlist below for the newest information on Eclipse VOLTTRON™

+

Check out our videos on Vimeo for the newest information on Eclipse VOLTTRON™

-
- - - -
+ - - - \ No newline at end of file diff --git a/layouts/partials/sidebar/DevelopersLeft.html b/layouts/partials/sidebar/DevelopersLeft.html index 4487c97..0e68bc4 100644 --- a/layouts/partials/sidebar/DevelopersLeft.html +++ b/layouts/partials/sidebar/DevelopersLeft.html @@ -1,40 +1,14 @@
-

{{ T "sidebar_heading_1" }}

- -

Tutorial Videos

-

For more information, check out the latest Tutorial Videos below! -

-
- - - -
+

Tutorial & Office Hours Videos

+

For more information, check out our videos and recordings on Vimeo!

+
- - - - -
-
-
- -

- - - -
\ No newline at end of file