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
8 changes: 7 additions & 1 deletion .github/workflows/manual_release_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,21 @@ jobs:
- name: Install Python dependencies
run: uv run poe install-dev

- name: Install pnpm and website dependencies
uses: apify/workflows/pnpm-install@main
with:
working-directory: website

- name: Update docs theme
run: uv run poe update-docs-theme

- name: Commit the updated package.json and lockfile
uses: EndBug/add-and-commit@v10
with:
add: website/package.json website/yarn.lock
add: website/package.json website/pnpm-lock.yaml
message: "chore: Automatic docs theme update [skip ci]"
default_author: github_actions
pull: '--rebase --autostash'
# `actions/checkout` detaches HEAD on SHA refs; EndBug needs a branch to push.
new_branch: ${{ github.event.repository.default_branch }}

Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/manual_version_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ jobs:
- name: Install Python dependencies
run: uv run poe install-dev

- name: Install pnpm and website dependencies
uses: apify/workflows/pnpm-install@main
with:
working-directory: website

- name: Snapshot the current version
id: snapshot
run: |
cd website
corepack enable
yarn install

# Extract version from pyproject.toml.
FULL_VERSION="$(uv version --short)"
Expand Down Expand Up @@ -98,8 +101,8 @@ jobs:

# Build API reference and create Docusaurus version snapshots.
bash build_api_reference.sh
uv run npx docusaurus docs:version "$MAJOR_MINOR_VERSION"
uv run npx docusaurus api:version "$MAJOR_MINOR_VERSION"
uv run pnpm exec docusaurus docs:version "$MAJOR_MINOR_VERSION"
uv run pnpm exec docusaurus api:version "$MAJOR_MINOR_VERSION"

- name: Commit and push versioned docs
id: commit_versioned_docs
Expand All @@ -108,6 +111,7 @@ jobs:
add: website/versioned_docs website/versioned_sidebars website/versions.json
message: "docs: Version docs for v${{ steps.snapshot.outputs.version }} [skip ci]"
default_author: github_actions
pull: '--rebase --autostash'
# `actions/checkout` detaches HEAD on SHA refs; EndBug needs a branch to push.
new_branch: ${{ github.event.repository.default_branch }}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ website/versioned_docs/*/pyproject.toml
# Website build artifacts, node dependencies
website/build
website/node_modules
website/yarn.lock
website/.yarn
website/.docusaurus
website/api-typedoc-generated.json
Expand Down
13 changes: 10 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,13 @@ keep_model_order = 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
crawlee = 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 @@ -260,15 +267,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/*", "apify-client", "apify", "crawlee", "got-scraping"],
"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
18 changes: 10 additions & 8 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
{
"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"
"lint:code:fix": "eslint . --fix",
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"@apify/docs-theme": "^1.0.240",
Expand Down Expand Up @@ -47,5 +49,5 @@
"rimraf": "^6.0.0",
"typescript": "^6.0.0"
},
"packageManager": "yarn@4.13.0"
"packageManager": "pnpm@10.24.0"
}
Loading
Loading