use the name property of component.json as the document’s title

see #8 and #10