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

Make WARNING an admonition keyword #10898

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions src/compiler/crystal/tools/doc/generator.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Crystal::Doc::Generator
FLAG_COLORS = {
"BUG" => "red",
"DEPRECATED" => "red",
"WARNING" => "red",
HertzDevil marked this conversation as resolved.
Show resolved Hide resolved
"EXPERIMENTAL" => "lime",
"FIXME" => "yellow",
"NOTE" => "purple",
Expand Down
2 changes: 1 addition & 1 deletion src/crystal/digest/md5.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "digest/digest"

# Implements the MD5 digest algorithm.
#
# Warning: MD5 is no longer a cryptographically secure hash, and should not be
# WARNING: MD5 is no longer a cryptographically secure hash, and should not be
# used in security-related components, like password hashing. For passwords, see
# `Crypto::Bcrypt::Password`. For a generic cryptographic hash, use SHA-256 via
# `OpenSSL::Digest.new("SHA256")`.
Expand Down
2 changes: 1 addition & 1 deletion src/crystal/digest/sha1.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "digest/digest"

# Implements the SHA1 digest algorithm.
#
# Warning: SHA1 is no longer a cryptographically secure hash, and should not be
# WARNING: SHA1 is no longer a cryptographically secure hash, and should not be
# used in security-related components, like password hashing. For passwords, see
# `Crypto::Bcrypt::Password`. For a generic cryptographic hash, use SHA-256 via
# `OpenSSL::Digest.new("SHA256")`.
Expand Down
2 changes: 1 addition & 1 deletion src/digest/md5.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "openssl"

# Implements the MD5 digest algorithm.
#
# Warning: MD5 is no longer a cryptographically secure hash, and should not be
# WARNING: MD5 is no longer a cryptographically secure hash, and should not be
# used in security-related components, like password hashing. For passwords, see
# `Crypto::Bcrypt::Password`. For a generic cryptographic hash, use SHA-256 via
# `Digest::SHA256`.
Expand Down
2 changes: 1 addition & 1 deletion src/digest/sha1.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "openssl"

# Implements the SHA1 digest algorithm.
#
# Warning: SHA1 is no longer a cryptographically secure hash, and should not be
# WARNING: SHA1 is no longer a cryptographically secure hash, and should not be
# used in security-related components, like password hashing. For passwords, see
# `Crypto::Bcrypt::Password`. For a generic cryptographic hash, use SHA-256 via
# `Digest::SHA256`.
Expand Down
2 changes: 1 addition & 1 deletion src/openssl/md5.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "./lib_crypto"

# Binds the OpenSSL MD5 hash functions.
#
# Warning: MD5 is no longer a cryptographically secure hash, and should not be
# WARNING: MD5 is no longer a cryptographically secure hash, and should not be
# used in security-related components, like password hashing. For passwords, see
# `Crypto::Bcrypt::Password`. For a generic cryptographic hash, use SHA-256 via
# `OpenSSL::Digest.new("SHA256")`.
Expand Down
2 changes: 1 addition & 1 deletion src/openssl/sha1.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "./lib_crypto"

# Binds the OpenSSL SHA1 hash functions.
#
# Warning: SHA1 is no longer a cryptographically secure hash, and should not be
# WARNING: SHA1 is no longer a cryptographically secure hash, and should not be
# used in security-related components, like password hashing. For passwords, see
# `Crypto::Bcrypt::Password`. For a generic cryptographic hash, use SHA-256 via
# `OpenSSL::Digest.new("SHA256")`.
Expand Down