Skip to content

Commit

Permalink
Do not encourage using the permalink prop
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber authored Jan 28, 2021
1 parent beddecb commit dc736b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/docs/migration/migration-manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ In Docusaurus v1, pages received the `siteConfig` object as props.
In Docusaurus v2, get the `siteConfig` object from `useDocusaurusContext` instead.
In v2, you have to apply the theme layout around each page. The Layout component takes metadata props (`permalink` is important, as it defines the canonical url of your page).
In v2, you have to apply the theme layout around each page. The Layout component takes metadata props.
`CompLibrary` is deprecated in v2, so you have to write your own React component or use Infima styles (Docs will be available soon, sorry about that! In the meanwhile, inspect the V2 website or view https://facebookincubator.github.io/infima/ to see what styles are available).
Expand All @@ -522,7 +522,6 @@ const MyPage = () => {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
permalink="/"
title={siteConfig.title}
description={siteConfig.tagline}>
<div className="hero text--center">
Expand Down

0 comments on commit dc736b2

Please sign in to comment.