Comments (8)
If it's helpful to anyone, our team managed to get method labels working with the Docusaurus sidebar using customProps
and some CSS magic.
API docs: https://prisma.pan.dev/api/cloud
Repo: https://github.com/PaloAltoNetworks/prisma.pan.dev
CSS: https://github.com/PaloAltoNetworks/prisma.pan.dev/blob/master/src/css/custom.css#L540
Sidebar: https://github.com/PaloAltoNetworks/prisma.pan.dev/blob/master/static/oas/cspm/sidebar.js#L58
from docusaurus-openapi.
I'm not sure if this is possible with the docusaurus sidebar. Possibly with some css magic? I think I might be able to provide classnames get
post
put
etc.. to the links and then you could have styles like .get::before { content: "GET" }
. Would that work for you?
from docusaurus-openapi.
@bourdakos1 Ah okay. Understandable. :)
from docusaurus-openapi.
Awesome, I'll open a PR adding classnames and leave the styling up to you
from docusaurus-openapi.
The guys from redocusaurus managed to get tags in the sidebar working: demo.
from docusaurus-openapi.
@bchmnn redocusaurus doesn’t use the native Docusaurus sidebar. I could build my own sidebar to achieve the same effect, but that’s not an approach I would like to take.
from docusaurus-openapi.
I'm not sure if this is possible with the docusaurus sidebar. Possibly with some css magic? I think I might be able to provide classnames
get
post
put
etc.. to the links and then you could have styles like.get::before { content: "GET" }
. Would that work for you?
That would be a very good solution.
from docusaurus-openapi.
Awesome! Glad to know this will work :)
from docusaurus-openapi.
Related Issues (20)
- Add visual indicator for deprecated request/response body field
- Response schema marked as "Optional"
- Getting theme error while useing @docusaurus/preset-classic with docusaurus-plugin-openapi in plugins HOT 2
- Code examples tabs overflow in narrow browser windows
- Quick Overview failing HOT 1
- Support of readonly attributes HOT 1
- MDX content in params is displayed in form elements HOT 1
- embed generated API menu in an existing sidebar
- This page crashed - URI malformed - When inserting win10 keyboard emoji on api field HOT 6
- Mocking all the request/responses interactions
- Postman collection support
- Docusaurus 3.0 support HOT 4
- formatting issues in v0.7.0 HOT 3
- cURL highlighting issues on 0.7.1 HOT 1
- Docusaurus 3.1.0 - Breaking changes
- [ERROR] TypeError: Cannot read properties of undefined (reading 'result')
- Sharing URLs doesn't work
- Are you compatible with Docusaurus 3.x.x? HOT 1
- Docusaurus 3.2.0 - Breaking Changes HOT 2
- Modify Label in sidebar (autogenerated) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docusaurus-openapi.