You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improve grammar in documentation.
* Fix example, the path is mandatory.
* Demonstrate that applyParams handle arrays of values just fine.
* Also improve example in class documentation.
@@ -100,15 +100,15 @@ Convert array of paths to sitemap.
100
100
101
101
## save
102
102
103
-
Save sitemap in file.
103
+
Save the sitemap to a file.
104
104
105
105
**Parameters**
106
106
107
107
-`dist`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The path and file name where the sitemap is saved.
Module for generate sitemap by[React Router](https://www.npmjs.com/package/react-router) configuration. Also it can filter paths and replace params (like a `:paramName`) in dynamic paths.
5
+
Module for generating sitemaps using[React Router](https://www.npmjs.com/package/react-router) configuration. Also it can filter paths and replace params (like a `:paramName`) in dynamic paths.
6
6
7
7
## Install
8
8
9
9
`npm i --save react-router-sitemap`
10
10
11
11
## Usage
12
12
13
-
You need have module with router configuration. For example:
13
+
You need to have a module with the router configuration. For example:
14
14
15
15
`router.jsx`
16
16
```js
@@ -27,7 +27,7 @@ export default (
27
27
</Route>
28
28
);
29
29
```
30
-
And need create script which will run from command line or on server.
30
+
And you need to create a script which will run from the command line or on the server.
31
31
32
32
_Please note that in this case you need a module 'babel-register' to work with the ES2105 syntax and `.jsx` format._
It's minimal example. After running the script next file will be created`sitemap.xml`which included all paths, described configuration `react-router`.
49
+
It's a minimal example. After running the script, a `sitemap.xml`file will be created, which includes all paths, described in the configuration of`react-router`.
50
50
51
-
More detailed example you can see in the `example` directory. And explore detailed[API](api.md).
51
+
A more detailed example can be found in the `example` directory. You can also explore the details of the[API](api.md).
0 commit comments