Skip to content

Commit

Permalink
update sui
Browse files Browse the repository at this point in the history
  • Loading branch information
damirka committed Mar 30, 2024
1 parent c863a49 commit 0945ad0
Show file tree
Hide file tree
Showing 86 changed files with 5,667 additions and 1,405 deletions.
2 changes: 1 addition & 1 deletion sui/404.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions sui/appendix/contributing.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sui/appendix/glossary.html

Large diffs are not rendered by default.

245 changes: 245 additions & 0 deletions sui/appendix/publications.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/address.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/assert-and-abort.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/comments.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/constants.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/control-flow.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/copy-ability.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/drop-ability.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/expression.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/function.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/generics.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/importing-modules.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sui/basic-syntax/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/module.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/option.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/ownership-and-scope.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/primitive-types.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/references.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sui/basic-syntax/standard-library.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/string.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/struct-methods.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/struct.html

Large diffs are not rendered by default.

321 changes: 321 additions & 0 deletions sui/basic-syntax/testing.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sui/basic-syntax/type-reflection.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/vector.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/basic-syntax/visibility.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/before-we-begin/ide-support.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/before-we-begin/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/before-we-begin/install-sui.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sui/before-we-begin/move-2024.html

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions sui/concepts/address.html

Large diffs are not rendered by default.

289 changes: 289 additions & 0 deletions sui/concepts/fast-path.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sui/concepts/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/concepts/manifest.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/concepts/modules.html

Large diffs are not rendered by default.

274 changes: 0 additions & 274 deletions sui/concepts/object-model.html

This file was deleted.

2 changes: 1 addition & 1 deletion sui/concepts/packages.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion sui/concepts/user-interaction.html

Large diffs are not rendered by default.

31 changes: 23 additions & 8 deletions sui/concepts/what-is-a-transaction.html

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sui/concepts/what-is-an-account.html

Large diffs are not rendered by default.

62 changes: 44 additions & 18 deletions sui/css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
:root {
/* Browser default font-size is 16px, this way 1 rem = 10px */
font-size: 62.5%;
color-scheme: var(--color-scheme);
}

