Skip to content

Commit 0752695

Browse files
committed
Merge remote-tracking branch 'origin/fix/alternate-absolute' into fix/alternate-absolute
2 parents e34bd78 + 0eb7db2 commit 0752695

File tree

31 files changed

+1136
-481
lines changed

31 files changed

+1136
-481
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ 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+
:::info Learn more about pay-per-event pricing
11+
12+
For more details about pay-per-event (PPE) pricing, refer to our [PPE documentation](/platform/actors/publishing/monetize/pay-per-event).
13+
14+
:::
15+
1016
operationId: PostChargeRun
1117
parameters:
1218
- name: runId

apify-api/openapi/paths/datasets/datasets@{datasetId}.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ get:
55
description: |
66
Returns dataset object for given dataset ID.
77
8+
This does not return dataset items, only information about the storage itself.
9+
To retrieve dataset items, use the [List dataset items](/api/v2/dataset-items-get) endpoint.
10+
811
:::note
912
1013
Keep in mind that attributes `itemCount` and `cleanItemCount` are not propagated right away after data are pushed into a dataset.

apify-api/plugins/decorators/client-references-links-decorator.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ function ClientReferencesLinksDecorator(target) {
3434
const pyLink = target[X_PY_DOC_URLS_PROPERTY];
3535
const jsLink = target[X_JS_DOC_URLS_PROPERTY];
3636

37-
const jsImgUrl = 'https://raw.githubusercontent.com/apify/openapi/b1206ac2adf8f39b05e5a09bf32c2802af58d851/assets/javascript.svg';
38-
const pyImgUrl = 'https://raw.githubusercontent.com/apify/openapi/b1206ac2adf8f39b05e5a09bf32c2802af58d851/assets/python.svg';
37+
const jsImgUrl = '/img/javascript-40x40.svg';
38+
const pyImgUrl = '/img/python-40x40.svg';
3939

4040
const jsAlt = 'Apify API JavaScript Client Reference';
4141
const pyAlt = 'Apify API Python Client Reference';
@@ -49,11 +49,13 @@ function ClientReferencesLinksDecorator(target) {
4949
}
5050

5151
if (pyLink) {
52-
prepend += `<a href="${pyLink}" target="_blank"><img src="${pyImgUrl}" class="openapi-clients-box-icon" alt="${pyAlt}"/></a>`;
52+
prepend += `<a href="${pyLink}" target="_blank" class="client-docs-link">
53+
<img src="${pyImgUrl}" class="openapi-clients-box-icon" width="24px" height="24px" alt="${pyAlt}"/>Python</a>`;
5354
}
5455

5556
if (jsLink) {
56-
prepend += `<a href="${jsLink}" target="_blank"><img src="${jsImgUrl}" class="openapi-clients-box-icon" alt="${jsAlt}" /></a>`;
57+
prepend += `<a href="${jsLink}" target="_blank" class="client-docs-link">
58+
<img src="${jsImgUrl}" class="openapi-clients-box-icon" width="24px" height="24px" alt="${jsAlt}" />JavaScript</a>`;
5759
}
5860

5961
prepend += `</span>`;

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.210",
3+
"version": "1.0.213",
44
"description": "",
55
"main": "./src/index.js",
66
"files": [

apify-docs-theme/src/theme/DocItemContent/index.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import MDXContent from '@theme/MDXContent';
77
import clsx from 'clsx';
88
import React from 'react';
99

10+
import styles from './styles.module.css';
11+
1012
function useSyntheticTitle() {
1113
const { metadata, frontMatter, contentTitle } = useDoc();
1214
const shouldRender = !frontMatter.hide_title && typeof contentTitle === 'undefined';
@@ -62,11 +64,15 @@ export default function DocItemContent({ children }) {
6264
const shouldShowLLMButtons = allowedPaths.some((path) => location.pathname.startsWith(path))
6365
&& !disallowedPaths.some((path) => location.pathname.includes(path));
6466

65-
return (
66-
<div className={clsx(ThemeClassNames.docs.docMarkdown, 'markdown')}>
67-
{syntheticTitle && <Heading as="h1">{syntheticTitle}</Heading>}
68-
{shouldShowLLMButtons && <LLMButtons />}
69-
<MDXContent>{children}</MDXContent>
70-
</div>
71-
);
67+
return (
68+
<div className={clsx(ThemeClassNames.docs.docMarkdown, 'markdown')}>
69+
{(syntheticTitle || shouldShowLLMButtons) && (
70+
<div className={styles.docItemContent}>
71+
{syntheticTitle && <Heading as="h1">{syntheticTitle}</Heading>}
72+
{shouldShowLLMButtons && <LLMButtons />}
73+
</div>
74+
)}
75+
<MDXContent>{children}</MDXContent>
76+
</div>
77+
);
7278
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.docItemContent {
2+
display: flex;
3+
align-items: center;
4+
flex-wrap: wrap;
5+
/* move the h1 margin to padding */
6+
h1 {
7+
margin-bottom: 0 !important;
8+
}
9+
padding-bottom: calc(
10+
var(--ifm-h1-vertical-rhythm-bottom) * var(--ifm-leading)
11+
);
12+
13+
@media (max-width: 767px) {
14+
flex-direction: column;
15+
align-items: flex-start;
16+
}
17+
}

apify-docs-theme/src/theme/LLMButtons/CopyForLLM/index.jsx

Lines changed: 0 additions & 71 deletions
This file was deleted.

apify-docs-theme/src/theme/LLMButtons/ViewAsMarkdown/index.jsx

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)