Skip to content

Commit

Permalink
Remove axios in favour of native in API docs (#7312)
Browse files Browse the repository at this point in the history
Massive thanks to @thomasheartman for digging around GitHub and figuring
out how to do this.

Regrettably it doesn't use the native fetch, which is what I thought it
would do. It's more code so I'm happy to close it but I still think it's
worth the discussion

Before this PR:

![image](https://github.com/Unleash/unleash/assets/107407814/a62111ca-2bae-4e7b-b579-018c9b2f9998)

After this PR:

![image](https://github.com/Unleash/unleash/assets/107407814/bbcfa56e-b950-4806-b938-9e8fa13e7975)
  • Loading branch information
alvinometric authored Jun 24, 2024
1 parent f80726d commit a31cbec
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,47 @@ module.exports = {
'swift',
],
},
languageTabs: [
{
highlight: 'bash',
language: 'curl',
},
{
highlight: 'python',
language: 'python',
variant: 'requests',
},
{
highlight: 'go',
language: 'go',
},
{
highlight: 'javascript',
language: 'nodejs',
variant: 'native',
},
{
highlight: 'ruby',
language: 'ruby',
},
{
highlight: 'csharp',
language: 'csharp',
variant: 'httpclient',
},
{
highlight: 'php',
language: 'php',
},
{
highlight: 'java',
language: 'java',
},
{
highlight: 'powershell',
language: 'powershell',
},
],
footer: {
style: 'dark',
links: [
Expand Down

0 comments on commit a31cbec

Please sign in to comment.