[TASK] Use Environment API in documentation extension