Skip to content

Commit

Permalink
autogen(docs): generate and format documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Apr 7, 2021
1 parent d6745dd commit 6cd2415
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 41 deletions.
2 changes: 1 addition & 1 deletion docs/docs/guides/expand-api-display-who-has-access.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tree of everyone who has access to that file:

<CodeTabs
sampleId="expand-api-display-access/01-expand-beach"
version="v0.6.0-alpha.1.pre.6"
version="v0.6.0-alpha.1.pre.7"
/>

### Maximum Tree Depth
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/guides/list-api-display-objects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ chats, the application uses Keto's list API:

<CodeTabs
sampleId="list-api-display-objects/01-list-PM"
version="v0.6.0-alpha.1.pre.6"
version="v0.6.0-alpha.1.pre.7"
/>

As a response, the application gets the list of all chats the user `PM` is a
Expand All @@ -103,7 +103,7 @@ In our example, a user wants to see who is a member of the `coffee-break` group:

<CodeTabs
sampleId="list-api-display-objects/02-list-coffee-break"
version="v0.6.0-alpha.1.pre.6"
version="v0.6.0-alpha.1.pre.7"
/>

## Application Context
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/guides/simple-access-check-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ Try this yourself by first adding the relation tuple using the

<CodeTabs
sampleId="simple-access-check-guide/00-write-direct-access"
version="v0.6.0-alpha.1.pre.6"
version="v0.6.0-alpha.1.pre.7"
/>

Now, we can use the check-API to verify that `john` is allowed to `decypher` the
message:

<CodeTabs
sampleId="simple-access-check-guide/01-check-direct-access"
version="v0.6.0-alpha.1.pre.6"
version="v0.6.0-alpha.1.pre.7"
/>

### Indirectly Defined Access
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ binaries, Docker images, and support a number of package managers.
We recommend using Docker to run Ory Keto:

```shell
$ docker pull oryd/keto:v0.6.0-alpha.1.pre.6
$ docker run --rm -it oryd/keto:v0.6.0-alpha.1.pre.6 help
$ docker pull oryd/keto:v0.6.0-alpha.1.pre.7
$ docker run --rm -it oryd/keto:v0.6.0-alpha.1.pre.7 help
```

## macOS
Expand All @@ -31,7 +31,7 @@ On linux, you can use `bash <(curl ...)` to fetch the latest stable binary
using:

```shell
$ bash <(curl https://raw.githubusercontent.com/ory/keto/master/install.sh) -b . v0.6.0-alpha.1.pre.6
$ bash <(curl https://raw.githubusercontent.com/ory/keto/master/install.sh) -b . v0.6.0-alpha.1.pre.7
$ ./keto help
```

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ video service client would do. In this example we will use the Keto CLI client.
If you want to run the Keto CLI within **Docker**, set the alias

```shell
alias keto="docker run -it --network cat-videos-example_default -e KETO_READ_REMOTE=\"keto:4466\" oryd/keto:v0.6.0-alpha.1.pre.6"
alias keto="docker run -it --network cat-videos-example_default -e KETO_READ_REMOTE=\"keto:4466\" oryd/keto:v0.6.0-alpha.1.pre.7"
```

in your terminal session. Alternatively, you need to set the remote endpoint so
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ namespaces: http://a.aaa
# - Windows Command Line (CMD):
# > set VERSION=<value>
#
version: v0.6.0-alpha.1.pre.6
version: v0.6.0-alpha.1.pre.7

## Data Source Name ##
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tree of everyone who has access to that file:

<CodeTabs
sampleId="expand-api-display-access/01-expand-beach"
version="v0.6.0-alpha.1.pre.6"
version="v0.6.0-alpha.1.pre.7"
/>

### Maximum Tree Depth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ chats, the application uses Keto's list API:

<CodeTabs
sampleId="list-api-display-objects/01-list-PM"
version="v0.6.0-alpha.1.pre.6"
version="v0.6.0-alpha.1.pre.7"
/>

