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

Update docs for main website #605

Merged
merged 17 commits into from
Jul 29, 2024
Merged

Update docs for main website #605

merged 17 commits into from
Jul 29, 2024

Conversation

patrick91
Copy link
Member

@patrick91 patrick91 commented Jul 29, 2024

.

Summary by Sourcery

This pull request significantly updates the documentation for the main website, including a comprehensive Quick Start guide and improved formatting for various guides and integration documents. It also introduces a new README file to better organize the documentation structure.

  • Documentation:
    • Completely overhauled the main documentation index to provide a comprehensive Quick Start guide, including installation steps, model definitions, type definitions, schema building, and API serving instructions.
    • Updated the 'Filtering' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Ordering' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Defining Fields' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Defining Types' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Query Optimizer' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Mutations' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Authentication' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Permissions' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Relay' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Resolvers' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Django Choices Field' integration guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Export Schema' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Queries' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Pagination' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Views' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Django Debug Toolbar' integration guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Settings' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Community Projects' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Frequently Asked Questions' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Subscriptions' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Unit Testing' guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'Django Channels' integration guide to include a new title and improved formatting for tips and warnings.
    • Updated the 'django-guardian' integration guide to include a new title and improved formatting for tips and warnings.
    • Added a new README file for the documentation, providing an organized index of all guides and integrations.

Copy link
Contributor

sourcery-ai bot commented Jul 29, 2024

Reviewer's Guide by Sourcery

This pull request updates the documentation for the main website. The changes include a complete rewrite of the Quick Start guide, addition of front matter for titles, reformatting of tips and warnings to use blockquote style, and updating code block syntax highlighting across multiple files. Additionally, a new README file with links to all documentation sections was added, and two obsolete files were deleted.

File-Level Changes

Files Changes
docs/guide/filters.md
docs/guide/ordering.md
docs/guide/fields.md
docs/guide/types.md
docs/guide/optimizer.md
docs/guide/mutations.md
docs/guide/authentication.md
docs/guide/permissions.md
docs/guide/relay.md
docs/guide/resolvers.md
docs/integrations/choices-field.md
docs/guide/export-schema.md
docs/guide/queries.md
docs/guide/pagination.md
docs/guide/views.md
docs/integrations/debug-toolbar.md
docs/guide/settings.md
docs/community-projects.md
docs/faq.md
docs/guide/subscriptions.md
docs/guide/unit-testing.md
docs/integrations/channels.md
docs/integrations/guardian.md
Added front matter for title, reformatted tips and warnings to use blockquote style, and updated code block syntax highlighting.
docs/README.md Added new README file with links to all documentation sections.
docs/quick-start.md
docs/contributing.md
Deleted files.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @patrick91 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟡 Documentation: 4 issues found

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

`foo: Optional[SomeType] = strawberry.UNSET`
Above `auto` annotation is wrapped in `Optional` automatically.
`UNSET` is automatically used for fields without `field` or with `strawberry_django.filter_field`.
> ![TIP]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (documentation): The markdown for the tip icon is incorrect. It should be [!TIP].


It is highly recommended to enable the [Query Optimizer Extension](optimizer.md)
for improved performance and avoid some common pitfalls (e.g. the `n+1` issue)
> ![NOTE}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (documentation): The closing bracket for the note icon is incorrect. It should be [!NOTE].

> ![NOTE]
> Even though `album__release_date` field was not selected here, it got selected
> in the prefetch query later. Since Django caches known objects, we have to select it here or
> else it would trigger extra queries latter.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (documentation): Typo in 'latter'. It should be 'later'.

@@ -254,7 +256,7 @@
- Important for nested filtering
- In code bellow custom filter `name` ends up filtering `Fruit` instead of `Color` without applying `prefix`

```{.python title="Why prefix?"}
```python title=""Why prefix?""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (documentation): Extra double quotes in the title. It should be title="Why prefix?".

@codecov-commenter
Copy link

codecov-commenter commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.84%. Comparing base (9025ee5) to head (10cb5c5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #605   +/-   ##
=======================================
  Coverage   88.84%   88.84%           
=======================================
  Files          41       41           
  Lines        3605     3605           
=======================================
  Hits         3203     3203           
  Misses        402      402           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@patrick91 patrick91 merged commit ed54e3c into main Jul 29, 2024
22 checks passed
@patrick91 patrick91 deleted the feature/new-docs branch July 29, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants