Skip to content

Commit 000c888

Browse files
authored
Revert "Cadence Next (#200)" (#202)
This reverts commit 82bf0bc.
1 parent 82bf0bc commit 000c888

File tree

237 files changed

+34408
-16307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+34408
-16307
lines changed

.envrc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,3 @@ export NODE_VERSIONS=~/.nvm/versions/node
55
export NODE_VERSION_PREFIX='v'
66
export NODE_OPTIONS=--openssl-legacy-provider
77
use node # reads .node-version, keep in sync with package.json
8-
9-
# Custom env values go into .envrc.local
10-
if [ -f .envrc.local ]; then
11-
echo "loading .envrc.local"
12-
source_env .envrc.local
13-
fi
14-

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ jobs:
1313

1414
steps:
1515
- name: Checkout 🛎️
16-
# https://github.com/actions/checkout
17-
uses: actions/checkout@v4
16+
uses: actions/checkout@v3
1817
with:
1918
persist-credentials: false
2019
- name: Use Node.js v18
21-
# https://github.com/actions/setup-node
22-
uses: actions/setup-node@v4
20+
uses: actions/setup-node@v3
2321
with:
24-
node-version: lts/hydrogen
22+
node-version: 18.x
2523
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2624
cache: 'npm'
2725
- name: Install and Build 🔧
Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,23 @@
11
name: Build and Deploy
22
on:
3-
workflow_dispatch:
43
push:
54
branches:
65
- master
76

8-
permissions:
9-
contents: write
10-
117
jobs:
128
build-and-deploy:
139
runs-on: ubuntu-latest
1410

15-
# Load environment variables from repository settings,
16-
# environment should be named "production"
17-
# https://github.com/cadence-workflow/Cadence-Docs/settings/environments
18-
environment: production
19-
env:
20-
CADENCE_DOCS_URL: ${{ vars.CADENCE_DOCS_URL || 'https://cadenceworkflow.io' }}
21-
CADENCE_DOCS_BASE_URL: ${{ vars.CADENCE_DOCS_BASE_URL || '/Cadence-Docs/' }}
22-
CADENCE_DOCS_ORGANIZATION: ${{ vars.CADENCE_DOCS_ORGANIZATION || 'cadence-workflow' }}
23-
2411
steps:
2512
# same as build.yml
2613
- name: Checkout 🛎️
27-
uses: actions/checkout@v4
14+
uses: actions/checkout@v3
2815
with:
2916
persist-credentials: false
30-
- name: Use Node.js lts/hydrogen (v18)
31-
uses: actions/setup-node@v4
17+
- name: Use Node.js v18
18+
uses: actions/setup-node@v3
3219
with:
33-
node-version: lts/hydrogen
20+
node-version: 18.x
3421
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
3522
cache: 'npm'
3623
- name: Install and Build 🔧
@@ -42,11 +29,12 @@ jobs:
4229
- name: Configure domain
4330
uses: finnp/[email protected]
4431
env:
45-
FILE_NAME: "build/CNAME"
32+
FILE_NAME: "dist/CNAME"
4633
FILE_DATA: ${{ secrets.CUSTOM_DOMAIN }}
4734
- name: Deploy 🚀
48-
uses: JamesIves/github-pages-deploy-action@v4
35+
uses: JamesIves/github-pages-deploy-action@3.7.1
4936
with:
50-
branch: gh-pages # The branch the action should deploy to.
51-
folder: build # The folder the action should deploy.
52-
clean: true # Automatically remove deleted files from the deploy branch
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
BRANCH: gh-pages # The branch the action should deploy to.
39+
FOLDER: dist # The folder the action should deploy.
40+
CLEAN: true # Automatically remove deleted files from the deploy branch

.gitignore

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,13 @@
1-
### macOS ###
2-
# General
31
.DS_Store
4-
.AppleDouble
5-
.LSOverride
6-
7-
# cypress
82
cypress/fixtures
93
cypress/plugins
104
cypress/support
115
cypress/videos
12-
13-
# dependencies
14-
/node_modules
15-
6+
dist
7+
dist-blog
8+
node_modules
9+
npm-debug.log
1610
# package-lock file is required for cypress github action to work.
1711
# See https://github.com/marketplace/actions/cypress-io#installation for more information.
1812
# package-lock.json
1913
yarn-error.log
20-
21-
### VisualStudioCode ###
22-
.vscode/*
23-
24-
# Production
25-
/build
26-
27-
# Generated files
28-
.docusaurus
29-
.cache-loader
30-
31-
# Misc
32-
.envrc.local
33-
.env.local
34-
.env.development.local
35-
.env.test.local
36-
.env.production.local
37-
38-
npm-debug.log*
39-
yarn-debug.log*
40-
yarn-error.log*

CHANGELOG.md

Whitespace-only changes.

CONTRIBUTING.md

Whitespace-only changes.

README.md

Lines changed: 13 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,19 @@
1-
# [Cadence docs](https://cadenceworkflow.io) · ![Build and Deploy](https://img.shields.io/github/actions/workflow/status/cadence-workflow/Cadence-Docs/publish-to-gh-pages.yml?label=Build%20and%20Deploy&link=https%3A%2F%2Fgithub.com%2Fcadence-workflow%2FCadence-Docs%2Factions%2Fworkflows%2Fpublish-to-gh-pages.yml) ![Nightly integration test](https://img.shields.io/github/actions/workflow/status/cadence-workflow/Cadence-Docs/nightly-integration-test.yml?label=Nightly%20integration%20test&link=https%3A%2F%2Fgithub.com%2Fcadence-workflow%2FCadence-Docs%2Factions%2Fworkflows%2Fnightly-integration-test.yml)
1+
# [Cadence docs](https://cadenceworkflow.io) · ![Build and Deploy](https://img.shields.io/github/actions/workflow/status/uber/Cadence-Docs/publish-to-gh-pages.yml?label=Build%20and%20Deploy&link=https%3A%2F%2Fgithub.com%2Fuber%2FCadence-Docs%2Factions%2Fworkflows%2Fpublish-to-gh-pages.yml) ![Nightly integration test](https://img.shields.io/github/actions/workflow/status/uber/Cadence-Docs/nightly-integration-test.yml?label=Nightly%20integration%20test&link=https%3A%2F%2Fgithub.com%2Fuber%2FCadence-Docs%2Factions%2Fworkflows%2Fnightly-integration-test.yml)
22

3+
## Setting up for local development
4+
This will start a local server and can be accessed at http://localhost:8080/
5+
1. Run `npm install`
6+
2. Run `npm run start`
37

8+
### Adding pages to docs
9+
1. Add the page under `Cadence-Docs/src/docs` in the correct place in the hierarchy
10+
2. Add the page to `Cadence-Docs/src/.vuepress/config.js`
411

5-
# cadenceworkflow.io
6-
7-
[Cadence docs](https://cadenceworkflow.io) is built using [Docusaurus](https://docusaurus.io/).
8-
9-
10-
11-
### Installation
12-
13-
```console
14-
$ npm install
15-
```
16-
17-
### Local Development
18-
19-
```console
20-
$ npm run start
21-
```
22-
23-
This command starts a local development server and opens up a browser window at http://localhost:3000/. Most changes are reflected live without having to restart the server.
24-
25-
### Build
26-
27-
```console
28-
$ npm run build
29-
```
30-
31-
This command generates static content into the `build` directory and can be served using any static contents hosting service.
32-
33-
### Environment Variables
34-
35-
In order to deploy to multiple environments, some configuration options in `docusaurus.config.ts` are made available for override through environment variables.
36-
37-
```bash
38-
# Can be replaced by your GH pages url, ie. https://<userId>.github.io/
39-
CADENCE_DOCS_URL=https://cadenceworkflow.io
40-
41-
# For GitHub pages deployment, it is often /<projectName>/ defaults to `/`
42-
CADENCE_DOCS_BASE_URL=/cadence-docs/
43-
44-
# For Github pages only, this is your Github org/user name.
45-
CADENCE_DOCS_ORGANIZATION=cadence-workflow
46-
```
47-
48-
### Deployment
49-
50-
Using SSH:
51-
52-
```console
53-
$ USE_SSH=true npm run deploy
54-
```
55-
56-
Not using SSH:
57-
58-
```console
59-
$ GIT_USER=<Your GitHub username> npm run deploy
60-
```
61-
62-
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
63-
64-
65-
# NPM Registry
66-
67-
Ensure you have a `.npmrc` [file](https://docs.npmjs.com/cli/v9/configuring-npm/npmrc/) configured with `registry=https://registry.npmjs.org/`.
68-
This will ensure the dependencies are pulled from the correct source and to prevent internal npm registries from being pushed onto the package-lock.json
12+
## Setting up for local development for blog pages
13+
This will start a local server and can be accessed at http://localhost:8080/blog
14+
1. Run `npm install`
15+
2. Run `npm run start:blog`
6916

7017
## License
7118

72-
MIT License, please see [LICENSE](https://github.com/cadence-workflow/Cadence-Docs/blob/master/LICENSE) for details.
19+
MIT License, please see [LICENSE](https://github.com/uber/Cadence-Docs/blob/master/LICENSE) for details.

blog/2024-11-18-cadence-workflows-github-organization.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

blog/authors.yml

Lines changed: 0 additions & 99 deletions
This file was deleted.

blog/tags.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)