As a response, the application gets the list of all chats the user `PM` is a
Expand All @@ -103,7 +103,7 @@ In our example, a user wants to see who is a member of the `coffee-break` group:

<CodeTabs
sampleId="list-api-display-objects/02-list-coffee-break"
version="v0.6.0-alpha.1.pre.6"
version="v0.6.0-alpha.1.pre.7"
/>

## Application Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ Try this yourself by first adding the relation tuple using the

<CodeTabs
sampleId="simple-access-check-guide/00-write-direct-access"
version="v0.6.0-alpha.1.pre.6"
version="v0.6.0-alpha.1.pre.7"
/>

Now, we can use the check-API to verify that `john` is allowed to `decypher` the
message:

<CodeTabs
sampleId="simple-access-check-guide/01-check-direct-access"
version="v0.6.0-alpha.1.pre.6"
version="v0.6.0-alpha.1.pre.7"
/>

### Indirectly Defined Access
Expand Down
6 changes: 3 additions & 3 deletions docs/versioned_docs/version-v0.6/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ binaries, Docker images, and support a number of package managers.
We recommend using Docker to run Ory Keto:

```shell
$ docker pull oryd/keto:v0.6.0-alpha.1.pre.6
$ docker run --rm -it oryd/keto:v0.6.0-alpha.1.pre.6 help
$ docker pull oryd/keto:v0.6.0-alpha.1.pre.7
$ docker run --rm -it oryd/keto:v0.6.0-alpha.1.pre.7 help
```

## macOS
Expand All @@ -31,7 +31,7 @@ On linux, you can use `bash <(curl ...)` to fetch the latest stable binary
using:

```shell
$ bash <(curl https://raw.githubusercontent.com/ory/keto/master/install.sh) -b . v0.6.0-alpha.1.pre.6
$ bash <(curl https://raw.githubusercontent.com/ory/keto/master/install.sh) -b . v0.6.0-alpha.1.pre.7
$ ./keto help
```

Expand Down
18 changes: 9 additions & 9 deletions docs/versioned_docs/version-v0.6/milestones.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ Affects documentation.

#### Issues

