Skip to content

Commit

Permalink
✨ Add docs for namespace member api (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
tosone authored Nov 24, 2023
1 parent 033b745 commit 13cf922
Show file tree
Hide file tree
Showing 24 changed files with 14,396 additions and 7,912 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
with:
fetch-depth: 0
lfs: true
- run: corepack enable
- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -41,7 +42,7 @@ jobs:
- name: Build website
run: |
cd docs
yarn install --frozen-lockfile
yarn install --immutable
yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Build web
run: |
cd web
yarn install --frozen-lockfile
yarn install --immutable
yarn build
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/local-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Build server
run: |
cd web
yarn install --frozen-lockfile
yarn install --immutable
yarn build
cd ..
make build
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Build web
run: |
cd web
yarn install --frozen-lockfile
yarn install --immutable
yarn build
- name: Setup minio
run: |
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
- name: Build web
run: |
cd web
yarn install --frozen-lockfile
yarn install --immutable
yarn build
- name: Setup minio
run: |
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
- name: Build web
run: |
cd web
yarn install --frozen-lockfile
yarn install --immutable
yarn build
- name: Setup minio
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,4 @@ pkg/**/*.html

*.tar.gz
web/.yarn/
docs/.yarn/
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY ./web /web

WORKDIR /web

RUN --mount=type=cache,target=/web/node_modules set -eux && corepack enable && yarn install --frozen-lockfile && yarn build
RUN --mount=type=cache,target=/web/node_modules set -eux && corepack enable && yarn install --immutable && yarn build

FROM alpine:${ALPINE_VERSION} as syft

Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY ./web /web

WORKDIR /web

RUN --mount=type=cache,target=/web/node_modules set -eux && corepack enable && yarn install --frozen-lockfile && yarn build
RUN --mount=type=cache,target=/web/node_modules set -eux && corepack enable && yarn install --immutable && yarn build

FROM alpine:${ALPINE_VERSION} as syft

Expand Down
1 change: 1 addition & 0 deletions docs/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
4 changes: 2 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require('prism-react-renderer').themes.github;
const darkCodeTheme = require('prism-react-renderer').themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down
26 changes: 13 additions & 13 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,20 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "2.4.3",
"@docusaurus/preset-classic": "2.4.3",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"@docusaurus/core": "3.0.0",
"@docusaurus/preset-classic": "3.0.0",
"@mdx-js/react": "^3.0.0",
"docusaurus-plugin-sass": "^0.2.5",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"sass": "^1.69.3",
"typed.js": "^2.0.12"
"prism-react-renderer": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.69.5",
"typed.js": "^2.1.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.4.3",
"@tsconfig/docusaurus": "^2.0.1",
"typescript": "^5.2.2"
"@docusaurus/module-type-aliases": "3.0.0",
"@tsconfig/docusaurus": "^2.0.2",
"typescript": "^5.3.2"
},
"browserslist": {
"production": [
Expand All @@ -45,5 +44,6 @@
},
"engines": {
"node": ">=16.14"
}
},
"packageManager": "yarn@4.0.2"
}
8 changes: 2 additions & 6 deletions docs/src/components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,12 @@ function Hero() {
/>
</h2>
<Link
className={clsx(
'button button--outline button--secondary button--lg hero-started',
)}
className='button button--outline button--secondary button--lg hero-started'
to={useBaseUrl('docs/sigma')}>
Get started
</Link>
<Link
className={clsx(
'button button--outline button--secondary button--lg hero-try-demo',
)}
className='button button--outline button--secondary button--lg hero-try-demo'
to={"https://sigma.tosone.cn"}>
Try demo
</Link>
Expand Down
Loading

0 comments on commit 13cf922

Please sign in to comment.