docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

Postman plugin and theme

Open gii-pan opened this issue 2 years ago • 3 comments

Describe the bug

The section of postman plugin is without the theme and some of our documentation didn't get the postman code in mdx.

Expected behavior

The postman plugin should display the theme in all languages ​​as shown in the demo version of the website and the url should be automatically completed.

Current behavior

The Ruby, C#, PHP, Java and Powershell ​​are without the default theme and present the code in black and white. Some mdx files generated by the plugin do not contain the code that postman should manage.

Steps to reproduce

Live example

  1. Install Docusaurus;
  2. Install and config the plugin/theme of Open Api;
  3. Generate the docs;
  4. Start Docusaurus.

Screenshots

postman

requisicao

Context

We need the requests working for the users, as well as the styling for a homogeneous look.

Your Environment

  • Version used: I tried with v1.6.1, v1.7.2 and v2.0.0;
  • Environment name and version: Microsoft Edge, node.js 18.1.0, python 3.10.6;
  • Operating System and version: desktop;
  • Link to your project: private.

gii-pan avatar May 02 '23 21:05 gii-pan

:tada: Thanks for opening your first issue here! Welcome to the community!

I found out today that the issue with the postman code not being generated is due to the (.pdf ) in some endpoints like the one below:

/api/empresas/docs/{ambiente}/{codModelo}/{cnpjInteressado}/{ano}/{serie}/{numero}.pdf

What could I do? How to proceed?

The issue with the theme not being applied(first gif above) still persists.

gii-pan avatar May 03 '23 20:05 gii-pan

Hi @gii-pan, for the languages missing the theme/highlighting, have you already defined them in additionalLanguages?

Example: https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/main/demo/docusaurus.config.js#L139

Concerning the .pdf issue, can you explain why those operations/paths end in a file extension? I am not familiar with that use case. Thanks!

sserrata avatar May 09 '23 14:05 sserrata