Skip to content

Commit 7d0d701

Browse files
authored
remove-yarn (#760)
1 parent a04c6a7 commit 7d0d701

File tree

6 files changed

+17
-9970
lines changed

6 files changed

+17
-9970
lines changed

.github/workflows/deploy-docs-draft.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
uses: actions/setup-node@v4
2525
with:
2626
node-version: 20
27-
cache: yarn
28-
cache-dependency-path: ./docs/yarn.lock
27+
cache: npm
28+
cache-dependency-path: ./docs/package-lock.json
2929

3030
- name: Validate Branch Names
3131
run: |
@@ -74,14 +74,14 @@ jobs:
7474
echo "url=${{ vars.DOCS_DRAFT_BASE_URL }}/langflow-drafts/${{ steps.extract_branch.outputs.draft_directory }}/index.html" >> $GITHUB_OUTPUT
7575
7676
- name: Install dependencies
77-
run: cd docs && yarn install
77+
run: cd docs && npm install
7878

7979
- name: Build website
8080
if: success()
8181
run: |
8282
set -o pipefail
8383
cd docs
84-
yarn build |& tee $GITHUB_WORKSPACE/build.log
84+
npm run build |& tee $GITHUB_WORKSPACE/build.log
8585
env:
8686
BASE_URL: /langflow-drafts/${{ steps.extract_branch.outputs.draft_directory }}
8787
FORCE_COLOR: 0 # Disable color output

.github/workflows/deploy-gh-pages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
- uses: actions/setup-node@v4
1818
with:
1919
node-version: 20
20-
cache: yarn
21-
cache-dependency-path: ./docs/yarn.lock
20+
cache: npm
21+
cache-dependency-path: ./docs/package-lock.json
2222

2323
- name: Install dependencies
24-
run: cd docs && yarn install
24+
run: cd docs && npm install
2525
- name: Build website
26-
run: cd docs && yarn build
26+
run: cd docs && npm run build
2727
# env:
2828
# SEGMENT_PUBLIC_WRITE_KEY: ${{ vars.DOCS_PROD_SEGMENT_PUBLIC_WRITE_KEY }}
2929

docs/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ This website is built using [Docusaurus](https://docusaurus.io/), a modern stati
55
## Installation
66

77
```bash
8-
yarn
8+
npm install
99
```
1010

1111
## Local Development
1212

1313
```bash
14-
yarn start
14+
npm start
1515
```
1616

1717
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
1818

1919
## Build
2020

2121
```bash
22-
yarn build
22+
npm run build
2323
```
2424

2525
This command generates static content into the `build` directory and can be served using any static contents hosting service.
@@ -29,13 +29,13 @@ This command generates static content into the `build` directory and can be serv
2929
Using SSH:
3030

3131
```bash
32-
USE_SSH=true yarn deploy
32+
USE_SSH=true npm run deploy
3333
```
3434

3535
Not using SSH:
3636

3737
```bash
38-
GIT_USER=<Your GitHub username> yarn deploy
38+
GIT_USER=<Your GitHub username> npm run deploy
3939
```
4040

4141
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.

docs/VERSIONING_SETUP.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ docs: {
2828
See the [Docusaurus docs](https://docusaurus.io/docs/versioning) for more info.
2929

3030
1. Use the Docusaurus CLI command to create a version.
31-
You can use `yarn` instead of `npm`.
3231
```bash
3332
# Create version 1.0.0 from current docs
3433
npm run docusaurus docs:version 1.0.0

docs/docs/support/contribute.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Repeated low-quality contributions can lead to a ban on contributions.
9696
The OpenRAG documentation is built using [Docusaurus](https://docusaurus.io/) and written in [Markdown](https://docusaurus.io/docs/markdown-features).
9797
For style guidance, see the [Google Developer Documentation Style Guide](https://developers.google.com/style).
9898

99-
1. Install [Node.js](https://nodejs.org/en/download/package-manager) and [Yarn](https://yarnpkg.com/)
99+
1. Install [Node.js](https://nodejs.org/en/download/package-manager).
100100

101101
2. Fork the [OpenRAG GitHub repository](https://github.com/langflow-ai/openrag).
102102

@@ -123,8 +123,8 @@ For style guidance, see the [Google Developer Documentation Style Guide](https:/
123123
5. Install dependencies and start a local Docusaurus static site with hot reload:
124124

125125
```bash
126-
yarn install
127-
yarn start
126+
npm install
127+
npm start
128128
```
129129

130130
The documentation is served at `http://localhost:3000`.
@@ -138,7 +138,7 @@ For style guidance, see the [Google Developer Documentation Style Guide](https:/
138138
Most pages use a `slug` for shorthand cross-referencing, rather than supplying the full or relative directory path.
139139
For example, if a page has a `slug` of `/cool-page`, you can link to it with `[Cool page](/cool-page)` from any other `/docs` page.
140140

141-
7. Recommended: After making some changes, run `yarn build` to build the site locally with more robust logging.
141+
7. Recommended: After making some changes, run `npm run build` to build the site locally with more robust logging.
142142
This can help you find broken links before creating a PR.
143143

144144
8. Create a pull request against the `main` branch of the OpenRAG repository with a clear title and description of your changes:

0 commit comments

Comments
 (0)