- [ ] Next Gen Documentation
([keto#420](https://github.com/ory/keto/issues/420)) -
[@Patrik](https://github.com/zepatrik)
- [x] Improve documentation of Expand API's max_depth parameter
([keto#419](https://github.com/ory/keto/issues/419)) -
[@Patrik](https://github.com/zepatrik)
- [x] Next Gen Documentation
([keto#420](https://github.com/ory/keto/issues/420)) -
[@Patrik](https://github.com/zepatrik)
- [x] Do not use latest tags in docker-compose examples
([keto#481](https://github.com/ory/keto/issues/481)) -
[@Patrik](https://github.com/zepatrik)
Expand All @@ -163,18 +163,15 @@ Blocks milestones or other issues or pulls.
[@hackerman](https://github.com/aeneasr),
[@Patrik](https://github.com/zepatrik),
[@Robin Brämer](https://github.com/robinbraemer)
- [ ] Next Gen Documentation
([keto#420](https://github.com/ory/keto/issues/420)) -
[@Patrik](https://github.com/zepatrik)
- [ ] Require relations to be defined in the namespace config
([keto#509](https://github.com/ory/keto/issues/509)) -
[@Patrik](https://github.com/zepatrik)
- [x] Define and architect SQL schema and queries for querying relations
([keto#300](https://github.com/ory/keto/issues/300)) -
[@Patrik](https://github.com/zepatrik)
- [x] Ensure goreleaser config is still working
([keto#410](https://github.com/ory/keto/issues/410)) -
[@hackerman](https://github.com/aeneasr)
- [x] Next Gen Documentation
([keto#420](https://github.com/ory/keto/issues/420)) -
[@Patrik](https://github.com/zepatrik)
- [x] Add health check and version endpoints to read/write REST (and gRPC?) API
([keto#422](https://github.com/ory/keto/issues/422)) -
[@Patrik](https://github.com/zepatrik)
Expand Down Expand Up @@ -320,6 +317,9 @@ Blocks milestones or other issues or pulls.
- [ ] Use fizz migrations to generate SQL migrations
([keto#448](https://github.com/ory/keto/issues/448)) -
[@Patrik](https://github.com/zepatrik)
- [ ] Require relations to be defined in the namespace config
([keto#509](https://github.com/ory/keto/issues/509)) -
[@Patrik](https://github.com/zepatrik)
- [x] Write benchmark tests for relationtuple package
([keto#301](https://github.com/ory/keto/issues/301)) -
[@Patrik](https://github.com/zepatrik)
Expand Down
2 changes: 1 addition & 1 deletion docs/versioned_docs/version-v0.6/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ video service client would do. In this example we will use the Keto CLI client.
If you want to run the Keto CLI within **Docker**, set the alias

```shell
alias keto="docker run -it --network cat-videos-example_default -e KETO_READ_REMOTE=\"keto:4466\" oryd/keto:v0.6.0-alpha.1.pre.6"
alias keto="docker run -it --network cat-videos-example_default -e KETO_READ_REMOTE=\"keto:4466\" oryd/keto:v0.6.0-alpha.1.pre.7"
```

in your terminal session. Alternatively, you need to set the remote endpoint so
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ namespaces: http://a.aaa
# - Windows Command Line (CMD):
# > set VERSION=<value>
#
version: v0.6.0-alpha.1.pre.6
version: v0.6.0-alpha.1.pre.7

## Data Source Name ##
#
Expand Down
9 changes: 4 additions & 5 deletions docs/versioned_docs/version-v0.6/reference/proto-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,10 @@ Example use cases (namespace is always required):

The response of a ReadService.ListRelationTuples RPC.

| Field | Type | Label | Description |
| --------------- | ----------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| relation_tuples | [RelationTuple](#ory.keto.acl.v1alpha1.RelationTuple) | repeated | The relation tuples matching the list request. |
| next_page_token | [string](#string) | | The token required to get the next page. Please use the `is_last_page` field to determine whether this was the last page. |
| is_last_page | [bool](#bool) | | Whether this is the last page. Using the `next_page_token` in a subsequent request if this field is true will return an error. |
| Field | Type | Label | Description |
| --------------- | ----------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------ |
| relation_tuples | [RelationTuple](#ory.keto.acl.v1alpha1.RelationTuple) | repeated | The relation tuples matching the list request. |
| next_page_token | [string](#string) | | The token required to get the next page. If this is the last page, the token will be the empty string. |

## ory/keto/acl/v1alpha1/version.proto

Expand Down
11 changes: 4 additions & 7 deletions docs/versioned_docs/version-v0.6/reference/rest-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,6 @@ Status Code **500**

```json
{
"is_last_page": true,
"next_page_token": "string",
"relation_tuples": [
{
Expand Down Expand Up @@ -1996,7 +1995,6 @@ _Represents the response for a check request._

```json
{
"is_last_page": true,
"next_page_token": "string",
"relation_tuples": [
{
Expand All @@ -2011,11 +2009,10 @@ _Represents the response for a check request._

#### Properties

| Name | Type | Required | Restrictions | Description |
| --------------- | ------------------------------------------------------- | -------- | ------------ | ----------- |
| is_last_page | boolean | false | none | none |
| next_page_token | string | false | none | none |
| relation_tuples | [[InternalRelationTuple](#schemainternalrelationtuple)] | false | none | none |
| Name | Type | Required | Restrictions | Description |
| --------------- | ------------------------------------------------------- | -------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| next_page_token | string | false | none | The opaque token to provide in a subsequent request<br/>to get the next page. It is the empty string iff this is<br/>the last page. |
| relation_tuples | [[InternalRelationTuple](#schemainternalrelationtuple)] | false | none | none |

<a id="tocShealthnotreadystatus"></a>

Expand Down

0 comments on commit 6cd2415

Please sign in to comment.