1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00

Docs(refactor): minor renaming of variables for clarity

This commit is contained in:
Thomas Heartman 2023-01-05 22:42:49 +01:00
parent 468d687a50
commit daf1ec05c1
No known key found for this signature in database
GPG Key ID: 47CFBB2D87C87664

View File

@ -15,7 +15,7 @@
// type ReadmeData = Readme & { repoUrl: string };
// all SDK repos and what they map to for the sidebar.
const SDKS_base = {
const sdksUnmapped = {
'unleash-client-go': {
sidebarName: 'Go',
branch: 'v3',
@ -34,7 +34,7 @@ const SDKS_base = {
};
const SDKS = Object.fromEntries(
Object.entries(SDKS_base).map(([repoName, repoData]) => {
Object.entries(sdksUnmapped).map(([repoName, repoData]) => {
const repoUrl = `https://github.com/Unleash/${repoName}`;
const slugName = (
repoData.slugName ?? repoData.sidebarName