Skip to content

Commit a4a897d

Browse files
committed
Revert "chore: docs PR previews (#1563)"
This reverts commit c5bd1fc.
1 parent fd45ee7 commit a4a897d

File tree

4 files changed

+11
-49
lines changed

4 files changed

+11
-49
lines changed

.github/workflows/pr-previews.yaml

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

apify-docs-theme/src/config.js

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
/* eslint-disable global-require */
2+
// eslint-disable-next-line no-nested-ternary
3+
const absoluteUrl = process.env.LOCALHOST
4+
? 'http://localhost:3000'
5+
: process.env.DEV
6+
? 'http://docs.apify.loc'
7+
: 'https://docs.apify.com';
28

3-
let absoluteUrl = 'https://docs.apify.com';
4-
5-
if (process.env.LOCALHOST) {
6-
absoluteUrl = 'http://localhost:3000';
7-
} else if (process.env.DEV) {
8-
absoluteUrl = 'http://docs.apify.loc';
9-
} else if (process.env.APIFY_DOCS_ABSOLUTE_URL) {
10-
absoluteUrl = process.env.APIFY_DOCS_ABSOLUTE_URL;
11-
}
12-
13-
const themeConfig = {
9+
const themeConfig = ({
1410
docs: {
1511
versionPersistence: 'localStorage',
1612
sidebar: {
@@ -281,7 +277,7 @@ const themeConfig = {
281277
async: true,
282278
defer: true,
283279
},
284-
};
280+
});
285281

286282
const plugins = [
287283
[
@@ -298,9 +294,7 @@ const plugins = [
298294
return {
299295
resolveLoader: {
300296
alias: {
301-
'roa-loader': require.resolve(
302-
`${__dirname}/roa-loader/`,
303-
),
297+
'roa-loader': require.resolve(`${__dirname}/roa-loader/`),
304298
},
305299
},
306300
};

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module.exports = {
249249
module: {
250250
rules: [
251251
{
252-
test: /examples\//i,
252+
test: /apify-docs\/examples\//i,
253253
type: 'asset/source',
254254
},
255255
],

examples/ts-parallel-scraping/orchestrator/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if (state.isInitialized) {
5959
state.isInitialized = true;
6060
}
6161

62-
const parallelRunPromises = state.parallelRunIds.map(async (runId) => {
62+
const parallelRunPromises = state.parallelRunIds.map((runId) => {
6363
const runClient = apifyClient.run(runId);
6464
return runClient.waitForFinish();
6565
});

0 commit comments

Comments
 (0)