From 5ebba0410210bf2864effa4421329d9f33e3a6e2 Mon Sep 17 00:00:00 2001 From: Gheorghita Hurmuz Date: Thu, 10 Apr 2025 10:39:27 +0300 Subject: [PATCH] chore: improve docs pipeline --- .github/workflows/build.yml | 4 +--- .github/workflows/deploy_docs.yml | 38 +++++++++++++++++++++++++++++++ mkdocs.yml | 6 +++++ 3 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/deploy_docs.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e61f7e6e..7503b3c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,6 +47,4 @@ jobs: - name: Publish Docs if: ${{ steps.check_version.outputs.modified }} == 'true' - run: | - uv run mkdocs gh-deploy --force - + uses: ./.github/workflows/deploy_docs.yml diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml new file mode 100644 index 00000000..68046f80 --- /dev/null +++ b/.github/workflows/deploy_docs.yml @@ -0,0 +1,38 @@ +name: Reusable Build Workflow + +on: + workflow_dispatch: {} + workflow_call: {} + +jobs: + build: + name: Build and publish + runs-on: "ubuntu-24.04" + + steps: + - uses: actions/checkout@v4 + + - name: Clone plugins + run: | + git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/UiPath/uipath-langchain-python plugins/uipath-langchain-python + + - name: Symlink plugin docs + run: | + mkdir -p docs/plugins + ln -s ../../plugins/uipath-langchain-python/docs docs/plugins/uipath-langchain-python + + - uses: astral-sh/setup-uv@v5 + + - uses: actions/setup-python@v5 + with: + python-version-file: ".python-version" + + - name: Setup venv + run: | + uv venv + uv sync --all-extras + + - name: Publish Docs + run: | + uv run mkdocs gh-deploy --force + diff --git a/mkdocs.yml b/mkdocs.yml index b30af3bd..c5373369 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -35,6 +35,12 @@ theme: nav: - Home: index.md + - Langchain: + - Intro: plugins/uipath-langchain-python/index.md + - Chat models: plugins/uipath-langchain-python/chat_models.md + - Context Grounding Chain: plugins/uipath-langchain-python/context_grounding_chain.md + - Context Grounding Retriever: plugins/uipath-langchain-python/context_grounding_retriever.md + - Interrupt models: plugins/uipath-langchain-python/interrupt_models.md - Assets: assets.md - Buckets: buckets.md - Connections: connections.md