Add deprecation notice to the docs.