Coder Social home page Coder Social logo

Comments (8)

sserrata avatar sserrata commented on May 18, 2024 2

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.

bourdakos1 avatar bourdakos1 commented on May 18, 2024 1

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.

bchmnn avatar bchmnn commented on May 18, 2024 1

@bourdakos1 Ah okay. Understandable. :)

from docusaurus-openapi.

bourdakos1 avatar bourdakos1 commented on May 18, 2024 1

Awesome, I'll open a PR adding classnames and leave the styling up to you

from docusaurus-openapi.

bchmnn avatar bchmnn commented on May 18, 2024

The guys from redocusaurus managed to get tags in the sidebar working: demo.

from docusaurus-openapi.

bourdakos1 avatar bourdakos1 commented on May 18, 2024

@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.

simranbentel avatar simranbentel commented on May 18, 2024

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.

bourdakos1 avatar bourdakos1 commented on May 18, 2024

Awesome! Glad to know this will work :)

from docusaurus-openapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.