build: modernizing the buildsystem to use docs-tools infrastructure