Skip to content

Commit 8ebaa1f

Browse files
committed
Clean up docs
1 parent 2c2e818 commit 8ebaa1f

File tree

5 files changed

+2
-163
lines changed

5 files changed

+2
-163
lines changed

docs/config.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ module.exports.config = {
8484
summary: "Time zone functions",
8585
path: "timeZones.md",
8686
},
87-
{
88-
type: "markdown",
89-
slug: "ECMAScript-Modules",
90-
category: "General",
91-
title: "ECMAScript Modules",
92-
summary: "Tree-shaking guide",
93-
path: "esm.md",
94-
},
9587
{
9688
type: "markdown",
9789
slug: "webpack",
@@ -116,14 +108,6 @@ module.exports.config = {
116108
summary: "Usage of the Unicode tokens in parse and format",
117109
path: "unicodeTokens.md",
118110
},
119-
{
120-
type: "markdown",
121-
slug: "Upgrade-Guide",
122-
category: "General",
123-
title: "Upgrade guide",
124-
summary: "Changes from v1 to v2",
125-
path: "upgradeGuide.md",
126-
},
127111
{
128112
type: "markdown",
129113
slug: "License",

docs/esm.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/fp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const formattedDates = dates.map((date) =>
5757
Or you can use `compose` function provided by [lodash](https://lodash.com) to do the same in more idiomatic way:
5858

5959
```javascript
60-
import compose from "lodash/fp/compose";
60+
import { compose } from "lodash/fp/compose";
6161

6262
const formattedDates = dates.map(compose(toUpper, dateToString, addFiveYears));
6363
```

docs/gettingStarted.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,9 @@ To use submodule features, [install the npm package](#npm) and then import a fun
4848

4949
```js
5050
// The main submodule:
51-
import addDays from "date-fns/addDays";
51+
import { addDays } from "date-fns";
5252

5353
// FP variation:
54-
import addDays from "date-fns/fp/addDays";
55-
56-
// With tree-shaking enabled:
5754
import { addDays, format } from "date-fns/fp";
5855
```
5956

docs/upgradeGuide.md

Lines changed: 0 additions & 118 deletions
This file was deleted.

0 commit comments

Comments
 (0)