Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored Sep 30, 2020
1 parent 8ae07c5 commit e8c2476
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/using-themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ In such case, you should swizzle the component you want to wrap, but import the

### For site owners

The `@theme-original` alias allows you to import the original theme component
The `@theme-original` alias allows you to import the original theme component.

Here is an example to display some text just above the footer, with minimal code duplication.

```js title="src/theme/Footer.js"
// note: importing from "@theme/Footer" would fail due to the file importing itself
// Note: importing from "@theme/Footer" would fail due to the file importing itself
import OriginalFooter from '@theme-original/Footer';

export default function Footer(props) {
Expand Down Expand Up @@ -149,7 +149,7 @@ Check the code of `docusaurus-theme-live-codeblock` for details.

:::caution

Unless you want publish to npm a "theme enhancer" (like `docusaurus-theme-live-codeblock`), you likely don't need `@theme-init`
Unless you want publish to npm a "theme enhancer" (like `docusaurus-theme-live-codeblock`), you likely don't need `@theme-init`.

:::

Expand Down

0 comments on commit e8c2476

Please sign in to comment.