strawberry-graphql / strawberry.rocks

Website for Strawberry GraphQL
https://strawberry.rocks
MIT License
25 stars 12 forks source link

feature/fetch docs #506

Closed patrick91 closed 1 month ago

patrick91 commented 1 month ago

This changes how the website works, instead of fetching the docs on load, it creates a static build every time the docs are updated (via a cron job).

Summary by Sourcery

This pull request introduces static build generation for documentation, adds support for MDX and remark plugins, and includes extensive new documentation on various topics such as Channels integration, pagination methods, Pydantic support, DataLoaders, and custom scalars. It also enhances the Astro configuration and improves styling across the frontend.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
play-strawberry-rocks ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 6, 2024 9:03pm
strawberry-rocks ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 6, 2024 9:03pm
sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request changes the way the website fetches documentation. Instead of fetching the docs on load, it now creates a static build every time the docs are updated via a cron job. This involves significant changes to the configuration files, component files, and the addition of new documentation files.

File-Level Changes

Files Changes
apps/frontend/src/content/docs/integrations/channels.mdx
apps/frontend/src/content/docs/guides/pagination/connections.mdx
apps/frontend/src/content/docs/integrations/pydantic.mdx
apps/frontend/src/content/docs/guides/pagination/cursor-based.mdx
apps/frontend/src/content/docs/guides/relay.mdx
apps/frontend/src/content/docs/guides/dataloaders.mdx
apps/frontend/src/content/docs/general/schema-basics.mdx
apps/frontend/src/content/docs/types/scalars.mdx
apps/frontend/src/content/docs/extensions/pyinstrument.mdx
Added new documentation files for various guides and integrations.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - You can change your review settings at any time by accessing your [dashboard](https://sourcery.ai/dashboard): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.