You can find TerriaJS documentation at https://docs.terria.io and edit the documentation in markdown files in https://github.com/TerriaJS/terriajs/tree/main/doc.
This repository used to host configuration for building TerriaJS documentation, however that is now inside the terriajs repository.