Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Style warnings using admonition in documentation#9844

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@browniebroke
Copy link
Member

@browniebrokebrowniebroke commentedDec 9, 2025
edited
Loading

Description

Useadmonition markdown extension to improve callout for warnings in our docs. The extension was already installed but warnings weren't styled.

Why?

This came up in#9823, where the warning was initially added with a slightly different syntax that our existing ones. Also, I think it doesn't stand out very much in the page:

image

---

**Warning**: If you require cross-domain AJAX requests, you should generally be using the more modern approach of[CORS][cors] as an alternative to`JSONP`. See the[CORS documentation][cors-docs] for more details.
!!! warning
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Image


**Warning**: Always use Django's standard login view when creating login pages. This will ensure your login views are properly protected.
!!! warning
Always use Django's standard login view when creating login pages. This will ensure your login views are properly protected.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Image


**Warning**: Do not use`.as_view()` with`@action` methods. It bypasses router setup and may ignore action settings like`permission_classes`. Use`DefaultRouter` for actions.
!!! warning
Do not use`.as_view()` with`@action` methods. It bypasses router setup and may ignore action settings like`permission_classes`. Use`DefaultRouter` for actions.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Image

@browniebroke
Copy link
MemberAuthor

There are 19 similar occurrences of**Note** which could be updated in a same way

Copy link
Collaborator

@peterthomassenpeterthomassen left a comment

Choose a reason for hiding this comment

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

cool!

@browniebrokebrowniebroke merged commit3a70eb2 intoencode:mainDec 9, 2025
7 checks passed
@browniebrokebrowniebroke deleted the docs-admonition-styles branchDecember 9, 2025 13:08
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@peterthomassenpeterthomassenpeterthomassen approved these changes

@auvipyauvipyauvipy approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@browniebroke@peterthomassen@auvipy

[8]ページ先頭

©2009-2025 Movatter.jp