We recently noticed that for every module of ours that we document with the automodule directive, Sphinx picks up a copyright string if it's in the same file.
For example, consider a module named whatever.py:
"""
Copyright (C) 2023 My Company, Inc.
"""
.
.
class MyWorstNightmare:
"""
This class contains test facilities to avoid serious problems:
"""
Automodule will pick up the docstring "This class..." but also will stick the copyright notice at the top of the generated document.
That isn't a behavior we want, because the code being documented may have a copyright notice a couple of years old, and we don't want readers to confuse it with the copyright of the book that includes the automodule text.
Is there a way to stop or work around this behavior?
Thanks,
Tom