Skip to content

Commit aeb92f2

Browse files
Merge pull request #254 from UiPath/chore/improve-docs-pipeline
chore: improve docs pipeline
2 parents 9e36a90 + 5ebba04 commit aeb92f2

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,4 @@ jobs:
4747

4848
- name: Publish Docs
4949
if: ${{ steps.check_version.outputs.modified }} == 'true'
50-
run: |
51-
uv run mkdocs gh-deploy --force
52-
50+
uses: ./.github/workflows/deploy_docs.yml

.github/workflows/deploy_docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Reusable Build Workflow
2+
3+
on:
4+
workflow_dispatch: {}
5+
workflow_call: {}
6+
7+
jobs:
8+
build:
9+
name: Build and publish
10+
runs-on: "ubuntu-24.04"
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Clone plugins
16+
run: |
17+
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/UiPath/uipath-langchain-python plugins/uipath-langchain-python
18+
19+
- name: Symlink plugin docs
20+
run: |
21+
mkdir -p docs/plugins
22+
ln -s ../../plugins/uipath-langchain-python/docs docs/plugins/uipath-langchain-python
23+
24+
- uses: astral-sh/setup-uv@v5
25+
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version-file: ".python-version"
29+
30+
- name: Setup venv
31+
run: |
32+
uv venv
33+
uv sync --all-extras
34+
35+
- name: Publish Docs
36+
run: |
37+
uv run mkdocs gh-deploy --force
38+

mkdocs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ theme:
3535

3636
nav:
3737
- Home: index.md
38+
- Langchain:
39+
- Intro: plugins/uipath-langchain-python/index.md
40+
- Chat models: plugins/uipath-langchain-python/chat_models.md
41+
- Context Grounding Chain: plugins/uipath-langchain-python/context_grounding_chain.md
42+
- Context Grounding Retriever: plugins/uipath-langchain-python/context_grounding_retriever.md
43+
- Interrupt models: plugins/uipath-langchain-python/interrupt_models.md
3844
- Assets: assets.md
3945
- Buckets: buckets.md
4046
- Connections: connections.md

0 commit comments

Comments
 (0)