Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update the hyperlinks to reference the new documentation hub #1520

Prev Previous commit
Next Next commit
docs: update "/sway/" and "/forc/" related doc urls
  • Loading branch information
petertonysmith94 committed Dec 14, 2023
commit d6541b324c0a8d3adcab6e2518e361d857be3508
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Commands:
Learn more about the Fuel Ecosystem.

- [🌴 Sway](https://docs.fuel.network/docs/sway/) — The new language, empowering everyone to build reliable and efficient smart contracts
- [🧰 Forc](https://fuellabs.github.io/sway/v0.30.1/forc/index.html) — The Fuel toolbox: _Build, deploy and manage your sway projects_
- [🧰 Forc](https://docs.fuel.network/docs/forc/) — The Fuel toolbox: _Build, deploy and manage your sway projects_
- [⚙️ Fuel Core](https://github.com/FuelLabs/fuel-core) — The new FuelVM, a blazingly fast blockchain VM
- [🔗 Fuel Specs](https://github.com/FuelLabs/fuel-specs) — The Fuel protocol specifications
- [💼 Fuels Wallet](https://github.com/FuelLabs/fuels-wallet) — The Official Fuels Wallet
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/src/guide/abi-typegen/index.md
Dhaiwat10 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import { data } from '../../versions.data'
const { forc } = data
const abiUrl = `
https://fuellabs.github.io/sway/v${forc}/book/sway-program-types/smart_contracts.html#the-abi-declaration
https://docs.fuel.network/docs/sway/sway-program-types/smart_contracts/#the-abi-declaration
`
const contractsUrl = `
https://fuellabs.github.io/sway/v${forc}/book/sway-program-types/smart_contracts.html
https://docs.fuel.network/docs/sway/sway-program-types/smart_contracts/
`
const scriptsUrl = `
https://fuellabs.github.io/sway/v${forc}/book/sway-program-types/scripts.html
https://docs.fuel.network/docs/sway/sway-program-types/scripts/
`
</script>

Expand Down
4 changes: 2 additions & 2 deletions apps/docs/src/guide/contracts/deploying-contracts.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup>
import { data } from '../../versions.data'
const { forc } = data
const indexUrl = `https://fuellabs.github.io/sway/v${forc}/book/introduction/index.html`
const jsonAbiUrl = `https://fuellabs.github.io/sway/v${forc}/book/introduction/sway_quickstart.html?highlight=abi#abi`
const indexUrl = `https://docs.fuel.network/docs/sway/introduction/`
const jsonAbiUrl = `https://docs.fuel.network/docs/sway/introduction/sway_quickstart/`
</script>

# Deploying Contracts
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/src/guide/predicates/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup>
import { data } from '../../versions.data'
const { forc } = data
const introUrl = `https://fuellabs.github.io/sway/v${forc}/book/introduction/index.html`
const debugUrl = `https://fuellabs.github.io/sway/v${forc}/book/sway-program-types/predicates.html?#debugging-predicates`
const introUrl = `https://docs.fuel.network/docs/sway/introduction/`
const debugUrl = `https://docs.fuel.network/docs/sway/sway-program-types/predicates/#debugging-predicates`
</script>

# Predicates
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/guide/scripts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { data } from '../../versions.data'
const { forc } = data
const url = `
https://fuellabs.github.io/sway/v${forc}/book/sway-program-types/scripts.html#scripts-and-the-sdks
https://docs.fuel.network/docs/sway/sway-program-types/scripts/#scripts-and-the-sdks
`
</script>

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/guide/scripts/instantiating-a-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { data } from '../../versions.data'
const { forc } = data
const url = `
https://fuellabs.github.io/sway/v${forc}/book/introduction/index.html
https://docs.fuel.network/docs/sway/introduction/
`
</script>

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/guide/testing/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup>
import { data } from '../../versions.data'
const { forc } = data
const url = `https://fuellabs.github.io/sway/v${forc}/book/forc/commands/forc_test.html`
const url = `https://docs.fuel.network/docs/forc/commands/forc_test/`
</script>

# Testing
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/guide/types/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ In this section, you will learn about:

As you progress through the documentation, you may find it helpful to refer back to the following resources:

- [Sway Documentation](https://fuellabs.github.io/sway/): Explore the Sway documentation homepage for an overview of Sway Types, as well as other sections.
- [Sway Documentation](https://docs.fuel.network/docs/sway/): Explore the Sway documentation homepage for an overview of Sway Types, as well as other sections.

- [The Fuel Book](https://fuelbook.fuel.network/master/index.html): A comprehensive guide to the whole Fuel ecosystem.
4 changes: 2 additions & 2 deletions apps/docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup>
import { data } from './versions.data'
const { forc, fuels, fuelCore } = data
const url = `https://fuellabs.github.io/sway/v${forc}/book/forc/index.html`
const url = `https://docs.fuel.network/docs/forc/`
const logoSrc = './fuel-logo.png'
</script>

Expand All @@ -25,7 +25,7 @@ We recommend starting with the [Developer Quickstart](https://fuellabs.github.io

Learn more about the Fuel Ecosystem.

- [🌴 Sway](https://fuellabs.github.io/sway/) the new language. Empowering everyone to build reliable and efficient smart contracts.
- [🌴 Sway](https://docs.fuel.network/docs/sway/) the new language. Empowering everyone to build reliable and efficient smart contracts.
- <a :href="url" target="_blank" rel="noreferrer">🧰 Forc</a> the Fuel toolbox. Build, deploy and manage your sway projects.
- [⚙️ Fuel Core](https://github.com/FuelLabs/fuel-core) the new FuelVM, a blazingly fast blockchain VM.
- [🔗 Fuel Specs](https://github.com/FuelLabs/fuel-specs) the Fuel protocol specifications.
Expand Down