Skip to content

Commit

Permalink
fix: build the typescript SDK through submodules. (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo authored Jan 3, 2024
1 parent 58268ee commit 2304a45
Show file tree
Hide file tree
Showing 10 changed files with 18,666 additions and 31,366 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
fetch-depth: 0

- name: Update submodules
run: |
git submodule update --remote --recursive
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Install dependencies
run: yarn install
- name: Build website
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
ref: ${{ github.event.inputs.release-branch }}
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- uses: crazy-max/ghaction-import-gpg@v5
id: import_gpg
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
path = atala-prism-products
url = https://github.com/input-output-hk/atala-prism-products.git
branch = main
[submodule "atala-prism-wallet-sdk-ts"]
path = atala-prism-wallet-sdk-ts
url = https://github.com/input-output-hk/atala-prism-wallet-sdk-ts.git
1 change: 1 addition & 0 deletions atala-prism-wallet-sdk-ts
28 changes: 20 additions & 8 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const path = require('path')
// const {useColorMode} = require('@docusaurus/theme-common');
// const {colorMode} = useColorMode()
// console.log(colorMode)
Expand Down Expand Up @@ -40,7 +41,7 @@ const config = {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
})
],

/**
Expand All @@ -56,13 +57,14 @@ const config = {
spec: 'atala-prism-building-blocks/prism-agent/service/api/http/prism-agent-openapi-spec.yaml',
route: '/agent-api/',
},
{
spec: "atala-prism-products/enterprise-services/api-spec/enterprise-services-spec.yml",
route: "/enterprise-api/",
}
// {
// spec: "atala-prism-products/enterprise-services/api-spec/enterprise-services-spec.yml",
// route: "/enterprise-api/",
// }
]
},
],

],
plugins: [
[
Expand All @@ -74,7 +76,15 @@ const config = {
sidebarPath: require.resolve('./atala-prism-building-blocks/docs/docusaurus/sidebars.js'),
},
],
require.resolve('docusaurus-lunr-search')
require.resolve('docusaurus-lunr-search'),
[
'@docusaurus/plugin-content-docs',
{
id: 'atala-prism-wallet-sdk-ts',
path: 'atala-prism-wallet-sdk-ts/docs/sdk',
routeBasePath: 'atala-prism-wallet-sdk-ts',
},
]
],

themes: ["docusaurus-theme-openapi-docs", '@docusaurus/theme-mermaid', "docusaurus-theme-redoc"],
Expand All @@ -89,6 +99,7 @@ const config = {
srcDark: "img/logo-navbar-light.png",
},
items: [

{
type: 'doc',
docId: 'getting-started',
Expand Down Expand Up @@ -123,8 +134,9 @@ const config = {
href: 'https://input-output-hk.github.io/atala-prism-wallet-sdk-swift/',
},
{
label: 'Wallet SDK TS',
href: 'https://input-output-hk.github.io/atala-prism-wallet-sdk-ts/',
to: '/atala-prism-wallet-sdk-ts/',
label: 'Wallet SDK Typescript',
activeBaseRegex: `/atala-prism-wallet-sdk-ts/`
},
{
label: 'Wallet SDK Kotlin Multiplatform',
Expand Down
Loading

0 comments on commit 2304a45

Please sign in to comment.