Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/_release_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
git config user.name 'GitHub Actions'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add website/package.json
git add website/yarn.lock
git add website/pnpm-lock.yaml
git diff-index --quiet HEAD || git commit -m 'chore: Automatic docs theme update [skip ci]' || true
git push

Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/manual_release_stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ jobs:
NODE_VERSION: 22
PYTHON_VERSION: 3.14

defaults:
run:
working-directory: website

steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand All @@ -136,24 +140,22 @@ jobs:

- name: Install Python dependencies
run: uv run poe install-dev
working-directory: .

- name: Install website dependencies
run: |
cd website
yarn install
- name: Install pnpm and website dependencies
uses: apify/workflows/pnpm-install@main

- name: Snapshot the current version
run: |
cd website
VERSION="$(python -c "import tomllib, pathlib; print(tomllib.loads(pathlib.Path('../pyproject.toml').read_text())['project']['version'])")"
MAJOR_MINOR="$(echo "$VERSION" | cut -d. -f1-2)"
export MAJOR_MINOR
rm -rf "versioned_docs/version-${MAJOR_MINOR}"
rm -rf "versioned_sidebars/version-${MAJOR_MINOR}-sidebars.json"
jq 'map(select(. != env.MAJOR_MINOR))' versions.json > tmp.json && mv tmp.json versions.json
bash build_api_reference.sh
npx docusaurus docs:version "$MAJOR_MINOR"
npx docusaurus api:version "$MAJOR_MINOR"
pnpm exec docusaurus docs:version "$MAJOR_MINOR"
pnpm exec docusaurus api:version "$MAJOR_MINOR"

- name: Commit and push the version snapshot
uses: EndBug/add-and-commit@v10
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ website/versioned_docs/*/changelog.md
# Website build artifacts, node dependencies
website/build
website/node_modules
website/.yarn
website/.docusaurus
website/api-typedoc-generated.json
website/apify-shared-docspec-dump.jsonl
Expand Down
12 changes: 9 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ disable_timestamp = true
# Minimal defense against supply-chain atatcks.
exclude-newer = "24 hours"

[tool.uv.exclude-newer-package]
# Allow internal Apify packages to install immediately.
apify-client = false
apify-shared = false
apify_fingerprint_datapoints = false

# Run tasks with: uv run poe <task>
[tool.poe.tasks]
clean = "rm -rf .coverage .pytest_cache .ruff_cache .ty_cache build dist htmlcov"
Expand All @@ -259,15 +265,15 @@ shell = "uv run ruff format --check && uv run ruff check"
shell = "uv run ruff check --fix && uv run ruff format"

[tool.poe.tasks.update-docs-theme]
shell = "corepack enable && yarn up @apify/docs-theme"
shell = "pnpm update @apify/docs-theme"
cwd = "website"

[tool.poe.tasks.build-docs]
shell = "./build_api_reference.sh && corepack enable && yarn && uv run yarn build"
shell = "./build_api_reference.sh && pnpm install && uv run pnpm build"
cwd = "website"

[tool.poe.tasks.run-docs]
shell = "./build_api_reference.sh && corepack enable && yarn && uv run yarn start"
shell = "./build_api_reference.sh && pnpm install && uv run pnpm start"
cwd = "website"

[tool.poe.tasks.generate-models]
Expand Down
5 changes: 5 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@
"groupSlug": "dev-dependencies",
"automerge": true,
"automergeType": "branch"
},
{
"matchPackageNames": ["@apify/*", "@crawlee/*"],
"minimumReleaseAge": "0 days"
}
],
"minimumReleaseAge": "1 day",
"internalChecksFilter": "strict",
"schedule": ["before 7am every weekday"],
"ignoreDeps": ["apify_client", "docusaurus-plugin-typedoc-api"]
}
2 changes: 0 additions & 2 deletions website/.yarnrc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const { absoluteUrl } = config;
/** @type {Partial<import('@docusaurus/types').DocusaurusConfig>} */
module.exports = {
future: {
experimental_faster: {
faster: {
swcJsLoader: true,
swcJsMinimizer: true,
swcHtmlMinimizer: true,
Expand Down
22 changes: 15 additions & 7 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"name": "apify-client-python",
"name": "apify-client-python-website",
"private": true,
"scripts": {
"clean": "rimraf .docusaurus build",
"build": "yarn clean && docusaurus build",
"start": "yarn clean && docusaurus start",
"deploy": "yarn clean && docusaurus deploy",
"build": "pnpm clean && docusaurus build",
"start": "pnpm clean && docusaurus start",
"deploy": "pnpm clean && docusaurus deploy",
"docusaurus": "docusaurus",
"publish-gh-pages": "docusaurus-publish",
"rename-version": "docusaurus rename-version",
"swizzle": "docusaurus swizzle",
"version": "docusaurus version",
"write-translations": "docusaurus write-translations",
"prettify": "prettier --write --config ./tools/docs-prettier.config.js ../docs/*.md ../docs/*.mdx",
"lint": "yarn lint:code",
"lint:fix": "yarn lint:code:fix",
"lint": "pnpm lint:code",
"lint:fix": "pnpm lint:code:fix",
"lint:code": "eslint .",
"lint:code:fix": "eslint . --fix"
},
Expand Down Expand Up @@ -47,5 +48,12 @@
"rimraf": "^6.0.0",
"typescript": "^6.0.0"
},
"packageManager": "yarn@4.13.0"
"packageManager": "pnpm@10.24.0",
"devEngines": {
"packageManager": {
"name": "pnpm",
"version": "10.x",
"onFail": "error"
}
}
}
Loading