Skip to content

Commit

Permalink
chore: use yarn only (#6141)
Browse files Browse the repository at this point in the history
* use-only-yarn

* cicd-changes

* update-readme-and-contributing

* fix-build-log-url-error

* chore: Update package.json to use yarn commands

* yarn-install

* docs: Update workflow to clarify docs build step

* space
  • Loading branch information
mendonk authored Feb 6, 2025
1 parent e89edc3 commit 84ff6d0
Show file tree
Hide file tree
Showing 10 changed files with 141 additions and 24,979 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/docs_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,17 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch || github.ref }}

- name: Setup Node.js
uses: actions/setup-node@v4
id: setup-node
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache-dependency-path: ./docs/yarn.lock

- name: Cache Node.js dependencies
uses: actions/cache@v4
id: npm-cache
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('docs/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node.js dependencies
run: |
cd docs
npm install --legacy-peer-deps
if: ${{ steps.setup-node.outputs.cache-hit != 'true' }}
- name: Install dependencies
run: cd docs && yarn install --frozen-lockfile

- name: Build Docs
run: |
cd docs
npm run build
- name: Build docs
run: cd docs && yarn build
15 changes: 4 additions & 11 deletions .github/workflows/fetch_docs_notion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,19 @@ jobs:
id: setup-node
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache Node.js dependencies
uses: actions/cache@v4
id: npm-cache
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('docs/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: yarn
cache-dependency-path: ./docs/yarn.lock

- name: Install Node.js dependencies
run: |
cd docs
npm install --legacy-peer-deps
yarn install --frozen-lockfile
if: ${{ steps.setup-node.outputs.cache-hit != 'true' }}

- name: Fetch Docs from Notion
run: |
cd docs
npm run pull
yarn pull
env:
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
NOTION_DOCS_ROOT_PAGE_ID: ${{ secrets.NOTION_DOCS_ROOT_PAGE_ID }}
Expand Down
8 changes: 8 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
.env.test.local
.env.production.local

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

npm-debug.log*
yarn-debug.log*
yarn-error.log*
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
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Website

This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
This website is built using [Docusaurus 3](https://docusaurus.io/), a modern static website generator.

### Installation

```
$ yarn
$ yarn install
```

### Local Development
Expand All @@ -22,7 +22,7 @@ This command starts a local development server and opens up a browser window. Mo
$ yarn build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.
This command generates static content into the `build` directory and can be served using any static contents hosting service, including `yarn serve`.

### Deployment

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/Components/components-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ This component connects to a [Model Context Protocol (MCP)](https://modelcontext

To use the MCP stdio component, follow these steps:

1. Add the [MCP stdio](/components-tools#mcp-stdio) component to your workflow, and connect it to an agent. The flow looks like this:
1. Add the MCP stdio component to your workflow, and connect it to an agent. The flow looks like this:

![MCP stdio component](/img/mcp-stdio-component.png)

Expand Down Expand Up @@ -294,7 +294,7 @@ This component connects to a [Model Context Protocol (MCP)](https://modelcontext

To use the MCP SSE component, follow these steps:

1. Add the [MCP SSE](/components-tools#mcp-sse) component to your workflow, and connect it to an agent. The flow looks similar to the MCP stdio component flow.
1. Add the MCP SSE component to your workflow, and connect it to an agent. The flow looks similar to the MCP stdio component flow.

2. In the MCP SSE component, in the **url** field, enter the URL of your current Langflow server's `mcp/sse` endpoint.
This will fetch all currently available tools from the Langflow server.
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/Contributing/contributing-how-to-contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ git remote add fork https://github.com/<your_git_username>/langflow.git

```bash
cd docs
npm install
npm run start
yarn install
yarn start
```

The documentation will be available at `localhost:3000` and all the files are located in the `docs/docs` folder.
Expand Down
Loading

0 comments on commit 84ff6d0

Please sign in to comment.