opendal icon indicating copy to clipboard operation
opendal copied to clipboard

docs: TOC doesn't work for content importing from other files

Open suyanhanx opened this issue 2 years ago • 4 comments

An issue of Docusaurus.

related issue: https://github.com/facebook/docusaurus/issues/3915

suyanhanx avatar Jun 01 '23 04:06 suyanhanx

How can this issue affect opendal's site? Can you share the related pages so that one can investigate into it?

tisonkun avatar Jun 07 '23 08:06 tisonkun

Currently, many of our documents are placed together with code. This approach brings the code and documents closer together, making maintenance easier. We import these documents directly into the website's pages to better integrate them with the website. However, due to issues with Docusaurus, the imported documents fail to render their TOCs correctly.

Here is an example: https://opendal.apache.org/docs/services/s3

There is only one line in this page's TOC. image

This anchor point was written in this page file. That means only the TOCs for the actual content in the page file is rendered, while the imported parts are not.

suyanhanx avatar Jun 07 '23 08:06 suyanhanx

https://github.com/facebook/docusaurus/issues/3915 has been closed and this fix will land in docusaurus 3.2

Xuanwo avatar Jan 31 '24 14:01 Xuanwo

facebook/docusaurus#3915 has been closed and this fix will land in docusaurus 3.2

Wow, that's great.

suyanhanx avatar Jan 31 '24 14:01 suyanhanx

docusaurus 3.2 released and we don't need this feature anymore.

Xuanwo avatar Jun 14 '24 12:06 Xuanwo