diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 311a021..dd50cf5 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -5,11 +5,11 @@ import type * as Preset from '@docusaurus/preset-classic'; const config: Config = { title: 'psake', - tagline: 'A build automation tool written in PowerShell', + tagline: 'psake is a PowerShell build automation tool inspired by rake and bake. Define tasks, declare dependencies, and ship with confidence.', favicon: 'img/favicon.ico', // Set the production url of your site here - url: 'https://psake.netlify.app', + url: 'https://psake.dev', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/', @@ -71,8 +71,19 @@ const config: Config = { ], themeConfig: { - // Replace with your project's social card - image: 'img/social-card.png', + image: 'img/og-image.png', + colorMode: { + defaultMode: 'dark', + respectPrefersColorScheme: true, + }, + metadata: [ + { name: 'twitter:card', content: 'summary_large_image' }, + { property: 'og:type', content: 'website' }, + ], + tableOfContents: { + minHeadingLevel: 2, + maxHeadingLevel: 4, + }, navbar: { title: 'psake', logo: { diff --git a/static/img/og-image.html b/static/img/og-image.html new file mode 100644 index 0000000..239afb6 --- /dev/null +++ b/static/img/og-image.html @@ -0,0 +1,296 @@ + + + + + + + + + psake.dev – Open Graph Image + + + + + +
+
+ + +
+ + +
+ + +
+
> POWERSHELL BUILD AUTOMATION
+
psake
+
Define tasks. Declare dependencies.
Ship with confidence.
+
+ + +
psake.dev
+ + +
+
+
+
+
+
+
+ psakeFile.ps1 +
+ +
+ +
1# Build automation for psake.dev
+
2
+
3Task Default -Depends Test, Build
+
4
+
5Task Build -Depends Init {
+
6    Write-Host "Building site..." -ForegroundColor Cyan
+
7    exec { yarn run build }
+
8}
+
9
+
10Task Test -Depends Init {
+
11    Invoke-Pester -Path ./tests -Output Detailed
+
12}
+
13
+
14Task Deploy -Depends Build {
+
15    Write-Host "Deploying to production"
+
16    exec { netlify deploy --prod }
+
17}
+
18
+
19Task Init {
+
20    exec { yarn install }
+
21}
+ +
+
+ + + diff --git a/static/img/og-image.png b/static/img/og-image.png new file mode 100644 index 0000000..5a2dea3 Binary files /dev/null and b/static/img/og-image.png differ