-
Notifications
You must be signed in to change notification settings - Fork 39
docs: Remove landing page from CLI documentation #1003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
patrikbraborec
wants to merge
2
commits into
master
Choose a base branch
from
remove-landing-page
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+18
−321
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,95 +1,12 @@ | ||
| import React from 'react'; | ||
| import clsx from 'clsx'; | ||
| import Layout from '@theme/Layout'; | ||
| import Link from '@docusaurus/Link'; | ||
| import CodeBlock from '@theme/CodeBlock'; | ||
| import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; | ||
| import styles from './index.module.css'; | ||
|
|
||
| function Hero() { | ||
| return ( | ||
| <header className={clsx('container', styles.heroBanner)}> | ||
| <div className="row padding-horiz--md"> | ||
| <div className="col col--7"> | ||
| <div className={clsx(styles.relative, 'row')}> | ||
| <div className="col"> | ||
| <h1 className={styles.tagline}> | ||
| Apify command-line interface (CLI) | ||
| </h1> | ||
| </div> | ||
| </div> | ||
| <div className="row"> | ||
| <div className="col"> | ||
| <h2></h2> | ||
| <h2> | ||
| Create, develop, build, and run <a href="https://docs.apify.com/actors">Apify Actors</a> from | ||
| your terminal. Manage the Apify platform from shell scripts. | ||
| </h2> | ||
| </div> | ||
| </div> | ||
| <div className="row"> | ||
| <div className="col"> | ||
| <div className={styles.heroButtons}> | ||
| <Link to="/docs" className={styles.getStarted}>Learn more</Link> | ||
| <iframe src="https://ghbtns.com/github-btn.html?user=apify&repo=apify-cli&type=star&count=true&size=large" frameBorder="0" scrolling="0" width="170" height="30" title="GitHub"></iframe> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div className={clsx(styles.relative, 'col', 'col--5')}> | ||
| <div className={styles.logoBlur}> | ||
| <img src={require('/img/logo-blur.png').default} className={clsx(styles.hideSmall)} /> | ||
| </div> | ||
| <div className={styles.codeBlock}> | ||
| <CodeBlock className="language-bash"> | ||
| npm i -g apify-cli | ||
| </CodeBlock> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </header> | ||
| ); | ||
| } | ||
| import { useEffect } from 'react'; | ||
| import { useHistory } from '@docusaurus/router'; | ||
|
|
||
| export default function Home() { | ||
| const { siteConfig } = useDocusaurusContext(); | ||
| return ( | ||
| <Layout | ||
| description={siteConfig.description}> | ||
| <Hero /> | ||
| <div> | ||
| <div className="container"> | ||
| <div className="row padding-horiz--md" > | ||
| <div className="col col--6"> | ||
| <p style={{ lineHeight: '200%' }}> | ||
| Apify Actors are cloud programs that can perform arbitrary web scraping, | ||
| automation, or data processing job. They accept input, perform their job and generate output. | ||
| </p> | ||
| <p style={{ lineHeight: '200%' }}> | ||
| While you can develop Actors in an online IDE in <a href="https://console.apify.com/">Apify Console</a>, for | ||
| larger projects, it is more convenient to develop Actors locally on your computer | ||
| using <a href="https://docs.apify.com/sdk/js/">Apify SDK</a> and only push the Actors | ||
| to the Apify platform during deployment. This is where the Apify CLI comes in to allow you to quickly develop | ||
| locally and then deploy to the cloud with a single command. | ||
| </p> | ||
| </div> | ||
| <div className="col col--6"> | ||
| <CodeBlock language='bash'>{`# Create your first Actor | ||
| apify create my-actor | ||
|
|
||
| # Go into the project directory | ||
| cd my-actor | ||
| const history = useHistory(); | ||
|
|
||
| # Run it locally | ||
| apify run | ||
| useEffect(() => { | ||
| history.replace('/cli/docs'); | ||
| }, [history]); | ||
|
|
||
| # Log into your Apify account and deploy it to Apify Platform | ||
| apify login | ||
| apify push`}</CodeBlock> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </Layout> | ||
| ); | ||
| return null; | ||
| } | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets add a server side redirect to https://github.com/apify/apify-docs/blob/master/nginx.conf
(this applies to all the PRs about the landing pages)