Make document building process more extensible

Change-Id: Ifce4009df9c63864541864367a20076c5aebb796
Merge "Make document building process more extensible"