From e0cc2c13629a8699858c12e2d32ab5ca4c38a7d0 Mon Sep 17 00:00:00 2001 From: Filip Stoyanov <98324019+fstoqnov-iohk@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:48:03 +0100 Subject: [PATCH] Another round of documentation design/content amends (#1562) Last bit of design and content updates (minor padding/centring and the discord link pointing to the correct discord invite) I have also added the following scripts to the `package.json` ``` "preview-build": "docusaurus build", "preview-install": "docusaurus install" ``` These are for more easily running vercel deploys manually (as the vercel has issues running the prepare script) - note that to deploy and preview it successfully you'd still need to update the config to `warn` for broken links and the update landing page to `/` as of right now (due to vercel/docusaurus limitations) --- docs/package.json | 2 ++ docs/src/components/homepage/Carousel/Carousel.tsx | 2 +- .../src/components/homepage/Carousel/ResponsiveCarousel.tsx | 6 +++--- docs/src/theme/Footer/Links/MultiColumn/index.js | 2 +- docs/src/theme/Navbar/Content/index.js | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/package.json b/docs/package.json index 40065fcf213..fd49fdc92a3 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,6 +5,8 @@ "scripts": { "docusaurus": "docusaurus", "prepare": "yarn enrich-document-metadata && yarn regenerate-plantuml", + "preview-build": "docusaurus build", + "preview-install": "docusaurus install", "build": "yarn prepare && docusaurus build", "build-dev": "yarn prepare && docusaurus build --no-minify -l en", "start": "yarn dummy-spec && docusaurus start", diff --git a/docs/src/components/homepage/Carousel/Carousel.tsx b/docs/src/components/homepage/Carousel/Carousel.tsx index 2c4b5c3f7e1..2e72e7ce548 100644 --- a/docs/src/components/homepage/Carousel/Carousel.tsx +++ b/docs/src/components/homepage/Carousel/Carousel.tsx @@ -19,7 +19,7 @@ type Props = { const CarouselEntry: FC = ({ idx, src, description }) => { return ( -
+
diff --git a/docs/src/components/homepage/Carousel/ResponsiveCarousel.tsx b/docs/src/components/homepage/Carousel/ResponsiveCarousel.tsx index 78a46b66bdf..76758ff7b4c 100644 --- a/docs/src/components/homepage/Carousel/ResponsiveCarousel.tsx +++ b/docs/src/components/homepage/Carousel/ResponsiveCarousel.tsx @@ -24,11 +24,11 @@ type Props = { const CarouselEntryDescription: FC = ({ description, idx }) => { return ( -
+

{description}

{idx === 0 && ( -
+
Passengers (Participants) @@ -52,7 +52,7 @@ type ControlProps = { const Controls: FC = ({ showing, onClickBullet, ...props }) => { return (
{HowItWorksCarouselContent.map((_, index) => ( diff --git a/docs/src/theme/Footer/Links/MultiColumn/index.js b/docs/src/theme/Footer/Links/MultiColumn/index.js index d6e8477b535..19c9421a021 100644 --- a/docs/src/theme/Footer/Links/MultiColumn/index.js +++ b/docs/src/theme/Footer/Links/MultiColumn/index.js @@ -46,7 +46,7 @@ export default function FooterLinksMultiColumn({ columns }) {