@saikarthik FWIW, I've used and really like the Wordpress plugin, Pressbooks, for such a task. It's handy to have the breakdown of the book handy, it has version control, you can control User access, and by installing some of the backend stuff, you can output a finished book straight to PDF or ebook.
https://www.wpexplorer.com/create-books-wordpress/ is a site talking about it, but the link above goes to the .org version. WP also has to be setup for multi-site, too. Not a huge pain, but a step you can't skip.