html {
zoom: 100%;
font-family: "Open Sans", sans-serif;
color: var(--fg);
background-color: var(--bg);
Expand All @@ -18,15 +18,14 @@ html {

body {
margin: 0;
font-size: 1.8rem;
font-size: 1.6rem;
overflow-x: hidden;
}

code {
font-family: var(--mono-font) !important;
font-size: var(--code-font-size);
font-weight: var(--code-font-weight);
line-height: var(--code-line-height);
direction: ltr !important;
}

/* make long words/inline code not x overflow */
Expand All @@ -50,13 +49,13 @@ h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
.hide-boring .boring { display: none; }
.hidden { display: none !important; }

h2, h3 { margin-top: 2.5em; }
h4, h5 { margin-top: 2em; }
h2, h3 { margin-block-start: 2.5em; }
h4, h5 { margin-block-start: 2em; }

.header + .header h3,
.header + .header h4,
.header + .header h5 {
margin-top: 1em;
margin-block-start: 1em;
}

h1:target::before,
Expand All @@ -67,7 +66,7 @@ h5:target::before,
h6:target::before {
display: inline-block;
content: "»";
margin-left: -30px;
margin-inline-start: -30px;
width: 30px;
}

Expand All @@ -76,28 +75,34 @@ h6:target::before {
https://bugs.webkit.org/show_bug.cgi?id=218076
*/
:target {
/* Safari does not support logical properties */
scroll-margin-top: calc(var(--menu-bar-height) + 0.5em);
}

.page {
outline: 0;
padding: 0 var(--page-padding);
margin-top: calc(0px - var(--menu-bar-height)); /* Compensate for the #menu-bar-hover-placeholder */
margin-block-start: calc(0px - var(--menu-bar-height)); /* Compensate for the #menu-bar-hover-placeholder */
}
.page-wrapper {
box-sizing: border-box;
background-color: var(--bg);
}
.no-js .page-wrapper,
.js:not(.sidebar-resizing) .page-wrapper {
transition: margin-left 0.3s ease, transform 0.3s ease; /* Animation: slide away */
}
[dir=rtl] .js:not(.sidebar-resizing) .page-wrapper {
transition: margin-right 0.3s ease, transform 0.3s ease; /* Animation: slide away */
}

.content {
overflow-y: auto;
padding: 0 5px 50px 5px;
}
.content main {
margin-left: auto;
margin-right: auto;
margin-inline-start: auto;
margin-inline-end: auto;
max-width: var(--content-max-width);
}
.content p { line-height: 1.45em; }
Expand Down Expand Up @@ -142,14 +147,37 @@ table tbody tr:nth-child(2n) {
}


/* blockquote {
blockquote {
margin: 20px 0;
padding: 0 20px;
color: var(--fg);
background-color: var(--quote-bg);
border-top: .1em solid var(--quote-border);
border-bottom: .1em solid var(--quote-border);
} */
border-block-start: .1em solid var(--quote-border);
border-block-end: .1em solid var(--quote-border);
}

.warning {
margin: 20px;
padding: 0 20px;
border-inline-start: 2px solid var(--warning-border);
}

.warning:before {
position: absolute;
width: 3rem;
height: 3rem;
margin-inline-start: calc(-1.5rem - 21px);
content: "ⓘ";
text-align: center;
background-color: var(--bg);
color: var(--warning-border);
font-weight: bold;
font-size: 2rem;
}

blockquote .warning:before {
background-color: var(--quote-bg);
}

kbd {
background-color: var(--table-border-color);
Expand All @@ -166,7 +194,7 @@ kbd {

:not(.footnote-definition) + .footnote-definition,
.footnote-definition + :not(.footnote-definition) {
margin-top: 2em;
margin-block-start: 2em;
}
.footnote-definition {
font-size: 0.9em;
Expand Down Expand Up @@ -204,5 +232,3 @@ kbd {
.result-no-output {
font-style: italic;
}


1 change: 1 addition & 0 deletions sui/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

:root {
--blockquote-offset: 30px;
--warning-border: orange;

--sides-offset: 30px;
--sidebar-width: 300px;
Expand Down
110 changes: 97 additions & 13 deletions sui/guides/2024-migration-guide.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/guides/better-error-handling.html

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion sui/guides/building-against-limits.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/guides/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/guides/upgradeability-practices.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/history.html

Large diffs are not rendered by default.

17 changes: 5 additions & 12 deletions sui/index.html

Large diffs are not rendered by default.

21 changes: 13 additions & 8 deletions sui/introduction.html

Large diffs are not rendered by default.

260 changes: 260 additions & 0 deletions sui/object/digital-assets.html

Large diffs are not rendered by default.

257 changes: 257 additions & 0 deletions sui/object/fast-path-and-consensus.html

Large diffs are not rendered by default.

246 changes: 246 additions & 0 deletions sui/object/from-account-to-object.html

Large diffs are not rendered by default.

31 changes: 12 additions & 19 deletions sui/object/index.html

Large diffs are not rendered by default.

267 changes: 267 additions & 0 deletions sui/object/object-model.html

Large diffs are not rendered by default.

252 changes: 252 additions & 0 deletions sui/object/ownership.html

Large diffs are not rendered by default.

1,196 changes: 1,058 additions & 138 deletions sui/print.html

Large diffs are not rendered by default.

239 changes: 0 additions & 239 deletions sui/programmability/balance-and-coin.html

This file was deleted.

2 changes: 1 addition & 1 deletion sui/programmability/bcs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/programmability/capability.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/programmability/collections.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions sui/programmability/display.html

Large diffs are not rendered by default.

369 changes: 369 additions & 0 deletions sui/programmability/dynamic-collections.html

Large diffs are not rendered by default.

63 changes: 37 additions & 26 deletions sui/programmability/dynamic-fields.html

Large diffs are not rendered by default.

333 changes: 333 additions & 0 deletions sui/programmability/dynamic-object-fields.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/programmability/epoch-and-time.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sui/programmability/events.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sui/programmability/fast-path.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sui/programmability/index.html

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions sui/programmability/module-initializer.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sui/programmability/one-time-witness.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/programmability/publisher.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions sui/programmability/sui-framework.html

Large diffs are not rendered by default.

297 changes: 0 additions & 297 deletions sui/programmability/testing.html

This file was deleted.

4 changes: 2 additions & 2 deletions sui/programmability/transaction-context.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sui/searchindex.json

Large diffs are not rendered by default.

239 changes: 239 additions & 0 deletions sui/storage/index.html

Large diffs are not rendered by default.

253 changes: 253 additions & 0 deletions sui/storage/key-ability.html

Large diffs are not rendered by default.

19 changes: 18 additions & 1 deletion sui/theme/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
/* Variables */

:root {
--warning-border: orange;
}

/* Changing styles */

html {
zoom: 100%;
}

body {
font-family: 'Rubik', sans-serif;
font-weight: lighter;
/* font-size: 16px !important; */
}

code {
font-weight: var(--code-font-weight);
line-height: var(--code-line-height);
}


h1, h2, h3, h4, h5 {
font-family: 'Rubik', sans-serif;
font-weight: normal;
}

#sidebar {
font-size: 0.9em;
font-size: 0.875em !important;
}

blockquote {
Expand Down
558 changes: 558 additions & 0 deletions sui/your-first-move/hello-sui.html

Large diffs are not rendered by default.

363 changes: 363 additions & 0 deletions sui/your-first-move/hello-world.html

Large diffs are not rendered by default.

251 changes: 0 additions & 251 deletions sui/your-first-move/index.html

This file was deleted.

0 comments on commit 0945ad0

Please sign in to comment.