From a31cbec17a4b02c5dc5611f482f9b1f617298539 Mon Sep 17 00:00:00 2001 From: Alvin Bryan <107407814+alvinometric@users.noreply.github.com> Date: Mon, 24 Jun 2024 09:00:05 +0100 Subject: [PATCH] Remove axios in favour of native in API docs (#7312) 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) --- website/docusaurus.config.js | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 3666e3fb51..90418e064b 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -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: [