Closed diwakergupta closed 1 month ago
ok so i think this issue arises due to a mismatch in page structures between redoc and docusaurus when handling openapi documentation.
in redoc, each openapi tag gets its own page, and operations under that tag are referenced via # anchors (e.g. #operation/get_blocks). in contrast, docusaurus generates a separate webpage for each API operation.
so when we pull in the openapi.yaml from the blockchain api repo into docs, the original markdown links referenced in the openapi.yaml file use redocs anchor system. and so when imported into docusarus, these markdown links are being interpreted as related to the current page of docusaurus, which leads to incorrect URLs and subsequently broken links in our documentation.
ill keep looking into solutions for this
Describe the bug
Surfaced via the broken anchors check in Docusaurus, while building Hiro docs:
To Reproduce
Just follow any of the links mentioned above. For instance, https://docs.hiro.so/api/fetch-fee-rate links to https://docs.hiro.so/api/fetch-fee-rate#operation/post_fee_transaction which doesn't exist.