Skip to content

Commit 6f1b77b

Browse files
docs: Fix core link (#368)
* bump sway * Ready for review
1 parent dd99a7a commit 6f1b77b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/config/constants.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export type LinkObject = {
1919
};
2020

2121
export const EXTERNAL_NAVIGATION_LINKS: LinkObject[] = [
22+
{
23+
name: "Sway Core Lib",
24+
link: "https://fuellabs.github.io/sway/master/core/",
25+
},
2226
{
2327
name: "Sway Std Lib",
2428
link: "https://fuellabs.github.io/sway/master/std/",
@@ -75,6 +79,10 @@ export const NAVIGATION: any[] = [
7579
name: "Standard Library",
7680
link: "https://fuellabs.github.io/sway/master/std/",
7781
},
82+
{
83+
name: "Core Library",
84+
link: "https://fuellabs.github.io/sway/master/core/",
85+
},
7886
{
7987
name: "Sway Playground",
8088
link: "https://sway-playground.org",

src/lib/plugins/links.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ function replaceInternalLinks(href: string, base: string) {
370370
newHref.startsWith('https://fuellabs.github.io') &&
371371
!newHref.includes('fuellabs.github.io/block-explorer-v2') &&
372372
!newHref.startsWith('https://fuellabs.github.io/sway/master/std/') &&
373+
!newHref.startsWith('https://fuellabs.github.io/sway/master/core/') &&
373374
!newHref.includes('LICENSE') &&
374375
!newHref.includes('/fuelup/') &&
375376
// ignore sway-libs reference links

0 commit comments

Comments
 (0)