diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml index 30ef86f7d21..5052845fed5 100644 --- a/.github/workflows/check_pr.yml +++ b/.github/workflows/check_pr.yml @@ -109,14 +109,19 @@ jobs: name: coverage-${{ matrix.os }}-${{ matrix.nodeRun }} path: coverage.tar test_docs: - if: github.repository_owner == 'pnp' && github.event.pull_request.base.ref != 'docs-migration' + if: github.repository_owner == 'pnp' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/setup-node@v3 with: - python-version: 3.x - - run: pip install -r docs/pip_requirements.txt - - run: mkdocs build --strict + node-version: 18 + + - name: Install dependencies + run: npm ci + working-directory: docs + + - name: Build docs + run: npm run build working-directory: docs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea7142e0476..b198e90ef74 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,11 +82,16 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/setup-node@v3 with: - python-version: 3.x - - run: pip install -r docs/pip_requirements.txt - - run: mkdocs build --strict + node-version: 18 + + - name: Install dependencies + run: npm ci + working-directory: docs + + - name: Build docs + run: npm run build working-directory: docs publish: if: github.repository_owner == 'pnp' diff --git a/.github/workflows/release_next.yml b/.github/workflows/release_next.yml index e38f4b61385..2858502fde8 100644 --- a/.github/workflows/release_next.yml +++ b/.github/workflows/release_next.yml @@ -110,18 +110,45 @@ jobs: with: name: coverage-${{ matrix.os }}-${{ matrix.nodeRun }} path: coverage.tar - test_docs: + build_docs: if: github.repository_owner == 'pnp' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/setup-node@v3 with: - python-version: 3.x - - run: pip install -r docs/pip_requirements.txt - - run: mkdocs build --strict + node-version: 18 + + - name: Install dependencies + run: npm ci working-directory: docs + + - name: Build docs + run: npm run build + working-directory: docs + + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: docs/build + deploy_docs: + if: github.repository_owner == 'pnp' + needs: build_docs + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 publish_next: if: github.repository_owner == 'pnp' needs: [test, test_docs] @@ -164,19 +191,6 @@ jobs: with: name: build-ubuntu-latest-18 path: build.tar - deploy_docs: - if: github.repository_owner == 'pnp' - needs: publish_next - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - run: pip install -r docs/pip_requirements.txt - - run: mkdocs gh-deploy --force -m "[ci skip]" - working-directory: docs deploy_docker: if: github.repository_owner == 'pnp' needs: publish_next diff --git a/docs/package-lock.json b/docs/package-lock.json index 4e0b3845db5..661236a13f9 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -11,7 +11,7 @@ "@docusaurus/core": "^2.4.0", "@docusaurus/preset-classic": "^2.4.0", "@mdx-js/react": "^1.6.22", - "@mendable/search": "^0.0.88", + "@mendable/search": "^0.0.92", "clsx": "^1.2.1", "docusaurus-plugin-sass": "^0.2.3", "prism-react-renderer": "^1.3.5", @@ -2859,7 +2859,9 @@ } }, "node_modules/@mendable/search": { - "version": "0.0.88", + "version": "0.0.92", + "resolved": "https://registry.npmjs.org/@mendable/search/-/search-0.0.92.tgz", + "integrity": "sha512-+NJEvOuFirGu/soT6L3/lnhMBYjIKZEYmUs+IMykce0yMfQrqoqKTDkje1eizjOjp7+e4H0dsxvZ0QwwP7nR+Q==", "dependencies": { "posthog-js": "^1.45.1" }, @@ -14754,7 +14756,9 @@ "version": "1.6.22" }, "@mendable/search": { - "version": "0.0.88", + "version": "0.0.92", + "resolved": "https://registry.npmjs.org/@mendable/search/-/search-0.0.92.tgz", + "integrity": "sha512-+NJEvOuFirGu/soT6L3/lnhMBYjIKZEYmUs+IMykce0yMfQrqoqKTDkje1eizjOjp7+e4H0dsxvZ0QwwP7nR+Q==", "requires": { "posthog-js": "^1.45.1" }