Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit e6bf24a

Browse files
committed
Move upgrade guide to docs
1 parent 3764fd2 commit e6bf24a

3 files changed

Lines changed: 60 additions & 6 deletions

File tree

docs/docusaurus.config.js

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ const config = {
3636
({
3737
docs: {
3838
sidebarPath: require.resolve('./sidebars.js'),
39-
// Please change this to your repo.
40-
// Remove this to remove the "edit this page" links.
41-
editUrl:
42-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
39+
editUrl: 'https://github.com/axelrindle/github-version-checker/tree/main/docs',
4340
},
4441
blog: false,
4542
theme: {
@@ -65,6 +62,15 @@ const config = {
6562
sidebarPath: require.resolve('./sidebars.js'),
6663
},
6764
],
65+
[
66+
'@docusaurus/plugin-content-docs',
67+
{
68+
id: 'upgrading',
69+
path: 'upgrading',
70+
routeBasePath: 'upgrading',
71+
sidebarPath: require.resolve('./sidebars.js'),
72+
},
73+
],
6874
[
6975
'@docusaurus/plugin-content-docs',
7076
{
@@ -102,18 +108,37 @@ const config = {
102108
position: 'left',
103109
label: 'Documentation',
104110
},
111+
{
112+
type: 'doc',
113+
docId: 'index',
114+
position: 'left',
115+
label: 'Upgrading',
116+
docsPluginId: 'upgrading',
117+
},
105118
{
106119
type: 'doc',
107120
docId: 'index',
108121
position: 'left',
109122
label: 'Examples',
110-
docsPluginId: 'examples'
123+
docsPluginId: 'examples',
124+
},
125+
{
126+
type: 'doc',
127+
docId: 'index',
128+
position: 'left',
129+
label: 'Changelog',
130+
docsPluginId: 'changelog',
111131
},
112132
{
113133
href: 'https://github.com/axelrindle/github-version-checker',
114134
label: 'GitHub',
115135
position: 'right',
116136
},
137+
{
138+
href: 'https://www.npmjs.com/package/github-version-checker',
139+
label: 'npm',
140+
position: 'right',
141+
},
117142
],
118143
},
119144
footer: {
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
---
2+
sidebar_position: 1
3+
sidebar_label: ➡️ 2.0.0
4+
---
5+
16
# Migrating to Version `2.0.0`
27

38
Please note the following changes, when you migrate from a version below `2.0.0`:
49

510
- The `options` object changed and requires using a [personal access token](https://blog.github.com/2013-05-16-personal-api-tokens/). See [here](https://github.com/axelrindle/github-version-checker#the-options-object).
611
- The `callback` structure changed. I decided to apply a node convention called **Error-First** in which a callback function's first parameter is the `error`. See [here](https://github.com/axelrindle/github-version-checker#the-callback-function-optional).
712

8-
Before opening an issue, please confirm that you changed your code according to these changes.
13+
Before opening an issue, please confirm that you changed your code according to these changes.

docs/upgrading/index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
sidebar_position: 0
3+
sidebar_label: Start
4+
---
5+
6+
# Upgrading
7+
8+
This section contains for handling major version upgrades.
9+
10+
Following the [Semantic Versioning](https://semver.org/) convention, a major upgrade is an *incompatible API changes*.
11+
This includes the following changes (examples):
12+
13+
- Supported Node.js versions
14+
- Removing deprecated APIs
15+
- Breaking changes in terms of functionality
16+
17+
I didn't quite adhere to this convention in the past but will definetely do in the future.
18+
19+
:::caution
20+
Make sure your environment supports a major upgrade of dependencies.
21+
:::
22+
23+
Also consider a look into the [Changelog](https://github.com/axelrindle/github-version-checker/blob/main/CHANGELOG.md)
24+
which states important changes for each release.

0 commit comments

Comments
 (0)