docs: fix multiple typos (#7561)

This commit is contained in:
Joshua Chen 2022-06-04 21:22:06 +08:00 committed by GitHub
parent 90d2de6baf
commit 6d481f6a29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 6 deletions

View file

@ -178,7 +178,7 @@ The API of `configureWebpack` will be modified in the future to accept an object
- `getStyleLoaders(isServer: boolean, cssOptions: {[key: string]: any}): Loader[]`
- `getJSLoader(isServer: boolean, cacheOptions?: {}): Loader | null`
You may use them to return your webpack configures conditionally.
You may use them to return your webpack configuration conditionally.
For example, this plugin below modify the webpack config to transpile `.foo` files.

View file

@ -11,7 +11,7 @@ This theme provides a `@theme/SearchBar` component that integrates with Algolia
npm install --save @docusaurus/theme-search-algolia
```
This theme also adds search page available at `/search` (as swizzlable `SearchPage` component) path with OpenSearch support. You can this default path via `themeConfig.algolia.searchPagePath`. Use `false` to disable search page.
This theme also adds search page available at `/search` (as swizzlable `SearchPage` component) path with OpenSearch support. You can change this default path via `themeConfig.algolia.searchPagePath`. Use `false` to disable search page.
:::tip

View file

@ -312,8 +312,11 @@ Use JSX within JSX tag, or move the Markdown to the outer layer:
<div className={styles.wrappingBlock}>
```
<!-- prettier-ignore -->
```jsx
<div style={{color: 'red'}}>**Bold still doesn't work**</div>
<div style={{color: 'red'}}>
**Bold still doesn't work**
</div>
```
```mdx-code-block
@ -335,8 +338,13 @@ Add an empty new line:
<div className={styles.wrappingBlock}>
```
<!-- prettier-ignore -->
```jsx
<div style={{color: 'red'}}>**Bold now works**</div>
<div style={{color: 'red'}}>
**Bold now works**
</div>
```
```mdx-code-block
@ -360,8 +368,13 @@ Add an empty new line:
<div className={styles.wrappingBlock}>
```
<!-- prettier-ignore -->
```jsx
<div style={{color: 'red'}}>You may think I'm just some text...</div>
<div style={{color: 'red'}}>
You may think I'm just some text...
</div>
```
```mdx-code-block
@ -385,8 +398,13 @@ Don't indent:
<div className={styles.wrappingBlock}>
```
<!-- prettier-ignore -->
```jsx
<div style={{color: 'red'}}>Now I'm actually just text</div>
<div style={{color: 'red'}}>
Now I'm actually just text
</div>
```
```mdx-code-block