-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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.
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pond-042d21b03-159.westeurope.5.azurestaticapps.net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.