Skip to content

Commit

Permalink
docs: set links, fix stars exception, improve rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Jan 28, 2025
1 parent 8c9f707 commit 7a471b8
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 55 deletions.
80 changes: 38 additions & 42 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const getUnleashRepoStars = async () => {
const formattedStars =
unleashRepoStars >= 1000
? `${(unleashRepoStars / 1000).toFixed(1)}k`
: unleashRepoStars.toString();
: unleashRepoStars?.toString() || '';
return formattedStars;
};

Expand Down Expand Up @@ -215,39 +215,39 @@ class="header-github-link"
items: [
{
label: 'Node.js',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/node',
},
{
label: 'Java',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/java',
},
{
label: 'Go',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/go',
},
{
label: 'Rust',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/rust',
},
{
label: 'Ruby',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/ruby',
},
{
label: 'Python',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/python',
},
{
label: '.NET',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/dotnet',
},
{
label: 'PHP',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/php',
},
{
label: 'All SDKs',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks',
},
],
},
Expand All @@ -256,31 +256,31 @@ class="header-github-link"
items: [
{
label: 'JavaScript',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/javascript-browser',
},
{
label: 'React',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/react',
},
{
label: 'Next.js',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/next-js',
},
{
label: 'Vue',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/vue',
},
{
label: 'iOS',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/ios-proxy',
},
{
label: 'Android',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/android-proxy',
},
{
label: 'Flutter',
href: 'https://github.com/Unleash/unleash',
to: '/reference/sdks/flutter',
},
],
},
Expand All @@ -289,39 +289,39 @@ class="header-github-link"
items: [
{
label: 'Secure, scalable feature flags',
href: 'https://github.com/Unleash/unleash',
to: '/topics/feature-flags/feature-flag-best-practices',
},
{
label: 'Rollbacks',
href: 'https://github.com/Unleash/unleash',
href: 'https://www.getunleash.io/feature-flag-use-cases-rollbacks',
},
{
label: 'FedRAMP, SOC2, ISO2700 compliance',
href: 'https://github.com/Unleash/unleash',
to: '/using-unleash/compliance/compliance-overview',
},
{
label: 'Progressive or gradual rollouts',
href: 'https://github.com/Unleash/unleash',
to: '/feature-flag-tutorials/use-cases/gradual-rollout',
},
{
label: 'Trunk-based development',
href: 'https://github.com/Unleash/unleash',
to: '/feature-flag-tutorials/use-cases/trunk-based-development',
},
{
label: 'Software kill switches',
href: 'https://github.com/Unleash/unleash',
href: 'https://www.getunleash.io/feature-flag-use-cases-software-kill-switches',
},
{
label: 'A/B testing',
href: 'https://github.com/Unleash/unleash',
to: '/feature-flag-tutorials/use-cases/a-b-testing',
},
{
label: 'Feature management',
href: 'https://github.com/Unleash/unleash',
href: 'https://www.getunleash.io/blog/feature-management',
},
{
label: 'Canary releases',
href: 'https://github.com/Unleash/unleash',
href: 'https://www.getunleash.io/blog/canary-deployment-what-is-it',
},
],
},
Expand All @@ -330,56 +330,52 @@ class="header-github-link"
items: [
{
label: 'Quickstart',
href: 'https://github.com/Unleash/unleash',
to: '/quickstart',
},
{
label: 'Unleash architecture',
href: 'https://github.com/Unleash/unleash',
to: '/understanding-unleash/unleash-overview',
},
{
label: 'Pricing',
href: 'https://github.com/Unleash/unleash',
href: 'https://www.getunleash.io/pricing',
},
{
label: 'Open live demo',
href: 'https://github.com/Unleash/unleash',
href: 'https://app.unleash-hosted.com/demo/login',
},
{
label: 'Open source',
href: 'https://github.com/Unleash/unleash',
href: 'https://www.getunleash.io/open-source',
},
{
label: 'Enterprise feature management platform',
href: 'https://github.com/Unleash/unleash',
href: 'https://www.getunleash.io/enterprise-feature-management-platform',
},
{
label: 'Unleash vs LaunchDarkly',
href: 'https://github.com/Unleash/unleash',
href: 'https://www.getunleash.io/unleash-vs-launchdarkly',
},
],
},
{
title: 'About & Support',
title: 'Support',
items: [
{
label: 'getunleash.io',
href: 'https://github.com/Unleash/unleash',
},
{
label: 'Help center',
href: 'https://github.com/Unleash/unleash',
href: 'https://www.getunleash.io/support',
},
{
label: 'Status',
href: 'https://github.com/Unleash/unleash',
href: 'https://unleash.instatus.com',
},
{
label: 'Roadmap',
href: 'https://github.com/Unleash/unleash',
href: 'https://github.com/orgs/Unleash/projects/10/views/1',
},
{
label: 'Changelog',
href: 'https://github.com/Unleash/unleash',
href: 'https://github.com/Unleash/unleash/releases',
},
],
},
Expand Down
20 changes: 19 additions & 1 deletion website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,12 @@ main .theme-doc-breadcrumbs {
margin: 0;
}

.footer__links {
gap: 16px;
width: 100%;
max-width: 1000px;
}

.footer-separator {
height: 1px;
background: #d9d9d9;
Expand All @@ -401,7 +407,7 @@ html[data-theme="dark"] .footer-separator {
}

.footer-description p {
line-height: 14px;
line-height: 18px;
font-weight: 400;
margin-bottom: 0;
}
Expand All @@ -423,11 +429,23 @@ html[data-theme="dark"] .footer-separator {
fill: var(--unleash-color-footer-icon);
}

.footer__col {
padding: 0;
}

.footer__title {
font-size: 12px;
margin-bottom: 4px;
}

.footer__item {
margin-top: 10px;
}

.footer__link-item {
line-height: 18px;
}

.footer__link-item > svg {
display: none;
}
Expand Down
13 changes: 8 additions & 5 deletions website/src/theme/Footer/icons/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 8 additions & 3 deletions website/src/theme/Footer/icons/slack.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions website/src/theme/Footer/icons/stackoverflow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7a471b8

Please sign in to comment.