Remove static and other attributes from the docs

Fixes #2344.