forked from withastro/starlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: refactor social links configuration reference (withastro#869)
* docs: refactor social links configuration reference * docs: update supported link icons wording Co-authored-by: Chris Swithinbank <[email protected]> * chore: add changes from withastro#881 * chore: fix eof newline --------- Co-authored-by: Chris Swithinbank <[email protected]>
- Loading branch information
Showing
4 changed files
with
39 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
import { socialLinks } from '../../../packages/starlight/schemas/social'; | ||
const socials = [...socialLinks].sort((a, b) => a.localeCompare(b, 'en')); | ||
--- | ||
|
||
<code>{`Partial<Record<${socials.map((social) => `'${social}'`).join(' | ')}, string>>`}</code> |
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
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
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