Skip to content

Commit

Permalink
Fix: Website details (#34)
Browse files Browse the repository at this point in the history
* Fix: Website details

* Better OG image
  • Loading branch information
nmn authored Dec 5, 2023
1 parent 523beb1 commit 0e3cfb4
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 388 deletions.
16 changes: 13 additions & 3 deletions apps/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ const config = {
favicon: 'img/favicon.svg',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
organizationName: 'facebook',
projectName: 'stylex',
plugins: ['@orama/plugin-docusaurus'],

presets: [
Expand Down Expand Up @@ -159,6 +158,17 @@ const config = {
// Please do not remove the credits, help to publicize Docusaurus :)
copyright: `Copyright © ${new Date().getFullYear()} Meta Platforms, Inc. Built with Docusaurus.`,
},
metadata: [
{name: 'og:title', content: 'StyleX'},
{
name: 'og:description',
content: 'The styling system that powers Meta.',
},
{
name: 'og:image',
content: '/img/stylex-cover-photo.png',
},
],
},
};

Expand Down
9 changes: 6 additions & 3 deletions apps/docs/src/theme/MDXComponents/Details.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ export default function MDXDetails({
<details
{...props}
{...stylex.props(styles.details, style)}
{...(isOpen && {open: true})}
onClick={onToggle}>
<summary {...summaryProps} {...stylex.props(styles.summary)} />
{...(isOpen && {open: true})}>
<summary
{...summaryProps}
{...stylex.props(styles.summary)}
onClick={onToggle}
/>
{children}
</details>
);
Expand Down
Binary file removed apps/docs/static/img/docusaurus.png
Binary file not shown.
Binary file removed apps/docs/static/img/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion apps/docs/static/img/logo.svg

This file was deleted.

Binary file added apps/docs/static/img/stylex-cover-photo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0e3cfb4

Please sign in to comment.