Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bcbogdan committed Jan 1, 2025
1 parent 10c1769 commit 0ff3eff
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 64 deletions.
50 changes: 0 additions & 50 deletions .circleci/Dockerfile

This file was deleted.

30 changes: 25 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,32 @@ commands:
at: ./workspace
- run: cd ./workspace/v3/scripts/code-type-checking/<<parameters.language>> && docker build -t code-check .
- run: docker run code-check
git-shallow-clone:
steps:
- run:
name: Add github.com to known hosts
command: |
mkdir -p ~/.ssh
touch ~/.ssh/known_hosts
ls ~/.ssh
ssh-keyscan -H github.com > ~/.ssh/known_hosts
- run:
name: Add the user ssh key
command: |
umask 077
echo "$CHECKOUT_KEY" > ~/.ssh/id_rsa
chmod 0600 ~/.ssh/id_rsa
- run:
name: Shallow clone the repo
command: |
git clone --depth=1 --single-branch -b $CIRCLE_BRANCH [email protected]:$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME .
jobs:
build-docs:
docker:
- image: cimg/node:20.0
steps:
- checkout
- git-shallow-clone
# - checkout
- node/install-packages:
pkg-manager: npm
app-dir: v3
Expand All @@ -45,16 +65,16 @@ jobs:
root: .
paths:
- v3/scripts/code-type-checking
release-on-backend-website-dev:
create-supertokens-backend-website-dev-tag:
docker:
- image: cimg/node:18.0
steps:
- checkout
- run: git clone --depth=1 [email protected]:supertokens/supertokens-backend-website.git supertokens-backend-website
- run: git clone --depth=1 [email protected]:supertokens/supertokens-backend-website.git --branch=docs-v3 supertokens-backend-website
- attach_workspace:
at: ./workspace
- run: git config --global user.email "$EMAIL" && git config --global user.name "$NAME"
- run: cd supertokens-backend-website && git checkout -b test-new-docs-branch
# - run: cd supertokens-backend-website && git checkout -b test-new-docs-branch
- run:
name: Copy Docusaurus Build to Backend Website
command: |
Expand Down Expand Up @@ -103,7 +123,7 @@ workflows:
build-and-deploy:
jobs:
- build-docs
- release-on-backend-website-dev:
- create-supertokens-backend-website-dev-tag:
requires:
- build-docs
# filters:
Expand Down
10 changes: 1 addition & 9 deletions v3/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import remarkDocItemContextValues from "./src/plugins/remarkDocItemContextValues
import remarkRemoveCodeTypeCheckingCommentsAndRows from "./src/plugins/remarkRemoveCodeTypeCheckingCommentsAndRows";
import remarkRemoveWebJsScriptImports from "./src/plugins/remarkRemoveWebJsScriptImports";

import v2tov3RedirectMap from "./v2-to-v3-redirect-map.json";

const config: Config = {
title: "SuperTokens Docs",
tagline: "Open Source User Authentication",
Expand All @@ -34,7 +32,7 @@ const config: Config = {
"classic",
{
docs: {
routeBasePath: "docs",
routeBasePath: "/docs",
sidebarPath: "./sidebars.ts",
exclude: ["**/_*", "**/_*/**"],
breadcrumbs: false,
Expand Down Expand Up @@ -109,12 +107,6 @@ const config: Config = {
},
} satisfies Preset.ThemeConfig,
plugins: [
[
"@docusaurus/plugin-client-redirects",
{
redirects: [...v2tov3RedirectMap],
},
],
"docusaurus-plugin-sass",
process.env.NODE_ENV === "production" && "@docusaurus/plugin-debug",
[
Expand Down

0 comments on commit 0ff3eff

Please sign in to comment.