Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Use template engine in the Redoc decorators #82

Open
netmilk opened this issue Jul 8, 2024 · 0 comments
Open

Use template engine in the Redoc decorators #82

netmilk opened this issue Jul 8, 2024 · 0 comments

Comments

@netmilk
Copy link
Collaborator

netmilk commented Jul 8, 2024

Please, let's come up with a template engine for the Redoc Decorators enriching the Operation and Tag description with links to the JS/Py Client references.

This works, but I find it a little hard to read coming from react. I suggest using some kind of templating here, instead of appending to a string if possible.

prepend = `
<span style="float: right;">
    ${pyLink && '<a href="${pyLink}" target="_blank" rel="noopener noreferrer">Python doc</a>'}
    ...
</span>
`;

Originally posted by @Jkuzz in #81 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant