Skip to content

Commit 72cbff0

Browse files
docs: Remove landing page from Python SDK documentation (#750)
## Summary This PR removes the custom landing page and replaces it with a simple redirect to the documentation overview page, consistent with other Apify documentation sites. ## Changes - Replace landing page with redirect component pointing to `/sdk/python/docs/overview` - Remove unused CSS module file (`index.module.css`) - Remove unused Python example file (`home_page_example.py`) - Update footer logo href to point to docs ## Test plan - [ ] Verify that visiting the root path redirects to the docs overview - [ ] Check that the footer logo links correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
1 parent 2ed03ca commit 72cbff0

File tree

4 files changed

+15
-317
lines changed

4 files changed

+15
-317
lines changed

website/docusaurus.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ module.exports = {
284284
...config.themeConfig.tableOfContents,
285285
maxHeadingLevel: 5,
286286
},
287+
footer: {
288+
...config.themeConfig.footer,
289+
logo: {
290+
...config.themeConfig.footer.logo,
291+
href: 'docs/overview',
292+
},
293+
},
287294
image: 'https://docs.apify.com/sdk/python/img/docs-og.png',
288295
},
289296
staticDirectories: ['node_modules/@apify/docs-theme/static', 'static'],

website/src/pages/home_page_example.py

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

website/src/pages/index.js

Lines changed: 8 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,12 @@
1-
import React from 'react';
2-
import clsx from 'clsx';
3-
import Layout from '@theme/Layout';
4-
import Link from '@docusaurus/Link';
5-
import CodeBlock from '@theme/CodeBlock';
6-
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
7-
import useBaseUrl from '@docusaurus/useBaseUrl';
8-
import styles from './index.module.css';
1+
import { useEffect } from 'react';
2+
import { useHistory } from '@docusaurus/router';
93

10-
import HomePageExample from '!!raw-loader!./home_page_example.py';
4+
export default function Home() {
5+
const history = useHistory();
116

12-
function Hero() {
13-
return (
14-
<header className={clsx('container', styles.heroBanner)}>
15-
<div className="row padding-horiz--md">
16-
<div className="col col--7">
17-
<div className={clsx(styles.relative, 'row')}>
18-
<div className="col">
19-
<h1 className={styles.tagline}>
20-
Apify SDK for Python<br /> is a toolkit for<br /> building Actors
21-
</h1>
22-
<h1 className={styles.tagline}>
23-
<span>Apify SDK</span> for <span>Python</span><br /> is a <span>toolkit</span> for<br /> building <span>Actors</span>
24-
</h1>
25-
</div>
26-
</div>
27-
<div className="row">
28-
<div className="col">
29-
<h2></h2>
30-
<h2>
31-
The Apify SDK for Python is the official library for creating Apify Actors in Python. It provides useful features like Actor lifecycle management, local storage emulation, and Actor event handling.
32-
</h2>
33-
</div>
34-
</div>
35-
<div className="row">
36-
<div className="col">
37-
<div className={styles.heroButtons}>
38-
<Link to="/docs/overview" className={styles.getStarted}>Get Started</Link>
39-
<iframe src="https://ghbtns.com/github-btn.html?user=apify&repo=apify-sdk-python&type=star&count=true&size=large" frameBorder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe>
40-
</div>
41-
</div>
42-
</div>
43-
</div>
44-
<div className={clsx(styles.relative, 'col', 'col--5')}>
45-
<div className={styles.logoBlur}>
46-
<img src={useBaseUrl('img/logo-blur.png')} className={clsx(styles.hideSmall)} />
47-
</div>
48-
<div className={styles.codeBlock}>
49-
<CodeBlock className="language-bash">
50-
apify create my-python-actor
51-
</CodeBlock>
52-
</div>
53-
</div>
54-
</div>
55-
</header>
56-
);
57-
}
7+
useEffect(() => {
8+
history.replace('/sdk/python/docs/overview');
9+
}, [history]);
5810

59-
export default function Home() {
60-
const { siteConfig } = useDocusaurusContext();
61-
return (
62-
<Layout
63-
description={siteConfig.description}>
64-
<Hero />
65-
<div>
66-
<div className="container">
67-
<div className="row padding-horiz--md" >
68-
<div className="col col--4">
69-
<p style={{ lineHeight: '200%' }}>
70-
For example, the Apify SDK makes it easy to read the Actor input with the <code>Actor.get_input()</code> method, and to save scraped data from your Actors to a dataset by simply using the <code>Actor.push_data()</code> method.
71-
</p>
72-
</div>
73-
<div className="col col--8">
74-
<CodeBlock className="language-python">{HomePageExample}</CodeBlock>
75-
</div>
76-
</div>
77-
</div>
78-
</div>
79-
</Layout>
80-
);
11+
return null;
8112
}

website/src/pages/index.module.css

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

0 commit comments

Comments
 (0)