diff --git a/docs/intro/what-is-fuel.mdx b/docs/intro/what-is-fuel.mdx index ecd8fac42..7bc9c7e06 100644 --- a/docs/intro/what-is-fuel.mdx +++ b/docs/intro/what-is-fuel.mdx @@ -52,7 +52,14 @@ cardsInfo={[ isExternal: true, heading: 'Sway By Example', headingIcon: 'Beach', - body: 'An introduction to Sway with simple examples', + body: 'An introduction to Sway with bite-sized simple examples', + }, + { + link: 'https://github.com/FuelLabs/sway-examples', + isExternal: true, + heading: 'Sway Examples', + headingIcon: 'Robot', + body: 'Examples of full-stack DeFi applications', }, { link: '/docs/sway-libs', diff --git a/docs/migrations-and-disclosures b/docs/migrations-and-disclosures index d49ee983e..582cfcedb 160000 --- a/docs/migrations-and-disclosures +++ b/docs/migrations-and-disclosures @@ -1 +1 @@ -Subproject commit d49ee983eb8a23ec890605e88f3cbc3b6e40b683 +Subproject commit 582cfcedb76eef3196b5bb04dda9c109f80f70f6 diff --git a/docs/nightly/migrations-and-disclosures b/docs/nightly/migrations-and-disclosures index d9e3062b3..582cfcedb 160000 --- a/docs/nightly/migrations-and-disclosures +++ b/docs/nightly/migrations-and-disclosures @@ -1 +1 @@ -Subproject commit d9e3062b3fe19a45f4016f24baf3b3575c9a60df +Subproject commit 582cfcedb76eef3196b5bb04dda9c109f80f70f6 diff --git a/src/config/constants.ts b/src/config/constants.ts index 1a643f8d3..b33f8ca1f 100644 --- a/src/config/constants.ts +++ b/src/config/constants.ts @@ -1,16 +1,16 @@ -import { join } from "path"; +import { join } from 'path'; -export const DOCS_DIRECTORY = join(process.cwd(), "./docs"); -export const NIGHTLY_DOCS_DIRECTORY = join(process.cwd(), "./docs/nightly"); -export const FIELDS = ["title", "slug", "content", "category"]; +export const DOCS_DIRECTORY = join(process.cwd(), './docs'); +export const NIGHTLY_DOCS_DIRECTORY = join(process.cwd(), './docs/nightly'); +export const FIELDS = ['title', 'slug', 'content', 'category']; -export const FUEL_TESTNET = "testnet"; -export const FUEL_TESTNET_UPPER_CASE = "Testnet"; -export const TESTNET_VERSION = "v1"; +export const FUEL_TESTNET = 'testnet'; +export const FUEL_TESTNET_UPPER_CASE = 'Testnet'; +export const TESTNET_VERSION = 'v1'; export const FAUCET_LINK = `https://faucet-${FUEL_TESTNET}.fuel.network/`; export const PLAYGROUND_LINK = `https://${FUEL_TESTNET}.fuel.network/${TESTNET_VERSION}/playground/`; -export const EXPLORER_LINK = "https://app.fuel.network/"; -export const BRIDGE_LINK = "https://app.fuel.network/bridge"; +export const EXPLORER_LINK = 'https://app.fuel.network/'; +export const BRIDGE_LINK = 'https://app.fuel.network/bridge'; export type LinkObject = { name: string; @@ -20,32 +20,36 @@ export type LinkObject = { export const EXTERNAL_NAVIGATION_LINKS: LinkObject[] = [ { - name: "Sway Core Lib", - link: "https://fuellabs.github.io/sway/master/core/", + name: 'Sway Core Lib', + link: 'https://fuellabs.github.io/sway/master/core/', }, { - name: "Sway Std Lib", - link: "https://fuellabs.github.io/sway/master/std/", + name: 'Sway Std Lib', + link: 'https://fuellabs.github.io/sway/master/std/', }, { - name: "Example Applications", - link: "https://github.com/FuelLabs/sway-applications/", + name: 'Sway Examples', + link: 'https://github.com/FuelLabs/sway-examples/', }, { - name: "Sway Playground", - link: "https://sway-playground.org/", + name: 'Example Applications', + link: 'https://github.com/FuelLabs/sway-applications/', }, { - name: "Sway By Example", - link: "https://swaybyexample.com/", + name: 'Sway Playground', + link: 'https://sway-playground.org/', }, { - name: "Faucet", + name: 'Faucet', link: FAUCET_LINK, }, { - name: "Contributing", - link: "/docs/contributing", + name: 'Audits', + link: 'https://github.com/FuelLabs/audits', + }, + { + name: 'Contributing', + link: '/docs/contributing', }, ]; @@ -54,98 +58,98 @@ export const EXTERNAL_NAVIGATION_LINKS: LinkObject[] = [ // biome-ignore lint/suspicious/noExplicitAny: export const NAVIGATION: any[] = [ { - name: "Guides", - link: "/guides", + name: 'Guides', + link: '/guides', }, { - name: "Intro", - link: "/docs/intro", + name: 'Intro', + link: '/docs/intro', }, { - name: "Sway", + name: 'Sway', menu: [ { - name: "Sway Language", + name: 'Sway Language', }, { - name: "Sway", - link: "/docs/sway", + name: 'Sway', + link: '/docs/sway', }, { - name: "Standard Library", - link: "https://fuellabs.github.io/sway/master/std/", + name: 'Standard Library', + link: 'https://fuellabs.github.io/sway/master/std/', }, { - name: "Core Library", - link: "https://fuellabs.github.io/sway/master/core/", + name: 'Core Library', + link: 'https://fuellabs.github.io/sway/master/core/', }, { - name: "Sway Playground", - link: "https://sway-playground.org", + name: 'Sway Playground', + link: 'https://sway-playground.org', }, { - name: "Sway By Example", - link: "https://swaybyexample.com/", + name: 'Sway By Example', + link: 'https://swaybyexample.com/', }, { - name: "Example Apps", - link: "https://github.com/FuelLabs/sway-applications/", + name: 'Example Apps', + link: 'https://github.com/FuelLabs/sway-applications/', }, { - name: "Tooling", + name: 'Tooling', }, { - name: "Forc", - link: "/docs/forc", + name: 'Forc', + link: '/docs/forc', }, ], }, { - name: "SDKs", + name: 'SDKs', menu: [ { - name: "Rust SDK", - link: "/docs/fuels-rs", + name: 'Rust SDK', + link: '/docs/fuels-rs', }, { - name: "TypeScript SDK", - link: "/docs/fuels-ts", + name: 'TypeScript SDK', + link: '/docs/fuels-ts', }, { - name: "Wallet", - link: "/docs/wallet/install/", + name: 'Wallet', + link: '/docs/wallet/install/', }, ], }, { - name: "Network", + name: 'Network', menu: [ // { // name: 'About Fuel', // link: '/docs/about-fuel/', // }, { - name: "GraphQL API", - link: "/docs/graphql/overview/", + name: 'GraphQL API', + link: '/docs/graphql/overview/', }, { - name: "Specifications", - link: "/docs/specs", + name: 'Specifications', + link: '/docs/specs', }, { - name: "Explorer", + name: 'Explorer', link: EXPLORER_LINK, }, { - name: "Faucet", + name: 'Faucet', link: FAUCET_LINK, }, { - name: "Bridge", + name: 'Bridge', link: BRIDGE_LINK, }, ], }, ]; -export const DEFAULT_THEME = "light"; +export const DEFAULT_THEME = 'light';