redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Redoc page rendering only when used in toctree directive.

Open sachin-suresh-rapyuta opened this issue 2 years ago • 0 comments

Unable to render the page when used in more than one place and without a directive.

I have defined like:

redoc = [
    {
        'name': 'File Upload APIs',
        'page': 'spec/file_upload_apis',
        'spec': 'yaml_spec/openapi.yaml',
        'embed': True,
    }
]
  1. The spec/file_upload_apis.rst is the placeholder file where I want the Redoc API documentation to be rendered.
  2. The hyperlink to the above page looks like:

spec/pa_amr_apis.rst

.. toctree::
   :maxdepth: 5       

   file_upload_apis      //This works when used in toctree directive


file_upload_apis        // This does not work anywhere outside toctree directive

Should I have to use file_upload_apis only within some directive? And not on any page were I want ?

sachin-suresh-rapyuta avatar Jan 24 '23 12:01 sachin-suresh-rapyuta