feat: docusaurus-init without example directories (#1378)

* feat: do not copy into examples folder

* Update documentation

* feat: use Undraw illustrations for initialized landing page (#1379)
This commit is contained in:
Yangshun Tay 2019-04-21 22:28:35 -07:00 committed by GitHub
parent 1a44d99db1
commit 21793a833d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 83 additions and 83 deletions

View file

@ -60,7 +60,7 @@ class HomeSplash extends React.Component {
return (
<SplashContainer>
<Logo img_src={`${baseUrl}img/docusaurus.svg`} />
<Logo img_src={`${baseUrl}img/undraw_monitor.svg`} />
<div className="inner">
<ProjectTitle siteConfig={siteConfig} />
<PromoSection>
@ -105,10 +105,13 @@ class Index extends React.Component {
<Block id="try">
{[
{
content: 'Talk about trying this out',
image: `${baseUrl}img/docusaurus.svg`,
content:
'To make your landing page more attractive, use illustrations! Check out ' +
'[**Undraw**](https://undraw.co/) which provides you with customizable illustrations which are free to use. ' +
'The illustrations you see on this page are from Undraw.',
image: `${baseUrl}img/undraw_code_review.svg`,
imageAlign: 'left',
title: 'Try it Out',
title: 'Wonderful SVG Illustrations',
},
]}
</Block>
@ -120,7 +123,7 @@ class Index extends React.Component {
{
content:
'This is another description of how this project is useful',
image: `${baseUrl}img/docusaurus.svg`,
image: `${baseUrl}img/undraw_note_list.svg`,
imageAlign: 'right',
title: 'Description',
},
@ -132,10 +135,11 @@ class Index extends React.Component {
<Block background="light">
{[
{
content: 'Talk about learning how to use this',
image: `${baseUrl}img/docusaurus.svg`,
content:
'Each new Docusaurus project has **randomly-generated** theme colors.',
image: `${baseUrl}img/undraw_youtube_tutorial.svg`,
imageAlign: 'right',
title: 'Learn How',
title: 'Randomly Generated Theme Colors',
},
]}
</Block>
@ -146,13 +150,13 @@ class Index extends React.Component {
{[
{
content: 'This is the content of my feature',
image: `${baseUrl}img/docusaurus.svg`,
image: `${baseUrl}img/undraw_react.svg`,
imageAlign: 'top',
title: 'Feature One',
},
{
content: 'The content of my second feature',
image: `${baseUrl}img/docusaurus.svg`,
image: `${baseUrl}img/undraw_operating_system.svg`,
imageAlign: 'top',
title: 'Feature Two',
},