Skip to content
Closed
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
32 changes: 0 additions & 32 deletions .github/workflows/pr-previews.yaml

This file was deleted.

24 changes: 9 additions & 15 deletions apify-docs-theme/src/config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
/* eslint-disable global-require */
// eslint-disable-next-line no-nested-ternary
const absoluteUrl = process.env.LOCALHOST
? 'http://localhost:3000'
: process.env.DEV
? 'http://docs.apify.loc'
: 'https://docs.apify.com';

let absoluteUrl = 'https://docs.apify.com';

if (process.env.LOCALHOST) {
absoluteUrl = 'http://localhost:3000';
} else if (process.env.DEV) {
absoluteUrl = 'http://docs.apify.loc';
} else if (process.env.APIFY_DOCS_ABSOLUTE_URL) {
absoluteUrl = process.env.APIFY_DOCS_ABSOLUTE_URL;
}

const themeConfig = {
const themeConfig = ({
docs: {
versionPersistence: 'localStorage',
sidebar: {
Expand Down Expand Up @@ -281,7 +277,7 @@ const themeConfig = {
async: true,
defer: true,
},
};
});

const plugins = [
[
Expand All @@ -298,9 +294,7 @@ const plugins = [
return {
resolveLoader: {
alias: {
'roa-loader': require.resolve(
`${__dirname}/roa-loader/`,
),
'roa-loader': require.resolve(`${__dirname}/roa-loader/`),
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ module.exports = {
module: {
rules: [
{
test: /examples\//i,
test: /apify-docs\/examples\//i,
type: 'asset/source',
},
],
Expand Down
2 changes: 1 addition & 1 deletion examples/ts-parallel-scraping/orchestrator/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if (state.isInitialized) {
state.isInitialized = true;
}

const parallelRunPromises = state.parallelRunIds.map(async (runId) => {
const parallelRunPromises = state.parallelRunIds.map((runId) => {
const runClient = apifyClient.run(runId);
return runClient.waitForFinish();
});
Expand Down
Loading