The XWiki Scripting API Reference
https://www.xwiki.org/xwiki/bin/view/ScriptingDocumentation
is broken:
If you select any module (e.g. addAttachment of $doc) you will receive an error:
**Documentation not found**
The requested documentation could not be found on the documentation server.