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

Description for video data #159

Merged
merged 10 commits into from
Nov 22, 2024
Merged

Description for video data #159

merged 10 commits into from
Nov 22, 2024

Conversation

MrHinsh
Copy link
Member

@MrHinsh MrHinsh commented Nov 22, 2024

No description provided.

…rate concise descriptions

Introduce a new function, Get-Excerpt, to extract concise excerpts
from video descriptions. This function removes newlines, hashtags,
and URLs, and constructs a summary by concatenating sentences until
a target length is reached. This enhances the markdown files with
more readable and informative descriptions, improving user
experience when browsing video content.

📝 (AddDataValueToMarkdown.ps1): add placeholder script for future markdown enhancements

Create a new script file, AddDataValueToMarkdown.ps1, as a
placeholder for future enhancements related to adding data values
to markdown files. This sets the groundwork for upcoming features
and improvements in markdown processing.
…ssing

Introduce new PowerShell scripts to enhance markdown processing
capabilities. The HugoHelpers.ps1 script provides utilities for
managing Hugo markdown files, including parsing and updating front
matter. The OpenAI.ps1 script facilitates interaction with the OpenAI
API, enabling automated content generation and processing.

These changes aim to streamline the workflow for managing markdown
content, particularly for video resources, by automating the update
and enhancement of markdown files using structured data and AI-driven
content generation. This improves efficiency and consistency in
content management.
…r and enhance markdown processing and OpenAI integration

Refactor HugoHelpers.ps1 to use OrderedDictionary for front matter,
allowing ordered key-value pairs. Add Save-HugoMarkdown function to
persist changes. Update OpenAI.ps1 to use environment variable for
API key, enhancing flexibility. Simplify AddDataValueToMarkdown.ps1
by removing redundant Update-String function and integrating
OpenAI-generated descriptions directly. These changes improve code
readability, maintainability, and functionality, allowing for more
dynamic and efficient markdown processing and OpenAI integration.
… OpenAI

Introduce a new PowerShell script, `UpdateDescriptionWithOpenAI.ps1`,
to automate the process of updating video descriptions in markdown files.
The script iterates through video folders, retrieves video data from
`data.json`, and generates concise descriptions using OpenAI. It then
updates the markdown files with the new descriptions. This automation
enhances efficiency and ensures that video descriptions are engaging
and consistent, leveraging AI capabilities for content generation.
…xisting descriptions

♻️ (UpdateDescriptionWithOpenAI.ps1): remove unnecessary -Overwrite parameter in Update-Field function

Introduce a check to skip processing video folders that already have a description, improving efficiency by avoiding redundant API calls. The -Overwrite parameter is removed from the Update-Field function call as it is unnecessary, simplifying the code.
@nkdagility-actions-bot
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pond-042d21b03-159.westeurope.5.azurestaticapps.net

@MrHinsh MrHinsh merged commit 1442cc8 into main Nov 22, 2024
6 checks passed
@MrHinsh MrHinsh deleted the description-for-video-data branch November 22, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant