Skip to content

Commit

Permalink
fix: canonical urls ref is rendered on all pages (#1538)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Sep 24, 2024
1 parent b7233e7 commit 9a1ef12
Show file tree
Hide file tree
Showing 550 changed files with 17,609 additions and 18,597 deletions.
2 changes: 1 addition & 1 deletion fern/apis/fdr/definition/algolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
imports:
commons: ./commons.yml
apiReadV1Endpoint: ./api/v1/read/endpoint.yml
navigation: ./navigation/__package__.yml
navigation: ./navigation/v1/__package__.yml

types:
AlgoliaSearchIndex: string
Expand Down
8 changes: 1 addition & 7 deletions fern/apis/fdr/definition/api/v1/commons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,7 @@ types:

WithAvailability:
properties:
availability: optional<Availability>

Availability:
enum:
- GenerallyAvailable
- Deprecated
- Beta
availability: optional<rootCommons.Availability>

JqString: string

Expand Down
5 changes: 3 additions & 2 deletions fern/apis/fdr/definition/api/v1/db/endpoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ imports:

types:
DbEndpointDefinition:
extends: commons.WithDescription
extends:
- commons.WithDescription
- commons.WithAvailability
properties:
authed: optional<boolean>
availability: optional<commons.Availability>
defaultEnvironment: optional<rootCommons.EnvironmentId>
environments: optional<list<commons.Environment>>
method: rootCommons.HttpMethod
Expand Down
5 changes: 3 additions & 2 deletions fern/apis/fdr/definition/api/v1/read/endpoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ imports:

types:
EndpointDefinition:
extends: commons.WithDescription
extends:
- commons.WithDescription
- commons.WithAvailability
properties:
authed:
type: boolean
docs: When this is true, the api definition will have a union for auth
availability: optional<commons.Availability>
defaultEnvironment: optional<rootCommons.EnvironmentId>
environments: list<commons.Environment>
method: rootCommons.HttpMethod
Expand Down
9 changes: 9 additions & 0 deletions fern/apis/fdr/definition/commons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ types:
# - TRACE
# - CONNECT

Availability:
enum:
- Stable
- GenerallyAvailable
- InDevelopment
- PreRelease
- Deprecated
- Beta

errors:
BadRequestError:
status-code: 400
Expand Down
2 changes: 1 addition & 1 deletion fern/apis/fdr/definition/docs/v1/db/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ types:
properties:
version: rootCommons.VersionId
urlSlug: optional<string>
availability: optional<docsReadV1.VersionAvailability>
availability: optional<rootCommons.Availability>
config: UnversionedNavigationConfig

NavigationItem:
Expand Down
11 changes: 2 additions & 9 deletions fern/apis/fdr/definition/docs/v1/read/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ imports:
apiReadV1: ../../../api/v1/read/__package__.yml
apiCommonsV1: ../../../api/v1/commons.yml
commons: ../commons/commons.yml
navigation: ../../../navigation/__package__.yml
navigation: ../../../navigation/v1/__package__.yml

service:
base-path: /registry/docs
Expand Down Expand Up @@ -216,16 +216,9 @@ types:
properties:
version: rootCommons.VersionId
urlSlug: string
availability: optional<VersionAvailability>
availability: optional<rootCommons.Availability>
config: UnversionedNavigationConfig

VersionAvailability:
enum:
- Stable
- GenerallyAvailable
- Deprecated
- Beta

NavigationItem:
union:
page: PageMetadata
Expand Down
11 changes: 2 additions & 9 deletions fern/apis/fdr/definition/docs/v1/write/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
imports:
rootCommons: ../../../commons.yml
commons: ../commons/commons.yml
navigation: ../../../navigation/__package__.yml
navigation: ../../../navigation/v1/__package__.yml
apiCommonsV1: ../../../api/v1/commons.yml

service:
Expand Down Expand Up @@ -216,16 +216,9 @@ types:
properties:
version: rootCommons.VersionId
urlSlugOverride: optional<string>
availability: optional<VersionAvailability>
availability: optional<rootCommons.Availability>
config: UnversionedNavigationConfig

VersionAvailability:
enum:
- Stable
- GenerallyAvailable
- Deprecated
- Beta

NavigationItem:
union:
page: PageMetadata
Expand Down
Loading

0 comments on commit 9a1ef12

Please sign in to comment.