Skip to content

Commit 52f4282

Browse files
docs: add sway standards (#296)
1 parent ae1902c commit 52f4282

File tree

26 files changed

+249
-43
lines changed

26 files changed

+249
-43
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
[submodule "docs/nightly/sway-libs"]
6565
path = docs/nightly/sway-libs
6666
url = https://github.com/FuelLabs/sway-libs.git
67+
[submodule "docs/sway-standards"]
68+
path = docs/sway-standards
69+
url = https://github.com/FuelLabs/sway-standards
70+
[submodule "docs/nightly/sway-standards"]
71+
path = docs/nightly/sway-standards
72+
url = https://github.com/FuelLabs/sway-standards
6773
[submodule "docs/chain-configuration"]
6874
path = docs/chain-configuration
6975
url = https://github.com/FuelLabs/chain-configuration

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"**/node_modules": true,
1111
"**/.git": true,
1212
"**/sway": true,
13+
"**/sway-libs": true,
14+
"**/sway-standards": true,
1315
"**/builds": true,
1416
"**/fuel-graphql-docs": true,
1517
"**/fuel-indexer": true,

contentlayer.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const includeDirs = [
6262
'docs/intro',
6363
'docs/contributing',
6464
'docs/sway-libs/docs/book/src',
65+
'docs/sway-standards/docs/src',
6566
// NIGHTLY DOCS
6667
'docs/nightly/sway/docs/book/src',
6768
'docs/nightly/fuels-rs/docs/src',
@@ -70,6 +71,7 @@ const includeDirs = [
7071
'docs/nightly/fuel-graphql-docs/docs',
7172
'docs/nightly/fuels-wallet/packages/docs/docs',
7273
'docs/nightly/sway-libs/docs/book/src',
74+
'docs/nightly/sway-standards/docs/src',
7375
];
7476

7577
const excludeDirs = [
@@ -86,11 +88,14 @@ const excludeDirs = [
8688
'docs/fuels-rs/docs/src/SUMMARY.md',
8789
'docs/fuel-specs/src/SUMMARY.md',
8890
'docs/sway-libs/docs/book/src/SUMMARY.md',
91+
'docs/sway-standards/docs/src/SUMMARY.md',
92+
'docs/guides/docs/migration-guide/breaking-change-log/node_modules',
8993
// NIGHTLY DOCS
9094
'docs/nightly/sway/docs/book/src/SUMMARY.md',
9195
'docs/nightly/fuels-rs/docs/src/SUMMARY.md',
9296
'docs/nightly/fuel-specs/src/SUMMARY.md',
9397
'docs/nightly/sway-libs/docs/book/src/SUMMARY.md',
98+
'docs/nightly/sway-standards/docs/src/SUMMARY.md',
9499
];
95100

96101
export default makeSource({

docs/contributing/versions.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ parent:
88

99
# Versions
1010

11-
There are three version sets of the docs available in the `docs-hub`: `testnet`(the default version), `beta-5`, and `nightly`.
11+
There are two version sets of the docs available in the `docs-hub`: `testnet`(the default version), and `nightly`.
1212

1313
- The default version set is compatible with the `latest` toolchain and testnet.
14-
- The `beta-5` version set is compatible with the `beta-5` toolchain and testnet.
1514
- The `nightly` version set reflects the latest releases on GitHub. These versions may not be compatible with each other.
1615

1716
## Updating the Nightly Versions

docs/intro/what-is-fuel.mdx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,26 @@ cardsInfo={[
5454
headingIcon: 'Beach',
5555
body: 'An introduction to Sway with simple examples',
5656
},
57+
{
58+
link: '/docs/sway-libs',
59+
nightlyLink: '/docs/nightly/sway-libs',
60+
isExternal: false,
61+
heading: 'Sway Libraries',
62+
headingIcon: 'Book',
63+
body: 'Find useful libraries written in Sway.',
64+
},
65+
{
66+
link: '/docs/sway-standards',
67+
nightlyLink: '/docs/nightly/sway-standards',
68+
isExternal: false,
69+
heading: 'Sway Standards',
70+
headingIcon: 'Book',
71+
body: 'Learn about standards for the Sway language',
72+
},
5773
{
5874
link: 'https://fuellabs.github.io/sway/master/std/',
5975
isExternal: true,
60-
heading: 'Sway Standard Lib',
76+
heading: 'std-lib Reference',
6177
headingIcon: 'Book',
6278
body: 'Find definitions for helpful types and methods in Sway.',
6379
},
@@ -67,7 +83,7 @@ cardsInfo={[
6783
heading: 'Example Applications',
6884
headingIcon: 'Apps',
6985
body: 'Explore end-to-end applications written in Sway.',
70-
}
86+
},
7187
]}
7288
/>
7389

docs/nightly/fuels-ts

Submodule fuels-ts updated 118 files

docs/nightly/sway-libs

Submodule sway-libs updated 63 files

docs/nightly/sway-standards

Submodule sway-standards added at 1e567c6

docs/sway-libs

Submodule sway-libs updated 63 files

docs/sway-standards

Submodule sway-standards added at 1e567c6

0 commit comments

Comments
 (0)