Skip to content

Social cards#78

Merged
potatoqualitee merged 9 commits intohtmlfrom
social
Jan 2, 2026
Merged

Social cards#78
potatoqualitee merged 9 commits intohtmlfrom
social

Conversation

@potatoqualitee
Copy link
Copy Markdown
Member

No description provided.

Introduces PowerShell scripts and HTML templates for generating social cards, along with related documentation and image assets. Updates package.json to include puppeteer as a dependency and modifies the site layout to support the new social card features.
Updated CSS to vertically center the command section in both the PowerShell and HTML social card templates. Added thor.png image to the static images and root social directory for use in social cards.
Introduces PNG generation from HTML social cards using Puppeteer via a new screenshot-card.js script. Updates New-DbaSocialCardAI.ps1 to call the script after HTML creation and adds a sample generated PNG for Get-DbaDatabase.
Separated HTML and PNG output directories in New-DbaSocialCardAI.ps1, updating parameters and file structure accordingly. Adjusted CSS for improved meta box appearance. Updated Hugo theme to reference new social card image paths. Added a test PNG file for direct output validation.
Introduced a new rule to always expand common tag abbreviations to their full forms in the social card HTML output. This improves clarity and consistency for users viewing the generated cards.
Added explicit instructions to use the .pipe class for pipe (|) characters in example code, ensuring proper spacing and styling. Updated the critical formatting rules and HTML template to reflect this change, and clarified example formatting for piped commands.
Expanded and clarified critical formatting rules for social card HTML generation, including detailed example selection, pipe vs line continuation, format decision tree, overflow prevention, and tag abbreviation expansion. Added parameters for AI tool and model selection, and updated example box width. These changes improve consistency and accuracy in card rendering and AI prompt flexibility.
Introduces a large set of HTML files under social/card-html, each corresponding to a dbatools command for social card generation. Also updates New-DbaSocialCardAI.ps1 to support these new templates, enabling automated social card creation for a wide range of dbatools functions.
@potatoqualitee potatoqualitee merged commit 31158aa into html Jan 2, 2026
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