doc: extract sections from reference page