Skip to content

Commit 322a640

Browse files
author
DominicGBauer
committed
chore: use images for socials
1 parent ce12951 commit 322a640

File tree

7 files changed

+106
-37
lines changed

7 files changed

+106
-37
lines changed

docs/docusaurus.config.ts

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { themes as prismThemes } from 'prism-react-renderer';
22
import type { Config } from '@docusaurus/types';
33
import type * as Preset from '@docusaurus/preset-classic';
44

5+
const PROJECT_NAME = 'powersync-react-native-sdk'
6+
57
const config: Config = {
68
title: 'React Native SDK Docs',
79
favicon: 'img/powersync-favicon.png',
@@ -13,13 +15,12 @@ const config: Config = {
1315
url: 'https://powersync-ja.github.io/',
1416
// Set the /<baseUrl>/ pathname under which your site is served
1517
// For GitHub pages deployment, it is often '/<projectName>/'
16-
baseUrl: '/powersync-react-native-sdk/',
18+
baseUrl: `/${PROJECT_NAME}/`,
1719
trailingSlash: false,
1820
// GitHub pages deployment config.
1921
// If you aren't using GitHub pages, you don't need these.
2022
organizationName: 'powersync-ja',
21-
projectName: 'powersync-react-native-sdk',
22-
23+
projectName: PROJECT_NAME,
2324

2425
onBrokenLinks: 'warn',
2526
onBrokenMarkdownLinks: 'warn',
@@ -41,8 +42,8 @@ const config: Config = {
4142
sidebarPath: './sidebars.ts',
4243
// Please change this to your repo.
4344
// Remove this to remove the "edit this page" links.
44-
editUrl:
45-
'https://github.com/powersync-ja/powersync-react-native-sdk',
45+
// editUrl:
46+
// 'https://github.com/powersync-ja/powersync-react-native-sdk',
4647
},
4748
blog: false,
4849
theme: {
@@ -98,8 +99,7 @@ const config: Config = {
9899
],
99100

100101
themeConfig: {
101-
// Replace with your project's social card
102-
image: 'img/docusaurus-social-card.jpg',
102+
image: 'https://assets-global.website-files.com/651d89402147985dc475ff48/65577a5d2602b4209f37f936_powersync-website-meta-img.png',
103103
navbar: {
104104
title: 'PowerSync React Native SDK',
105105
logo: {
@@ -114,7 +114,7 @@ const config: Config = {
114114
label: 'Docs',
115115
},
116116
{
117-
href: 'https://github.com/facebook/docusaurus',
117+
href: 'https://github.com/powersync-ja',
118118
label: 'GitHub',
119119
position: 'right',
120120
},
@@ -127,44 +127,43 @@ const config: Config = {
127127
title: 'Community',
128128
items: [
129129
{
130-
label: 'Discord',
131-
href: 'https://discordapp.com/invite/docusaurus',
132-
},
133-
{
134-
label: 'X',
135-
href: 'https://twitter.com/powersync_',
136-
},
137-
{
138-
label: 'LinkedIn',
139-
href: 'https://www.linkedin.com/showcase/journeyapps-powersync/',
140-
},
141-
{
142-
label: 'YouTube',
143-
href: 'https://www.youtube.com/@powersync_',
144-
},
130+
html: `
131+
<div style="display: flex; align-items: center;">
132+
<a href="https://discord.gg/powersync" target="_blank" style="margin-right:8px">
133+
<img src="/${PROJECT_NAME}/img/discord.svg" loading="lazy" alt="" height="24">
134+
</a>
135+
<a href="https://twitter.com/powersync_" target="_blank" style="margin-right:8px">
136+
<img src="/${PROJECT_NAME}/img/x.svg" loading="lazy" alt="" height="20">
137+
</a>
138+
<a href="https://www.youtube.com/@powersync_" target="_blank" style="margin-right:8px">
139+
<img src="/${PROJECT_NAME}/img/youtube.svg" loading="lazy" width="32" height="28" alt="">
140+
</a>
141+
<a href="https://www.linkedin.com/showcase/journeyapps-powersync/" target="_blank" style="margin-right:8px">
142+
<img src="/${PROJECT_NAME}/img/linkedin.svg" loading="lazy" alt="" height="24">
143+
</a>
144+
</div>
145+
`
146+
}
145147
],
146148
},
147149
{
148150
title: 'More',
149151
items: [
150152
{
151-
label: 'Website',
152-
href: 'https://www.powersync.com/',
153-
},
154-
{
155-
label: 'GitHub',
156-
href: 'https://github.com/powersync-ja/',
157-
},
153+
html: `
154+
<div style="display: flex; align-items: center;">
155+
<a href="https://github.com/powersync-ja" target="_blank" style="margin-right:8px">
156+
<img src="/${PROJECT_NAME}/img/github.svg" loading="lazy" alt="" height="24">
157+
</a>
158+
<a href="https://www.powersync.com/" target="_blank" style="margin-right:8px">
159+
<img src="/${PROJECT_NAME}/img/web.svg" loading="lazy" alt="" height="30">
160+
</a>
161+
</div>
162+
`}
158163
],
159164
},
160165
],
161-
copyright: `Copyright © ${new Date().getFullYear()} Journey Mobile, Inc.
162-
163-
164-
165-
166-
167-
`,
166+
copyright: `Copyright © ${new Date().getFullYear()} Journey Mobile, Inc.`,
168167
},
169168
prism: {
170169
theme: prismThemes.github,

docs/static/img/discord.svg

Lines changed: 18 additions & 0 deletions
Loading

docs/static/img/github.svg

Lines changed: 22 additions & 0 deletions
Loading

docs/static/img/linkedin.svg

Lines changed: 12 additions & 0 deletions
Loading

docs/static/img/web.svg

Lines changed: 7 additions & 0 deletions
Loading

docs/static/img/x.svg

Lines changed: 3 additions & 0 deletions
Loading

docs/static/img/youtube.svg

Lines changed: 8 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)