Skip to content

Commit e14ec2b

Browse files
feat: add breaking change logs (#97)
1 parent 313032d commit e14ec2b

File tree

14 files changed

+50
-37
lines changed

14 files changed

+50
-37
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@
5858
[submodule "docs/latest/fuel-specs"]
5959
path = docs/latest/fuel-specs
6060
url = https://github.com/FuelLabs/fuel-specs.git
61+
[submodule "docs/guides/docs/migration-guide/breaking-change-log"]
62+
path = docs/guides/docs/migration-guide/breaking-change-log
63+
url = https://github.com/FuelLabs/breaking-change-log

contentlayer.config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ const excludeDirs = [
9595
'docs/latest/fuel-indexer/docs/src/SUMMARY.md',
9696
'docs/latest/fuel-specs/src/SUMMARY.md',
9797
// 'docs/fuel-nix/book/src/SUMMARY.md',
98+
'docs/guides/docs/migration-guide/breaking-change-log/README.md',
99+
'docs/guides/docs/migration-guide/breaking-change-log/package.json',
100+
'docs/guides/docs/migration-guide/breaking-change-log/pnpm-lock.yaml',
98101
];
99102

100103
export default makeSource({

docs/guides/docs/guides.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"title": "Running a Node",
1212
"description": "Run a local Fuel node."
1313
},
14-
"testnet_migration": {
15-
"title": "Testnet Migration",
14+
"migration_guide": {
15+
"title": "Migration Guide",
1616
"description": "Sway and SDK's breaking changes reference."
1717
}
1818
}
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Migration Guide
3+
category: Migration Guide
4+
parent:
5+
label: Guides
6+
link: /guides
7+
---
8+
9+
# Migration Guide
10+
11+
Throughout Fuel's development journey, numerous testnets have been created to ensure a seamless transition to the mainnet launch.
12+
Given the dynamic nature of learning and adapting during these testing phases, it's common to encounter breaking changes.
13+
14+
## Breaking Changes
15+
16+
Learn how to migrate to the latest versions of the Fuel toolchain and SDKs in the [Breaking Changes Log](/guides/migration-guide/breaking-changes-log).
17+
18+
## Testnet Migration Guide
19+
20+
Upgrade to the latest Fuel testnet using the [Testnet Migration](/guides/migration-guide/testnet-migration) guide.

docs/guides/docs/testnet-migration/beta-3-to-beta-4-migration.mdx renamed to docs/guides/docs/migration-guide/testnet-migration.mdx

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
---
2-
title: Beta 4 Testnet Migration
3-
category: Testnet Migration
2+
title: Testnet Migration
3+
category: Migration Guide
44
parent:
55
label: Guides
66
link: /guides
77
---
88

9-
# Beta 4 Migration
9+
# Testnet Migration
1010

11-
This guide focuses on the transition from the end of tool support for `beta 3` to the start of `beta 4`.
12-
13-
> The team is constantly building. For updates on breaking changes beyond this guide, please refer to our bi-weekly report on [GitHub](https://github.com/FuelLabs/breaking-change-log/tree/master) or check announcements in our [forum](https://forum.fuel.network/c/announcements/7).
11+
This guide focuses on the transition from the end of tool support for `beta-3` to the start of `beta-4`.
1412

1513
- [Fuelup v0.19.5](https://github.com/FuelLabs/fuelup/releases/tag/v0.19.5)
1614
- [Sway v0.45.0](https://github.com/FuelLabs/sway/releases/tag/v0.45.0)

docs/guides/docs/nav.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"installation": ["Fuel Github Codespace"],
44
"quickstart": ["Building a Smart Contract", "Building a Frontend"],
55
"running_a_node": ["Running a Local Node", "Running a Beta-4 Node"],
6-
"testnet_migration": ["Beta 4 Testnet Migration"]
6+
"migration_guide": ["Breaking Changes Log", "Testnet Migration"]
77
}

docs/guides/docs/testnet-migration/index.mdx

-26
This file was deleted.

next.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ const nextConfig = {
5858
destination: '/docs/graphql/overview/',
5959
permanent: true,
6060
},
61+
{
62+
source: '/guides/testnet-migration/',
63+
destination: '/guides/migration-guide/',
64+
permanent: true,
65+
},
66+
{
67+
source: '/guides/testnet-migration/beta-3-to-beta-4-migration/',
68+
destination: '/guides/migration-guide/testnet-migration/',
69+
permanent: true,
70+
},
6171
];
6272
},
6373
typescript: {

scripts/generate-links/getDocs.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ export async function getDocs(key, order) {
164164
paths = [
165165
// GUIDES
166166
'./guides/docs/**/*.mdx',
167+
'./guides/docs/migration-guide/breaking-change-log/breaking-changes-log.md',
167168
];
168169
break;
169170
// case 'latest-guides':

scripts/update-latest/updateLatest.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ async function updateSubmodules(newVersions) {
5252
'docs/latest/fuel-specs',
5353
'docs/latest/fuel-graphql-docs',
5454
'docs/latest/fuelup',
55+
'docs/guides/docs/migration-guide/breaking-change-log',
5556
];
5657
console.log('GOING TO UPDATE REGARDLESS');
5758
await Promise.all(

spell-check-custom-words.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
SDK
2+
SDKs
23
testnet
34
testnets
45
mainnet

src/components/Layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const styles = {
104104
maxWidth: '1000px',
105105
width: '100vw',
106106
boxSizing: 'border-box',
107-
margin: 'auto',
107+
mx: 'auto',
108108
},
109109

110110
'@xl': {

src/config/paths.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
"fuel-graphql-docs": "graphql",
1717
"fuel-specs": "specs",
1818
"fuel-indexer": "indexer",
19-
"fuels-wallet": "wallet"
19+
"fuels-wallet": "wallet",
20+
"breaking-change-log/breaking-changes-log": "breaking-changes-log"
2021
}

0 commit comments

Comments
 (0)