Skip to content

Commit 720b8bb

Browse files
authored
Merge branch 'master' into feat/nav-cta-btn-radius-update
2 parents acbabf5 + c75d04a commit 720b8bb

File tree

20 files changed

+771
-562
lines changed

20 files changed

+771
-562
lines changed

apify-api/openapi/paths/actor-runs/actor-runs@{runId}@charge.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ post:
77
The event you are charging for must be one of the configured events in your Actor. If the Actor is not set up as pay per event, or if the event is not configured,
88
the endpoint will return an error. The endpoint must be called from the Actor run itself, with the same API token that the run was started with.
99
10-
:::note
11-
12-
Pay per events Actors are still in alpha. Please, reach out to us with any questions or feedback.
13-
14-
:::
1510
operationId: PostChargeRun
1611
parameters:
1712
- name: runId

apify-docs-theme/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apify/docs-theme",
3-
"version": "1.0.190",
3+
"version": "1.0.192",
44
"description": "",
55
"main": "./src/index.js",
66
"files": [
Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Head from '@docusaurus/Head';
12
import { useLocation } from '@docusaurus/router';
23
// cannot use any of the theme aliases here as it causes a circular dependency :( ideas welcome
34
import Layout from '@docusaurus/theme-classic/lib/theme/Layout/index';
@@ -11,13 +12,19 @@ export default function LayoutWrapper(props) {
1112
const currentPath = useLocation().pathname.replace(new RegExp(`^${baseUrl}`), '');
1213

1314
return (
14-
<div style={{
15-
'--ifm-navbar-height': subNavbar && !currentPath.startsWith('api/v2') ? '126px' : '68px',
16-
margin: 0,
17-
padding: 0,
18-
boxSizing: 'border-box',
19-
}}>
20-
<Layout {...props} />
21-
</div>
15+
<>
16+
<Head>
17+
<link rel="alternate" type="text/markdown" href={`${currentPath}.md`}/>
18+
</Head>
19+
<div
20+
style={{
21+
'--ifm-navbar-height': subNavbar && !currentPath.startsWith('api/v2') ? '126px' : '68px',
22+
margin: 0,
23+
padding: 0,
24+
boxSizing: 'border-box',
25+
}}>
26+
<Layout {...props} />
27+
</div>
28+
</>
2229
);
2330
}

apify-docs-theme/src/theme/RunnableCodeBlock/RunnableCodeBlock.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ Make sure you are importing the code block contents with the roa-loader.`);
3333
<div className={clsx(styles.container, 'runnable-code-block')}>
3434
<Link href={href} className={styles.button} rel="follow">
3535
Run on
36-
<svg width="91" height="25" viewBox="0 0 91 25" fill="none" xmlns="http://www.w3.org/2000/svg" className="apify-logo-light alignMiddle_src-theme-Footer-index-module"><path d="M3.135 2.85A3.409 3.409 0 0 0 .227 6.699l2.016 14.398 8.483-19.304-7.59 1.059Z" fill="#97D700"></path><path d="M23.604 14.847 22.811 3.78a3.414 3.414 0 0 0-3.64-3.154c-.077 0-.153.014-.228.025l-3.274.452 7.192 16.124c.54-.67.805-1.52.743-2.379Z" fill="#71C5E8"></path><path d="M5.336 24.595c.58.066 1.169-.02 1.706-.248l12.35-5.211L13.514 5.97 5.336 24.595Z" fill="#FF9013"></path><path d="M33.83 5.304h3.903l5.448 14.623h-3.494l-1.022-2.994h-5.877l-1.025 2.994h-3.384L33.83 5.304Zm-.177 9.032h4.14l-2-5.994h-.086l-2.054 5.994ZM58.842 5.304h3.302v14.623h-3.302V5.304ZM64.634 5.304h10.71v2.7h-7.4v4.101h5.962v2.632h-5.963v5.186h-3.309V5.303ZM82.116 14.38l-5.498-9.076h3.748l3.428 6.016h.085l3.599-6.016H91l-5.56 9.054v5.569h-3.324v-5.548ZM51.75 5.304h-7.292v14.623h3.3v-4.634h3.993a4.995 4.995 0 1 0 0-9.99Zm-.364 7.417h-3.628V7.875h3.627a2.423 2.423 0 0 1 0 4.846Z" className="apify-logo" fill="#000"></path></svg>
36+
<svg width="91" height="25" viewBox="0 0 91 25" fill="none" xmlns="http://www.w3.org/2000/svg" className="apify-logo-light alignMiddle_src-theme-Footer-index-module">
37+
{/* eslint-disable-next-line max-len */}
38+
<path fill="#246DFF" d="M13.785 0h9.889c.201 0 .364.163.364.363v15.074c0 .361-.47.501-.669.2L13.48.561A.363.363 0 0 1 13.785 0Z"/><path fill="#20A34E" d="M10.253 0H.364A.364.364 0 0 0 0 .363v15.074c0 .361.47.501.669.2L10.558.561A.363.363 0 0 0 10.253 0Z"/><path fill="#F86606" d="M11.85 12.069.616 23.358a.363.363 0 0 0 .259.62h22.298a.363.363 0 0 0 .26-.618L12.37 12.07a.365.365 0 0 0-.52-.001Z"/><path className="apify-logo" fill="#000" d="M77.267 3.298H73.06c-1.317 0-1.881.657-1.881 1.853V6.3h6.13l3.503 8.066L84.315 6.3h3.056l-7.335 16.859h-3.009l2.257-5.206-4.195-9.12h-3.91v9.331H68.17V8.832h-3.268V6.3h3.268V4.565c0-2.298 1.27-3.658 3.973-3.658h5.124v2.391Z"/><path className="apify-logo" fill="#000" fill-rule="evenodd" d="M53.32 6.042c3.102 0 5.641 2.321 5.641 6.19 0 3.893-2.538 6.19-5.641 6.19-2.586 0-3.88-1.594-4.114-2.063v6.776h-2.962V6.3h2.985v1.876c.212-.446 1.505-2.134 4.09-2.134Zm-.776 2.626c-2.045 0-3.362 1.524-3.362 3.564 0 2.017 1.316 3.564 3.362 3.564 2.068 0 3.385-1.547 3.385-3.564 0-2.04-1.317-3.564-3.385-3.564ZM38.44 5.995c3.69 0 5.735 1.923 5.735 4.736v4.01c0 .704.259 1.032.94 1.079v2.415h-.94c-1.48-.024-2.445-.587-2.774-1.642-.587.844-1.81 1.83-3.855 1.83-2.797 0-4.913-1.595-4.913-4.01 0-2.392 1.81-3.682 4.748-3.682h3.903c0-1.43-1.105-2.344-2.845-2.344-1.645 0-2.303.89-2.468 1.195h-3.033c.236-1.266 1.764-3.587 5.501-3.587Zm-.565 6.776c-1.387 0-2.28.516-2.28 1.595 0 1.149 1.081 1.829 2.586 1.829 1.692 0 3.103-.844 3.103-2.415V12.77h-3.409Z" clip-rule="evenodd"/><path className="apify-logo" fill="#000" d="M63.47 18.164h-3.009V6.3h3.01v11.864ZM63.518 4.4H60.39V.837h3.127v3.565Z"/>
39+
</svg>
3740
</Link>
3841
<CodeBlock {...props} className={clsx(styles.codeBlock, 'code-block', props.title != null ? 'has-title' : 'no-title')}>
3942
{ children.code }

docusaurus.config.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,34 @@ module.exports = {
265265
[
266266
'@signalwire/docusaurus-plugin-llms-txt',
267267
{
268-
enableDescriptions: false,
269268
content: {
270269
includeVersionedDocs: false,
271270
enableLlmsFullTxt: true,
272271
includeBlog: true,
272+
includeGeneratedIndex: false,
273273
includePages: true,
274274
relativePaths: false,
275+
excludeRoutes: [
276+
'/',
277+
],
278+
routeRules: [
279+
{
280+
route: '/api/**',
281+
categoryName: 'Apify API',
282+
},
283+
{
284+
route: '/academy/**',
285+
categoryName: 'Apify academy',
286+
},
287+
{
288+
route: '/legal/**',
289+
categoryName: 'Legal documents',
290+
},
291+
{
292+
route: '/platform/**',
293+
categoryName: 'Platform documentation',
294+
},
295+
],
275296
},
276297
},
277298
],

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default [
2020
'@typescript-eslint/no-explicit-any': 'off',
2121
'no-param-reassign': 'off',
2222
'no-void': 'off',
23+
indent: 'off',
2324
'no-console': 'off',
2425
'import/no-extraneous-dependencies': 'off',
2526
'import/extensions': 'off',

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"lint:md:fix": "markdownlint '**/*.md' --fix",
4141
"lint:code": "eslint .",
4242
"lint:code:fix": "eslint . --fix",
43-
"postinstall": "patch-package"
43+
"postinstall": "patch-package",
44+
"postbuild": "node ./scripts/joinLlmsFiles.mjs"
4445
},
4546
"devDependencies": {
4647
"@apify/eslint-config": "^1.0.0",
@@ -49,7 +50,7 @@
4950
"@types/react": "^18.2.8",
5051
"babel-plugin-styled-components": "^2.1.4",
5152
"cross-env": "^7.0.3",
52-
"eslint": "^9.24.0",
53+
"eslint": "^9.32.0",
5354
"eslint-plugin-json": "^4.0.1",
5455
"eslint-plugin-markdown": "^5.1.0",
5556
"eslint-plugin-react": "^7.37.5",
@@ -62,8 +63,8 @@
6263
"patch-package": "^8.0.0",
6364
"path-browserify": "^1.0.1",
6465
"rimraf": "^6.0.0",
65-
"typescript": "5.8.3",
66-
"typescript-eslint": "^8.29.1"
66+
"typescript": "5.9.2",
67+
"typescript-eslint": "^8.38.0"
6768
},
6869
"dependencies": {
6970
"@apify/ui-library": "^1.0.0",

scripts/joinLlmsFiles.mjs

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import fs from 'node:fs/promises';
2+
import path from 'node:path';
3+
4+
const BUILD_DIR = path.resolve('build');
5+
6+
const FILES_ROUTES = {
7+
'llms.txt': [
8+
'https://docs.apify.com/api/client/js/llms.txt',
9+
'https://docs.apify.com/api/client/python/llms.txt',
10+
'https://docs.apify.com/sdk/js/llms.txt',
11+
'https://docs.apify.com/sdk/python/llms.txt',
12+
'https://docs.apify.com/cli/llms.txt',
13+
],
14+
'llms-full.txt': [
15+
'https://docs.apify.com/api/client/js/llms-full.txt',
16+
'https://docs.apify.com/api/client/python/llms-full.txt',
17+
'https://docs.apify.com/sdk/js/llms-full.txt',
18+
'https://docs.apify.com/sdk/python/llms-full.txt',
19+
'https://docs.apify.com/cli/llms-full.txt',
20+
'https://raw.githubusercontent.com/apify/actor-whitepaper/refs/heads/master/README.md',
21+
'https://raw.githubusercontent.com/apify/actor-whitepaper/refs/heads/master/pages/ACTOR_FILE.md',
22+
'https://raw.githubusercontent.com/apify/actor-whitepaper/refs/heads/master/pages/DATASET_SCHEMA.md',
23+
'https://raw.githubusercontent.com/apify/actor-whitepaper/refs/heads/master/pages/IDEAS.md',
24+
'https://raw.githubusercontent.com/apify/actor-whitepaper/refs/heads/master/pages/INPUT_SCHEMA.md',
25+
'https://raw.githubusercontent.com/apify/actor-whitepaper/refs/heads/master/pages/KEY_VALUE_STORE_SCHEMA.md',
26+
'https://raw.githubusercontent.com/apify/actor-whitepaper/refs/heads/master/pages/OUTPUT_SCHEMA.md',
27+
'https://raw.githubusercontent.com/apify/actor-whitepaper/refs/heads/master/pages/REQUEST_QUEUE_SCHEMA.md',
28+
],
29+
};
30+
31+
async function fetchFile(route) {
32+
try {
33+
const res = await fetch(route);
34+
if (!res.ok) throw new Error(`Failed to fetch ${route}: ${res.status}`);
35+
return await res.text();
36+
} catch (err) {
37+
console.error(`Error fetching ${route}:`, err.message);
38+
return '';
39+
}
40+
}
41+
42+
async function joinFiles() {
43+
await fs.mkdir(BUILD_DIR, { recursive: true });
44+
for (const [llmsFile, files] of Object.entries(FILES_ROUTES)) {
45+
const contents = await Promise.all(
46+
files.map((route) => fetchFile(route)),
47+
);
48+
const joined = contents.filter(Boolean).join('\n\n');
49+
await fs.appendFile(path.join(BUILD_DIR, llmsFile), joined, 'utf8');
50+
console.log(`Wrote ${llmsFile} to build/`);
51+
}
52+
}
53+
54+
async function sanitizeFile(filePath) {
55+
const content = await fs.readFile(filePath, 'utf8');
56+
const sanitizedContent = content.replace(/<[^>]*>/g, ''); // Remove HTML tags
57+
await fs.writeFile(filePath, sanitizedContent, 'utf8');
58+
console.log(`Sanitized ${filePath}`);
59+
}
60+
61+
joinFiles().catch((err) => {
62+
console.error('Failed to join LLMs files:', err);
63+
process.exit(1);
64+
});
65+
66+
Object.keys(FILES_ROUTES).forEach((llmsFile) => sanitizeFile(path.join(BUILD_DIR, llmsFile)));

sources/academy/platform/deploying_your_code/input_schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Creating Actor input schema
2+
title: How to write Actor input schema
33
description: Learn how to generate a user interface on the platform for your Actor's input with a single file - the INPUT_SCHEMA.json file.
44
sidebar_position: 2
55
slug: /deploying-your-code/input-schema

0 commit comments

Comments
 (0)