Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1112

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.9.2
hooks:
- id: ruff
args:
Expand Down
45 changes: 22 additions & 23 deletions docs_src/src/components/documentation/ApiDocs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,109 +3,108 @@ import { Heading } from '@/components/documentation/Heading'

const guides = [
{
href: '/documentation/api_reference',
href: '/documentation/en/api_reference',
name: 'Installation',
description: 'Start using Robyn in your project.',
},
{
href: '/documentation/api_reference/getting_started',
href: '/documentation/en/api_reference/getting_started',
name: 'Getting Started',
description: 'Start with creating basic routes in Robyn.',
},
{
href: '/documentation/api_reference/request_object',
href: '/documentation/en/api_reference/request_object',
name: 'The Request Object',
description: 'Learn about the Request Object in Robyn.',
},
{
href: '/documentation/api_reference/robyn_env',
href: '/documentation/en/api_reference/robyn_env',
name: 'The Robyn Env file',
description: 'Learn about the Robyn variables',
},
{
href: '/documentation/api_reference/middlewares',
href: '/documentation/en/api_reference/middlewares',
name: 'Middlewares, Events and Websockets',
description: 'Learn about Middlewares, Events and Websockets in Robyn.',
},
{
href: '/documentation/api_reference/authentication',
href: '/documentation/en/api_reference/authentication',
name: 'Authentication',
description: 'Learn about Authentication in Robyn.',
},
{
href: '/documentation/api_reference/const_requests',
href: '/documentation/en/api_reference/const_requests',
name: 'Const Requests and Multi Core Scaling',
description: 'Learn about Const Requests and Multi Core Scaling in Robyn.',
},
{
href: '/documentation/api_reference/cors',
href: '/documentation/en/api_reference/cors',
name: 'CORS',
description: 'CORS',
},
{
href: '/documentation/api_reference/templating',
href: '/documentation/en/api_reference/templating',
name: 'Templating',
description: 'Learn about Templating in Robyn.',
},
{
href: '/documentation/api_reference/redirection',
href: '/documentation/en/api_reference/redirection',
name: 'Redirection',
description: 'Learn how to redirect requests to different endpoints.',
},
{
href: '/documentation/api_reference/file-uploads',
href: '/documentation/en/api_reference/file-uploads',
name: 'File Uploads',
description:
'Learn how to upload and download files to your server using Robyn.',
},
{
href: '/documentation/api_reference/form_data',
href: '/documentation/en/api_reference/form_data',
name: 'Form Data and Multi Part Form Data',
description: 'Learn how to handle form data.',
},
{
href: '/documentation/api_reference/websockets',
href: '/documentation/en/api_reference/websockets',
name: 'Websockets',
description: 'Learn how to use Websockets in Robyn.',
},
{
href: '/documentation/api_reference/exceptions',
href: '/documentation/en/api_reference/exceptions',
name: 'Exceptions',
description: 'Learn how to handle exceptions in Robyn.',
},
{
href: '/documentation/api_reference/scaling',
href: '/documentation/en/api_reference/scaling',
name: 'Scaling the Application',
description: 'Learn how to scaled Robyn across multiple cores.',
},
{
href: '/documentation/api_reference/advanced_features',
href: '/documentation/en/api_reference/advanced_features',
name: 'Advanced Features',
description: 'Learn about advanced features in Robyn.',
},
{
href: '/documentation/api_reference/multiprocess_execution',
href: '/documentation/en/api_reference/multiprocess_execution',
name: 'Multiprocess Execution',
description: 'Learn about the behaviour or variables during multithreading',
},
{
href: '/documentation/api_reference/using_rust_directly',
href: '/documentation/en/api_reference/using_rust_directly',
name: 'Direct Rust Usage',
description: 'Learn about directly using Rust in Robyn.',
},
{
href: '/documentation/api_reference/graphql-support',
href: '/documentation/en/api_reference/graphql-support',
name: 'GraphQL Support',
description: 'Learn about GraphQL Support in Robyn.',
},
{
href: '/documentation/api_reference/openapi',
href: '/documentation/en/api_reference/openapi',
name: 'OpenAPI Documentation',
description:
'Learn how to generate OpenAPI docs for your applications.',
description: 'Learn how to generate OpenAPI docs for your applications.',
},
{
href: '/documentation/api_reference/dependency_injection',
href: '/documentation/en/api_reference/dependency_injection',
name: 'Dependency Injection',
description: 'Learn about Dependency Injection in Robyn.',
},
Expand Down
19 changes: 9 additions & 10 deletions docs_src/src/components/documentation/Guides.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,49 @@ import { Heading } from '@/components/documentation/Heading'

const guides = [
{
href: '/documentation/example_app',
href: '/documentation/en/example_app',
name: 'Getting Started',
description: 'Learn how to authenticate your API requests.',
},
{
href: '/documentation/example_app/authentication',
href: '/documentation/en/example_app/authentication',
name: 'Authentication and Authorization',
description: 'Understand how to use authentication and authorization.',
},
{
href: '/documentation/example_app/authentication-middlewares',
href: '/documentation/en/example_app/authentication-middlewares',
name: 'Middlewares',
description:
'Read about different kinds of Middlewares and how to use them.',
},
{
href: '/documentation/example_app/monitoring_and_logging',
href: '/documentation/en/example_app/monitoring_and_logging',
name: 'Monitoring and Logging',
description: 'Learn how to have montoring and logging in Robyn.',
},
{
href: '/documentation/example_app/real_time_notifications',
href: '/documentation/en/example_app/real_time_notifications',
name: 'Real Time Notifications',
description: 'Learn how to have real time notification in Robyn.',
},
{
href: '/documentation/example_app/deployment',
href: '/documentation/en/example_app/deployment',
name: 'Deployments',
description:
'Learn how to deploy your app to production and manage your deployments.',
},
{
href: '/documentation/example_app/openapi',
href: '/documentation/en/example_app/openapi',
name: 'OpenAPI Documentation',
description:
'Learn how OpenAPI docs are generate for your applications.',
description: 'Learn how OpenAPI docs are generate for your applications.',
},
]

export function Guides() {
return (
<div className="my-16 xl:max-w-none">
<Heading level={2} id="guides">
<h3 className='text-white'>Example Application</h3>
<h3 className="text-white">Example Application</h3>
</Heading>
<div className="not-prose mt-4 grid grid-cols-1 gap-8 border-t border-white/5 pt-10 sm:grid-cols-2 xl:grid-cols-4">
{guides.map((guide) => (
Expand Down
Loading
Loading