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 838404c
Show file tree
Hide file tree
Showing 6 changed files with 2,048 additions and 6 deletions.
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
4 changes: 2 additions & 2 deletions docs/api.mdx → docs/api/index.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: API Reference
title: Stack
hide_table_of_contents: true
---

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

<RedocThemeComponent specID="api-v2-0" />
9 changes: 9 additions & 0 deletions docs/api/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 838404c

Please sign in to comment.