Skip to content

Commit

Permalink
wip: add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ragot committed Aug 2, 2024
1 parent cdba2d2 commit bf24311
Show file tree
Hide file tree
Showing 5 changed files with 2,036 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,14 @@ build:
CACHE .docusaurus
COPY . .
COPY --dir +update-operator-doc/* docs/operator
COPY --dir +update-membership-openapi/* openapi/membership.yaml
RUN yarn build
SAVE ARTIFACT build AS LOCAL build
SAVE ARTIFACT openapi/membership.yaml AS LOCAL openapi/membership.yaml


update-membership-openapi:
FROM core+base-image
WORKDIR /src
COPY (github.com/formancehq/stack/components/fctl+membership-openapi/openapi.yaml) .
SAVE ARTIFACT ./openapi.yaml AS LOCAL ./openapi/membership.yaml
9 changes: 9 additions & 0 deletions docs/cloud/membership.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Membership
hide_table_of_contents: true
---

import React from "react";
import RedocThemeComponent from "../../src/components/RedocThemeComponent";

<RedocThemeComponent id="api-membership" />
5 changes: 5 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ export default async function createConfig() {
spec: './openapi/generic-connector.yaml',
route: '/api/generic-connector',
id: 'api-generic-connector',
},
{
spec: './openapi/membership.yaml',
route: '/api/membership',
id: 'api-membership',
}
],
}
Expand Down
Loading

0 comments on commit bf24311

Please sign in to comment.