mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-31 22:41:53 +02:00
Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a'
This commit is contained in:
@@ -29,10 +29,16 @@ Common [reasons for deprecation]:
|
||||
|
||||
After the project team deprecates something in code, Hugo will:
|
||||
|
||||
1. Log an INFO message for 6 minor releases[^1]
|
||||
1. Log a WARN message for another 6 minor releases
|
||||
1. Log an INFO message for 3 minor releases[^1]
|
||||
1. Log a WARN message for another 12 minor releases
|
||||
1. Log an ERROR message and fail the build thereafter
|
||||
|
||||
The project team will:
|
||||
|
||||
1. On the deprecation date, update the documentation with a note describing the deprecation and any relevant alternatives.
|
||||
1. Remove the code six or more minor releases after Hugo begins logging ERROR messages and failing the build. At that point, Hugo will throw an error, but the error message will no longer mention the deprecation.
|
||||
1. Remove the corresponding documentation two years after the deprecation date.
|
||||
|
||||
To see the INFO messages, you must use the `--logLevel` command line flag:
|
||||
|
||||
```text
|
||||
|
Reference in New Issue
Block a user