Skip to content

Commit 9606048

Browse files
Remove landing page from Python client documentation
## Summary Remove the landing page and redirect users directly to the documentation. Users will now go to `/api/client/python/docs/introduction/overview` instead of the landing page at `/api/client/python/`. ## Changes - Replaced landing page with redirect to `/api/client/python/docs/introduction/overview` - Removed `website/src/pages/index.module.css` (associated styles) - Updated footer logo href to point to `docs/introduction/overview` ## Rationale The landing page duplicated information already available in the main documentation. By removing it and redirecting to `/api/client/python/docs/introduction/overview`, we provide a more streamlined experience for users. ## Related This PR is coordinated with: - apify/apify-docs#2201 that updates the menu links - apify/apify-cli#1003 (similar change for CLI) Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
1 parent 7c9134f commit 9606048

File tree

4 files changed

+21
-310
lines changed

4 files changed

+21
-310
lines changed

package-lock.json

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

website/docusaurus.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ module.exports = {
128128
...config.themeConfig.tableOfContents,
129129
maxHeadingLevel: 5,
130130
},
131+
footer: {
132+
...config.themeConfig.footer,
133+
logo: {
134+
...config.themeConfig.footer.logo,
135+
href: 'docs/introduction/overview',
136+
},
137+
},
131138
},
132139
staticDirectories: ['node_modules/@apify/docs-theme/static', 'static'],
133140
customFields: {

website/src/pages/index.js

Lines changed: 8 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +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 API client for Python
21-
</h1>
22-
<h1 className={styles.tagline}>
23-
{/* eslint-disable-next-line max-len */}
24-
<span>Apify API client</span> for Python.
25-
</h1>
26-
</div>
27-
</div>
28-
<div className="row">
29-
<div className="col">
30-
<h2></h2>
31-
<h2>
32-
The Apify API Client for Python is the official library to access Apify API from your Python applications.
33-
It provides useful features like automatic retries and convenience functions to improve your experience with the Apify API.
34-
</h2>
35-
</div>
36-
</div>
37-
<div className="row">
38-
<div className="col">
39-
<div className={styles.heroButtons}>
40-
<Link to="/docs/overview" className={styles.getStarted}>Get Started</Link>
41-
<iframe src="https://ghbtns.com/github-btn.html?user=apify&repo=apify-client-python&type=star&count=true&size=large" width="170" height="30" title="GitHub"></iframe>
42-
</div>
43-
</div>
44-
</div>
45-
</div>
46-
<div className={clsx(styles.relative, 'col', 'col--5')}>
47-
<div className={styles.logoBlur}>
48-
<img src={useBaseUrl('img/logo-blur.png')} className={clsx(styles.hideSmall)} />
49-
</div>
50-
<div className={styles.codeBlock}>
51-
<CodeBlock className="language-bash">
52-
pip install apify-client
53-
</CodeBlock>
54-
</div>
55-
</div>
56-
</div>
57-
</header>
58-
);
59-
}
7+
useEffect(() => {
8+
history.replace('/api/client/python/docs/introduction/overview');
9+
}, [history]);
6010

61-
export default function Home() {
62-
const { siteConfig } = useDocusaurusContext();
63-
return (
64-
<Layout
65-
description={siteConfig.description}>
66-
<Hero />
67-
<div>
68-
<div className="container">
69-
<div className="row padding-horiz--md" >
70-
<div className="col col--4">
71-
<p style={{ lineHeight: '200%' }}>
72-
For example, the Apify API Client for Python makes it easy to run your own Actors or Actors from the <a href='https://apify.com/store'>Apify Store</a>
73-
{' '}by simply using the <code>.call()</code> method to start an Actor and wait for it to finish.
74-
</p>
75-
</div>
76-
<div className="col col--8">
77-
<CodeBlock className="language-python">{HomePageExample}</CodeBlock>
78-
</div>
79-
</div>
80-
</div>
81-
</div>
82-
</Layout>
83-
);
11+
return null;
8412
}

website/src/pages/index.module.css

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

0 commit comments

Comments
 (0)