Skip to content
Merged
10 changes: 3 additions & 7 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,10 @@ jobs:
run: |
# update next docs reference
pnpm run update-docs
# go to website dir
cd website
# install website deps
pnpm install
# install the latest theme version
pnpm add @apify/docs-theme@latest
pnpm --filter apify-cli-website add @apify/docs-theme@latest
# build the docs
pnpm run build
pnpm --filter apify-cli-website run build
env:
SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_DOCS_PROJECT_KEY }}
GIT_USER: "apify-service-account:${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}"
Expand All @@ -56,7 +52,7 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "chore: Automatic theme updating workflow [skip ci]"
file_pattern: "website/package*.json website/pnpm-lock.yaml"
file_pattern: "website/package*.json pnpm-lock.yaml"
commit_user_name: Apify Bot
commit_user_email: my-github-actions-bot@example.org
commit_author: Apify Bot <apify@apify.com>
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/version_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,19 @@ jobs:
VERSION=$(jq -r '.version' package.json)
MAJOR_MINOR=$(echo "$VERSION" | cut -d. -f1,2)
echo "version=$VERSION" >> $GITHUB_OUTPUT
cd website
rm -rf versioned_docs/version-$MAJOR_MINOR
rm -rf versioned_sidebars/version-$MAJOR_MINOR-sidebars.json
jq --arg v "$MAJOR_MINOR" 'map(select(. != $v))' versions.json > tmp.json && mv tmp.json versions.json
pnpm exec docusaurus docs:version $MAJOR_MINOR
rm -rf website/versioned_docs/version-$MAJOR_MINOR
rm -rf website/versioned_sidebars/version-$MAJOR_MINOR-sidebars.json
jq --arg v "$MAJOR_MINOR" 'map(select(. != $v))' website/versions.json > website/tmp.json && mv website/tmp.json website/versions.json
pnpm --filter apify-cli-website exec -- docusaurus docs:version $MAJOR_MINOR
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it apify-cli-website or just website 👁️

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apify-cli-website ->

"name": "apify-cli-website",
(idea stolen from client-js)

Copy link
Copy Markdown
Member

@vladfrangu vladfrangu May 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, then gotta change it in the other workflow 🙏

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dammit claude, i said make no mistake...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


- name: Format
working-directory: website
run: pnpm run prettify
# TODO: prettify script references docs/guides/*.md which doesn't exist — check with team
# - name: Format
# run: pnpm --filter apify-cli-website run prettify
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just drop this for now


- name: Commit and push the version snapshot
uses: EndBug/add-and-commit@v10
with:
author_name: Apify Release Bot
author_email: noreply@apify.com
message: "docs: version docs for ${{ steps.version.outputs.version }} [skip ci]"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think skip ci is more meant for our tests and pre-releases, those don't need to trigger CI. Can you update the docs building workflow instead to not ignore skip ci commits? :D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah but then you have to know that [skip ci] is actually [skip ci but not docs build] under surface :]

message: "docs: version docs for ${{ steps.version.outputs.version }}"
pull: "--rebase --autostash"
2 changes: 2 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"name": "apify-cli-website",
"private": true,
"scripts": {
"examples": "docusaurus-examples",
"start": "rimraf .docusaurus && docusaurus start",
Expand Down
Loading
Loading