Skip to content

Commit

Permalink
add provider docs
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
  • Loading branch information
beeme1mr committed Nov 21, 2023
1 parent 2aa68fa commit a4fb65b
Show file tree
Hide file tree
Showing 12 changed files with 358 additions and 246 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM squidfunk/mkdocs-material
RUN pip install mkdocs-include-markdown-plugin
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,5 @@ generate-proto-docs: pull-schemas-submodule

.PHONY: run-web-docs
run-web-docs: generate-docs generate-proto-docs
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
docker build -t squidfunk/mkdocs-material . \
&& docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
32 changes: 8 additions & 24 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,13 @@ go install github.com/open-feature/flagd/flagd@latest

---

## In-Process
## flagd Providers for OpenFeature

### :fontawesome-brands-golang: Go in-process provider
Leverage flagd in your application using [OpenFeature](https://openfeature.dev/) and a flagd [provider](https://openfeature.dev/docs/reference/concepts/provider).
Use the table below to see what provides are available.

[flagd-in-process/pkg](https://pkg.go.dev/github.com/open-feature/go-sdk-contrib/providers/flagd-in-process/pkg)

```shell
go get github.com/open-feature/go-sdk-contrib/providers/flagd-in-process/pkg@latest
```

### :fontawesome-brands-java: Java in-process provider

#### Maven

```xml
<dependency>
<groupId>dev.openfeature.contrib.providers</groupId>
<artifactId>flagd</artifactId>
</dependency>
```

#### Gradle

```gradle
implementation 'dev.openfeature.contrib.providers:flagd'
```
| Technology | RPC | in-process |
| -------------------------------------------------------- | ---------------- | ---------------- |
| :fontawesome-brands-golang: [Go](./providers/go.md) | :material-check: | :material-check: |
| :fontawesome-brands-java: [Java](./providers/java.md) | :material-check: | :material-check: |
| :fontawesome-brands-node-js: [Node.JS](./providers/nodejs.md) | :material-check: | :material-check: |
9 changes: 9 additions & 0 deletions docs/providers/dotnet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# .NET provider

## Installation

{%
include "https://raw.githubusercontent.com/open-feature/dotnet-sdk-contrib/main/src/OpenFeature.Contrib.Providers.Flagd/README.md"
start="## Install dependencies"
%}
13 changes: 13 additions & 0 deletions docs/providers/go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# Go provider

{%
include "https://raw.githubusercontent.com/open-feature/go-sdk-contrib/main/providers/flagd/README.md"
start="## Setup"
end="## License"
%}

{%
include "https://raw.githubusercontent.com/open-feature/go-sdk-contrib/main/providers/flagd-in-process/README.md"
end="## License"
%}
9 changes: 9 additions & 0 deletions docs/providers/java.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# Java provider

## Installation

{%
include "https://raw.githubusercontent.com/open-feature/java-sdk-contrib/main/providers/flagd/README.md"
start="## Installation"
%}
10 changes: 10 additions & 0 deletions docs/providers/nodejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# Node.js provider

## Installation

{%
include "https://raw.githubusercontent.com/open-feature/js-sdk-contrib/main/libs/providers/flagd/README.md"
start="## Installation"
end="## Building"
%}
9 changes: 9 additions & 0 deletions docs/providers/php.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# PHP provider

## Installation

{%
include "https://raw.githubusercontent.com/open-feature/php-sdk-contrib/main/providers/Flagd/README.md"
start="## Installation"
%}
9 changes: 9 additions & 0 deletions docs/providers/web.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# Web provider

## Installation

{%
include "https://github.com/open-feature/js-sdk-contrib/blob/main/libs/providers/flagd-web/README.md"
start="## Installation"
%}
14 changes: 12 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ markdown_extensions:
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.snippets:
url_download: true
- admonition
- pymdownx.details
- pymdownx.superfences:
Expand All @@ -68,6 +69,13 @@ nav:
- 'Feature Flagging': 'concepts/feature-flagging.md'
- 'Syncs': 'concepts/syncs.md'
- 'Architecture': 'architecture.md'
- 'Providers':
- 'Go': 'providers/go.md'
- 'Java': 'providers/java.md'
- 'Node.JS': 'providers/nodejs.md'
- 'PHP': 'providers/php.md'
- '.NET': 'providers/dotnet.md'
- 'Web': 'providers/web.md'
- 'Reference':
- 'CLI':
- 'Overview': 'reference/flagd-cli/flagd.md'
Expand Down Expand Up @@ -99,4 +107,6 @@ nav:
- 'Troubleshooting': 'troubleshooting.md'
plugins:
- social
- search
- search
# https://github.com/mondeja/mkdocs-include-markdown-plugin
- include-markdown
493 changes: 274 additions & 219 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pymdown-extensions = "^10.1"
fontawesome-markdown = "^0.2.6"
pillow = "^10.0.0"
cairosvg = "^2.7.1"
mkdocs-include-markdown-plugin = "^6.0.4"


[build-system]
Expand Down

0 comments on commit a4fb65b

Please sign in to comment.