Commit 31158aa
authored
Social cards (#78)
* Add social card generator scripts and assets
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.
* Center command section and add thor.png image
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.
* Add automated PNG generation for 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.
* Refactor social card output paths and update theme
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.
* HELL YEAH
* Add tag abbreviation expansion rules
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.
* Update formatting rules for pipe characters in examples
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.
* Revise social card AI formatting rules and options
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.
* Add HTML social card templates for dbatools commands
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.1 parent 47db73d commit 31158aa
1,394 files changed
Lines changed: 67798 additions & 17 deletions
File tree
- social
- card-html
- static/images/social-cards
- static/images/social
- themes/dbatools2025/layouts/_default
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
0 commit comments