build: fixing the custom admonition types and reorganizing sphinx extension