Skip to content

docs: Change buttons + remove duplicate redirection #2887

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ GO Feature Flag is a lightweight and open-source solution that provides a simple

The solution has been built to facilitate the usage of feature flags in your code with the easiest setup possible.

Originally, **GO Feature Flag** was designed as a solution exclusively for the `GO` language. With the new standardization of feature flags by the [Openfeature](https://openfeature.dev/) project, the solution is now available for multiple languages _([list of supported languages](https://gofeatureflag.org/docs/openfeature_sdk/sdk))_ through a simple API server called the relay proxy, which can be hosted.
Originally, **GO Feature Flag** was designed as a solution exclusively for the `GO` language. With the new standardization of feature flags by the [Openfeature](https://openfeature.dev/) project, the solution is now available for multiple languages _([list of supported languages](https://gofeatureflag.org/docs/sdk))_ through a simple API server called the relay proxy, which can be hosted.

> [!TIP]
> If you are not familiar with feature flags, I've written an [article](https://medium.com/better-programming/feature-flags-and-how-to-iterate-quickly-7e3371b9986) which explains why feature flags can fasten your iteration cycle.
Expand All @@ -64,10 +64,10 @@ Originally, **GO Feature Flag** was designed as a solution exclusively for the `
- Configuring your flags in various [format](https://gofeatureflag.org/docs/configure_flag/flag_format) (`JSON`, `TOML` and `YAML`).
- Adding complex [rules](https://gofeatureflag.org/docs/configure_flag/flag_format#rule-format) to target your users.
- Use a complex rollout strategy for your flags :
- [Run A/B testing experimentation](https://gofeatureflag.org/docs/configure_flag/rollout/experimentation).
- [Progressively rollout a feature](https://gofeatureflag.org/docs/configure_flag/rollout/progressive).
- [Schedule your flag updates](https://gofeatureflag.org/docs/configure_flag/rollout/scheduled).
- Exporting your flags usage data to various destinations such as _(`S3`, `Google cloud storage`, `file`, see the [_full list_](https://gofeatureflag.org/docs/configure_flag/export_flags_usage))_.
- [Run A/B testing experimentation](https://gofeatureflag.org/docs/docs/configure_flag/rollout-strategies/experimentation).
- [Progressively rollout a feature](https://gofeatureflag.org/docs/docs/configure_flag/rollout-strategies/progressive).
- [Schedule your flag updates](https://gofeatureflag.org/docs/docs/configure_flag/rollout-strategies/scheduled).
- Exporting your flags usage data to various destinations such as _(`S3`, `Google cloud storage`, `file`, `kubernetes`, see the [_full list_](https://gofeatureflag.org/docs/docs/integrations/store-flags-configuration#available-retrievers))_.
- Getting notified when a flag has been changed _(`webhook` and `slack`)_.
- Use **GO Feature Flag** in several languages with **Open Feature SDKs**.
- Support your full stack, from the backend to the frontend including your mobile apps.
Expand Down Expand Up @@ -141,11 +141,11 @@ docker run \

```

_If you don't want to use docker to install the **relay proxy** you can follow other ways to install it in the [documentation](https://gofeatureflag.org/docs/relay_proxy/install_relay_proxy)._
_If you don't want to use docker to install the **relay proxy** you can follow other ways to install it in the [documentation](https://gofeatureflag.org/docs/docs/relay-proxy/install_relay_proxy)._

### Use Open Feature SDK

_In this example, we are using the **nodejs SDK**, but you can check other languages [here](https://gofeatureflag.org/docs/openfeature_sdk/sdk)._
_In this example, we are using the **nodejs SDK**, but you can check other languages [here](https://gofeatureflag.org/docs/sdk)._


#### Install dependencies
Expand Down Expand Up @@ -241,7 +241,7 @@ PollingInterval, the default value is 60 seconds).*

> ℹ info
This is a basic configuration to test locally, in production it is better to use a remote place to store your feature flag configuration file.
Look at the list of available options in the [**Store your feature flag file** page](https://gofeatureflag.org/docs/go_module/store_file/).
Look at the list of available options in the [**Store your feature flag file** page](https://gofeatureflag.org/docs/docs/integrations/store-flags-configuration#available-retrievers).

### Evaluate your flags
Now you can evaluate your flags anywhere in your code.
Expand Down Expand Up @@ -302,7 +302,7 @@ The available retrievers are:
- **AzBlobStorage**
- ...

_[See the full list and more information.](https://gofeatureflag.org/docs/configure_flag/store_your_flags)_
_[See the full list and more information.](https://gofeatureflag.org/docs/docs/integrations/store-flags-configuration#available-retrievers)_

## Flags file format
**GO Feature Flag** core feature is to centralize all your feature flags in a single file and to avoid hosting and maintaining a backend server to manage them.
Expand Down Expand Up @@ -449,7 +449,7 @@ end = 2021-03-21T05:00:00.100Z

</details>

For detailed information on the fields required to create a flag, please refer to the [documentation](https://gofeatureflag.org/docs/configure_flag/flag_format).
For detailed information on the fields required to create a flag, please refer to the [documentation](https://gofeatureflag.org/docs/docs/configure_flag/target-with-flags).

## Rule format

Expand Down Expand Up @@ -532,10 +532,10 @@ But it does not have to, having a complex **rollout** strategy allows you to hav

### Complex rollout strategy available

- [Canary releases](https://gofeatureflag.org/docs/configure_flag/rollout/canary) - impact randomly a subset of your users.
- [Progressive rollout](https://gofeatureflag.org/docs/configure_flag/rollout/progressive) - increase the percentage of your flag over time.
- [Scheduled rollout](https://gofeatureflag.org/docs/configure_flag/rollout/scheduled/) - update your flag over time.
- [Experimentation rollout](https://gofeatureflag.org/docs/configure_flag/rollout/experimentation) - serve your feature only for a determined time *(perfect for A/B testing)*.
- [Percentages rollout](https://gofeatureflag.org/docs/docs/configure_flag/rollout-strategies/percentage) - impact randomly a subset of your users.
- [Progressive rollout](https://gofeatureflag.org/docs/docs/configure_flag/rollout-strategies/progressive) - increase the percentage of your flag over time.
- [Scheduled rollout](https://gofeatureflag.org/docs/docs/configure_flag/rollout-strategies/scheduled) - update your flag over time.
- [Experimentation rollout](https://gofeatureflag.org/docs/docs/configure_flag/rollout-strategies/experimentation) - serve your feature only for a determined time *(perfect for A/B testing)*.

## Notifiers
If you want to be informed when a flag has changed, you can configure a [**notifier**](https://pkg.go.dev/github.com/thomaspoignant/go-feature-flag#NotifierConfig).
Expand Down
2 changes: 1 addition & 1 deletion website/docs/sdk/server_providers/openfeature_go.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ This code block shows you how you can create a client that you can use in your a
import (
// ...
gofeatureflag "github.com/open-feature/go-sdk-contrib/providers/go-feature-flag/pkg"
of "github.com/open-feature/go-sdk/pkg/openfeature"
of "github.com/open-feature/go-sdk/openfeature"
)

// ...
Expand Down
32 changes: 0 additions & 32 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,10 @@ const config = {
from: '/docs/configure_flag/rollout/progressive',
to: '/docs/configure_flag/rollout-strategies/progressive',
},
{
from: '/docs/go_module/store_file/github',
to: '/docs/integrations/store-flags-configuration/github',
},
{
from: '/docs/category/configure-your-feature-flags',
to: '/docs/configure_flag/create-flags',
},
{
from: '/docs/openfeature_sdk/server_providers/openfeature_go',
to: '/docs/sdk/server_providers/openfeature_go',
},
{
from: '/docs/openfeature_sdk/server_providers/openfeature_ruby',
to: '/docs/sdk/server_providers/openfeature_ruby',
Expand All @@ -83,14 +75,6 @@ const config = {
from: '/docs/go_module/store_file/mongodb',
to: '/docs/integrations/store-flags-configuration/mongodb',
},
{
from: '/docs/openfeature_sdk/server_providers/openfeature_java',
to: '/docs/sdk/server_providers/openfeature_java',
},
{
from: '/docs/openfeature_sdk/server_providers/openfeature_javascript',
to: '/docs/sdk/server_providers/openfeature_javascript',
},
{
from: '/docs/relay_proxy/deploy_relay_proxy',
to: '/docs/relay-proxy/deployment',
Expand All @@ -99,22 +83,10 @@ const config = {
from: '/docs/go_module/store_file/github',
to: '/docs/integrations/store-flags-configuration/github',
},
{
from: '/docs/category/configure-your-feature-flags',
to: '/docs/configure_flag/create-flags',
},
{
from: '/docs/openfeature_sdk/server_providers/openfeature_go',
to: '/docs/sdk/server_providers/openfeature_go',
},
{
from: '/docs/openfeature_sdk/server_providers/openfeature_ruby',
to: '/docs/sdk/server_providers/openfeature_ruby',
},
{
from: '/docs/go_module/store_file/mongodb',
to: '/docs/integrations/store-flags-configuration/mongodb',
},
{
from: '/docs/openfeature_sdk/server_providers/openfeature_java',
to: '/docs/sdk/server_providers/openfeature_java',
Expand All @@ -123,10 +95,6 @@ const config = {
from: '/docs/openfeature_sdk/server_providers/openfeature_javascript',
to: '/docs/sdk/server_providers/openfeature_javascript',
},
{
from: '/docs/relay_proxy/deploy_relay_proxy',
to: '/docs/relay-proxy/deployment',
},
{
from: '/docs/go_module/store_file/custom',
to: '/docs/integrations/store-flags-configuration#custom-retriever',
Expand Down
46 changes: 20 additions & 26 deletions website/src/components/home/HomeHeader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,36 +71,30 @@ export function HomeHeader() {
/>
</Link>
</div>
<div className={styles.availableGH}>
<Link
to={siteConfig.customFields.github}
type="button"
className={clsx('btn btn-dark btn-labeled btn-lg')}>
<button className="pushy__btn pushy__btn--df pushy__btn--black">
<span className="btn-label">
<i className="fa-brands fa-github"></i>
</span>{' '}
<div className={'text-center items-center gap-30'}>
<div className="relative inline-flex group">
<div className="absolute transitiona-all duration-1000 opacity-70 -inset-px bg-gradient-to-r from-[#44BCFF] via-[#FF44EC] to-[#FF675E] rounded-xl blur-lg group-hover:opacity-100 group-hover:-inset-1 group-hover:duration-200 animate-tilt"></div>
<Link
to={siteConfig.customFields.github}
title="Available on GitHub"
className="hover:no-underline hover:text-gray-500 relative inline-flex items-center justify-center px-8 py-4 text-lg font-bold text-white transition-all duration-200 bg-gray-900 font-pj rounded-xl focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-900">
<i className="fa-brands fa-github mr-4"></i>
Available on GitHub
</button>
</Link>
<Link
to={'/docs/getting-started'}
type="button"
className={clsx('btn btn-dark btn-labeled btn-lg')}>
<button
className={clsx(
'pushy__btn pushy__btn--df',
styles.pushy__btnGoff
)}>
<span className="btn-label">
<i className="fa-solid fa-circle-right"></i>
</span>{' '}
</Link>
</div>
<div className="relative inline-flex group ml-5 mt-4">
<div className="border-gray-700 border-4 absolute transitiona-all duration-1000 opacity-70 -inset-px bg-gradient-to-r from-[#44BCFF] via-[#FF44EC] to-[#FF675E] rounded-xl blur-lg group-hover:opacity-100 group-hover:-inset-1 group-hover:duration-200 animate-tilt hover:no-underline"></div>
<Link
to={'/docs/getting-started'}
title="Get Started"
className="hover:no-underline hover:text-gray-700 relative inline-flex items-center justify-center px-8 py-4 text-lg font-bold text-white transition-all duration-200 bg-[#9fbeb3] font-pj rounded-xl focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-900">
<i className="fa-solid fa-circle-right mr-4"></i>
Get Started
</button>
</Link>
</Link>
</div>
</div>
</div>
<div className="col col--6">
<div className="max-md:hidden">
<div className="hero-image">
<img src={siteConfig.customFields.logo} alt="hero-img" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/home/features/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function Rollout() {
</ul>
</div>
</div>
<div className={clsx(styles.imgRollout)}>
<div className={clsx(styles.imgRollout, 'max-md:hidden')}>
<div className={styles.featureImage}>
<img
src="img/features/rollout.png"
Expand Down
Loading