website: upgrade Docusaurus

pull/150/head
Yangshun Tay 5 years ago
parent af8fc47051
commit 378c54520c

@ -3,7 +3,7 @@ id: landscape
title: Landscape
---
import withBaseUrl from '@docusaurus/withBaseUrl';
import useBaseUrl from '@docusaurus/useBaseUrl';
Most of the content covered here will be specific to the Bay Area. Landscape differences due to geographical location are mentioned briefly [below](#geographical-location).
@ -33,7 +33,7 @@ Top tech companies pay a ridiculous amount for interns:
<div class="text--center">
<img src={withBaseUrl('/img/internship-salaries.jpg')} />
<img src={useBaseUrl('/img/internship-salaries.jpg')} />
_Salaries of top tech internships in 2016 ([source](https://twitter.com/rodneyfolz/status/724787290824798209))_

@ -10,8 +10,8 @@
"deploy": "docusaurus deploy"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-alpha.26",
"@docusaurus/preset-classic": "^2.0.0-alpha.26",
"@docusaurus/core": "^2.0.0-alpha.31",
"@docusaurus/preset-classic": "^2.0.0-alpha.31",
"classnames": "^2.2.6",
"react": "^16.8.4",
"react-dom": "^16.8.4"

@ -3,7 +3,7 @@ import classnames from 'classnames';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import withBaseUrl from '@docusaurus/withBaseUrl';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css';
import successStories from '../data/successStories';
@ -17,7 +17,7 @@ function Home() {
<div className="container">
<img
className={classnames(styles.heroBannerLogo, 'margin-vert--md')}
src={withBaseUrl('img/logo.svg')}
src={useBaseUrl('img/logo.svg')}
/>
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
@ -27,7 +27,7 @@ function Home() {
'button button--primary button--lg',
styles.getStarted,
)}
to={withBaseUrl('introduction')}>
to={useBaseUrl('introduction')}>
Get Started&nbsp;&nbsp;
</Link>
</div>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save