Skip to content

Commit 2eef86b

Browse files
committed
feat: modify remoteUrl & add api docs
1 parent a8dd04b commit 2eef86b

File tree

16 files changed

+2230
-8320
lines changed

16 files changed

+2230
-8320
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ const uniqueUserId = /* uniqueUserId */;
6161
const user = new FPUser(uniqueUserId);
6262
user.with("userId", /* userId */);
6363

64+
let remoteUrl = "https://featureprobe.io/server";
65+
// let remoteUrl = "http://localhost:4007"; // for local docker
66+
6467
const fp = new FeatureProbe({
65-
remoteUrl: "https://127.0.0.1:4007",
68+
remoteUrl,
6669
clientSdkKey: /* clientSdkKey */
6770
user,
6871
});
@@ -76,8 +79,11 @@ const uniqueUserId = /* uniqueUserId */;
7679
const user = new featureProbe.FPUser(uniqueUserId);
7780
user.with("userId", /* userId */);
7881

82+
let remoteUrl = "https://featureprobe.io/server";
83+
// let remoteUrl = "http://localhost:4007"; // for local docker
84+
7985
const fp = new featureProbe.FeatureProbe({
80-
remoteUrl: "https://127.0.0.1:4007",
86+
remoteUrl,
8187
clientSdkKey: /* clientSdkKey */
8288
user,
8389
});

doc/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.

doc/assets/highlight.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
:root {
2+
--light-code-background: #FFFFFF;
3+
--dark-code-background: #1E1E1E;
4+
}
5+
6+
@media (prefers-color-scheme: light) { :root {
7+
--code-background: var(--light-code-background);
8+
} }
9+
10+
@media (prefers-color-scheme: dark) { :root {
11+
--code-background: var(--dark-code-background);
12+
} }
13+
14+
:root[data-theme='light'] {
15+
--code-background: var(--light-code-background);
16+
}
17+
18+
:root[data-theme='dark'] {
19+
--code-background: var(--dark-code-background);
20+
}
21+
22+
pre, code { background: var(--code-background); }

doc/assets/main.js

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/assets/search.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)