Skip to content

Commit

Permalink
docs: Twitter summary smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jul 2, 2024
1 parent e444dfa commit c4c6779
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
1 change: 1 addition & 0 deletions docs/rest/api/createResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
id: createResource
title: createResource() - TypeScript definition for REST API resources
sidebar_label: createResource
description: Resources are a collection of RestEndpoints that operate on a common data by sharing a schema
---

<head>
Expand Down
19 changes: 12 additions & 7 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ const config: Config = {
content: '#003a67',
},
},
{
tagName: 'meta',
attributes: {
name: 'twitter:site',
content: '@dataclientio',
},
},
],
stylesheets: [
{
Expand Down Expand Up @@ -229,6 +222,7 @@ const config: Config = {
require.resolve('./src/css/root.css'),
require.resolve('./src/css/customTheme.css'),
],
meta,
},
gtag: {
trackingID: 'G-1E9TCGX1ZE',
Expand Down Expand Up @@ -380,6 +374,17 @@ const config: Config = {
// Open Graph and Twitter card images.
ogImage: 'img/client-logo.png',
twitterImage: 'img/client-logo.png',
metadata: [
{
name: 'twitter:site',
content: '@dataclientio',
},
{
property: 'og:site_name',
content: 'Data Client',
},
{ name: 'twitter:card', content: 'summary' },
],
announcementBar: {
id: 'announcementBar-2', // Increment on change
content: `If you like Reactive Data Client, give it a ⭐️ on <a target="_blank" rel="noopener noreferrer" href="https://github.com/reactive/data-client">GitHub</a>`,
Expand Down
2 changes: 1 addition & 1 deletion website/src/theme/DocItem/Metadata/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function MetadataWrapper(props: Props): JSX.Element {
metadata: { title },
} = useDoc();
// for short titles, without subheaders
if (title.length < 28 && !title.includes(' - '))
if (title.length < 30 && !title.includes(' - '))
return <Metadata {...props} />;
return (
<>
Expand Down
7 changes: 0 additions & 7 deletions website/src/theme/Root.js

This file was deleted.

3 changes: 3 additions & 0 deletions website/src/theme/Root.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Root({ children }) {
return <>{children}</>;
}

0 comments on commit c4c6779

Please sign in to comment.