diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 415f750..7843355 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,11 +9,11 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.7 - - uses: aiken-lang/setup-aiken@v0.1.0 + - uses: aiken-lang/setup-aiken@v1 with: - version: v1.0.28-alpha + version: v1.1.0 - run: aiken fmt --check - run: aiken c -D diff --git a/aiken.lock b/aiken.lock index 17ac365..2b68af7 100644 --- a/aiken.lock +++ b/aiken.lock @@ -3,57 +3,47 @@ [[requirements]] name = "aiken-lang/stdlib" -version = "1.9.0" +version = "v2" source = "github" [[requirements]] name = "aiken-extra/auxlib" -version = "2.190.202405" -source = "github" - -[[requirements]] -name = "aiken-extra/string_util" -version = "3.190.202405" +version = "2.200.202409" source = "github" [[requirements]] name = "aiken-extra/time_util" -version = "5.190.202405" +version = "5.200.202409" source = "github" [[requirements]] name = "aiken-extra/tx_util" -version = "1.190.202405" +version = "1.200.202409" source = "github" [[packages]] name = "aiken-lang/stdlib" -version = "1.9.0" +version = "v2" requirements = [] source = "github" [[packages]] name = "aiken-extra/auxlib" -version = "2.190.202405" -requirements = [] -source = "github" - -[[packages]] -name = "aiken-extra/string_util" -version = "3.190.202405" +version = "2.200.202409" requirements = [] source = "github" [[packages]] name = "aiken-extra/time_util" -version = "5.190.202405" +version = "5.200.202409" requirements = [] source = "github" [[packages]] name = "aiken-extra/tx_util" -version = "1.190.202405" +version = "1.200.202409" requirements = [] source = "github" [etags] +"aiken-lang/stdlib@v2" = [{ secs_since_epoch = 1725504669, nanos_since_epoch = 165477303 }, "d79382d2b6ecb3aee9b0755c31d8a5bbafe88a7b3706d7fb8a52fd4d05818501"] diff --git a/aiken.toml b/aiken.toml index dd7db55..dfbdb38 100644 --- a/aiken.toml +++ b/aiken.toml @@ -1,5 +1,5 @@ name = "ariady-putra/morbid" -version = "0.2.202405" +version = "0.2.202409" license = "Apache-2.0" description = "An Aiken contract for project 'ariady-putra/morbid'" @@ -10,25 +10,20 @@ platform = "github" [[dependencies]] name = "aiken-lang/stdlib" -version = "1.9.0" +version = "v2" source = "github" [[dependencies]] name = "aiken-extra/auxlib" -version = "2.190.202405" -source = "github" - -[[dependencies]] -name = "aiken-extra/string_util" -version = "3.190.202405" +version = "2.200.202409" source = "github" [[dependencies]] name = "aiken-extra/time_util" -version = "5.190.202405" +version = "5.200.202409" source = "github" [[dependencies]] name = "aiken-extra/tx_util" -version = "1.190.202405" +version = "1.200.202409" source = "github" diff --git a/docs/css/index.css b/docs/css/index.css index e50ac52..bc52e8d 100644 --- a/docs/css/index.css +++ b/docs/css/index.css @@ -5,7 +5,7 @@ --search-width: 680px; --header-height: 60px; --hash-offset: calc(var(--header-height) * 1.67); - --sidebar-width: 240px; + --sidebar-width: 260px; --gap: 24px; --small-gap: calc(var(--gap) / 2); --tiny-gap: calc(var(--small-gap) / 2); @@ -29,6 +29,13 @@ --color-table-border: #ea76cb; --color-code-background: #dce0e8; + /* Blockquote tags */ + --color-note: #0984e3; + --color-tip: #00b894; + --color-important: #e84393; + --color-warning: #f9ca24; + --color-caution: #e17055; + /* etc */ --nav-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1); --shadow: @@ -60,6 +67,15 @@ html { scroll-padding-top: var(--hash-offset); } +.tippy-box { + background-color: var(--color-text); + color: var(--color-background); +} + +.tippy-arrow { + color: var(--color-text); +} + a, a:visited { color: var(--color-link); @@ -281,11 +297,13 @@ p code { /* Module doc */ .module-name > a, +.module-heading > a, .module-member-kind > a { color: inherit; } .module-name > a:hover, +.module-heading > a:hover, .module-member-kind > a:hover { text-decoration: none; } @@ -303,10 +321,7 @@ p code { font-size: 0.95rem; max-height: calc(100vh - var(--header-height)); overflow-y: auto; - overscroll-behavior: contain; - padding-top: var(--gap); - padding-bottom: var(--gap); - padding-left: var(--gap); + padding: var(--gap) var(--small-gap); position: fixed; top: var(--header-height); transition: transform 0.5s ease; @@ -315,11 +330,14 @@ p code { height: 100%; display: flex; flex-direction: column; + overflow-x: hidden; + word-break: normal; } .sidebar h2 { margin: 0; - color: var(--color-link-accent); + color: var(--color-text); + font-size: 1.75em; } .sidebar h3.modules-prefix { @@ -340,17 +358,9 @@ p code { .sidebar li { line-height: 1.2; margin-bottom: 4px; -} - -.sidebar ul li a > strong { - font-weight: 900; - color: var(--color-link); -} - -.sidebar ul li a > strong::before { - font-size: 0.75em; - content: 'ᐅ '; - padding-right: 0.1rem; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .sidebar .sidebar-toggle { @@ -407,6 +417,10 @@ body.drawer-open .label-closed { .module-member-kind { font-size: 2rem; +} + +.module-heading, +.module-member-kind { color: var(--color-text); } @@ -457,6 +471,22 @@ body.drawer-open .label-closed { margin: 0 0 0 var(--small-gap); } +a.member-source, +a.member-source:hover, +a.member-source:visited { + text-decoration: none; + color: var(--color-text-accent); +} + +a.member-source::before { + content: '{ ... }'; + transition: all 0.5s ease-out; +} + +a.member-source:hover::before { + content: '{ view source }'; +} + /* Custom type constructors */ .constructor-list { @@ -498,22 +528,51 @@ body.drawer-open .label-closed { .constructor-item-docs { margin-left: var(--large-gap); margin-bottom: var(--gap); +} + +.constructor-item-docs > p { padding-left: 1.5rem; - margin-top: -1em; } -.constructor-item-docs::before { +.constructor-item-docs > p:first-child { + padding-top: 0.5rem; +} + +.constructor-item-docs > p:first-child::before { content: '↳'; position: relative; margin-left: -1.5rem; - top: 1.5em; color: var(--color-background-accent); + width: 1.5rem; + display: inline-block; +} + +.constructor-item-docs hr { + color: var(--color-text-accent); +} + +.constructor-item-docs hr:last-child { + display: none; } .constructor-item-docs p { margin: 0; } +.constructor-item-docs h4 { + margin-bottom: 1rem; + display: inline-block; +} + +.constructor-item-docs h4 > code { + padding: 0.5rem; +} + +.constructor-item-docs h4 ~ p { + padding-left: 0.5rem; + display: inline-block; +} + .constructor-name { box-shadow: unset; margin: 0; @@ -1037,3 +1096,155 @@ body.theme-dark { padding-top: 0; } } + +.sidebar li[data-indent] { + margin-bottom: unset; + display: flex; + flex-direction: row; + color: var(--color-background-accent); +} + +.sidebar li[data-indent] span, +.sidebar li[data-indent] a { + display: flex; + width: 100%; + position: relative; + left: -0.5rem; + padding-left: 0.75rem; +} + +.sidebar li[data-indent] a:hover, +.sidebar li[data-current] a, +.sidebar li[data-current] a:visited { + padding-right: 0.25rem; + text-decoration: none; + color: var(--color-text-accent); + background: + linear-gradient( + 115deg, + transparent 0.5rem, + var(--color-background-accent) 0.5rem + ); +} + +.sidebar li[data-indent="0"] { + font-size: 1.1em; +} + +.sidebar li[data-indent="0"]:not(first-child) { + margin-top: 0.5rem; +} + +.sidebar li[data-indent]::before { + content: '/'; + font-size: 1.05em; + font-family: monospace; + padding-left: 0.25rem; + letter-spacing: -0.1rem; + padding-left: 4rem; + display: flex; + color: var(--color-background-accent); +} + +.sidebar li[data-indent="0"]::before { display: none; } +.sidebar li[data-indent="1"]::before { padding-left: 1rem; } +.sidebar li[data-indent="2"]::before { padding-left: 2rem; } +.sidebar li[data-indent="3"]::before { padding-left: 3rem; } + +.sidebar li[data-heading] > a, +.sidebar li[data-heading] > a:visited, +.sidebar li[data-heading] { + font-weight: bold; + font-size: 1em; + color: var(--color-text); +} + +.sidebar li[data-heading="1"] { + margin-top: 1.5rem; + font-size: 1.4em; +} + +.sidebar li[data-heading="2"] { + margin-top: 1rem; + font-size: 1.2em; +} + +.sidebar li[data-heading="3"] { + margin-top: 0.75rem; + font-size: 1.1em; +} + +.sidebar li[data-heading="4"] { + margin-top: 0.5rem; + font-size: 1.1em; +} + +.sidebar li[data-heading]:first-child { + margin-top: 0; +} + +/* Blockquote tags */ + +blockquote.markdown-alert-note { + --color-alert: var(--color-note); + --text-alert: "Note"; +} + +blockquote.markdown-alert-tip { + --color-alert: var(--color-tip); + --text-alert: "Tip"; +} + + +blockquote.markdown-alert-important { + --color-alert: var(--color-important); + --text-alert: "Important"; +} + + +blockquote.markdown-alert-warning { + --color-alert: var(--color-warning); + --text-alert: "Warning"; +} + + +blockquote.markdown-alert-caution { + --color-alert: var(--color-caution); + --text-alert: "Caution"; +} + +blockquote.markdown-alert-note, +blockquote.markdown-alert-tip, +blockquote.markdown-alert-important, +blockquote.markdown-alert-warning, +blockquote.markdown-alert-caution { + border-left: 4px solid var(--color-alert); + padding-left: 1rem; + margin: 0; +} + +blockquote.markdown-alert-note > span.icon-group > svg.icon, +blockquote.markdown-alert-tip > span.icon-group > svg.icon, +blockquote.markdown-alert-important > span.icon-group > svg.icon, +blockquote.markdown-alert-warning > span.icon-group > svg.icon, +blockquote.markdown-alert-caution > span.icon-group > svg.icon { + width: 1em; + height: 1em; + display: inline-block; + position: relative; + top: 0.15rem; + margin-right: 0.25rem; +} + +blockquote.markdown-alert-note > span.icon-group, +blockquote.markdown-alert-tip > span.icon-group, +blockquote.markdown-alert-important > span.icon-group, +blockquote.markdown-alert-warning > span.icon-group, +blockquote.markdown-alert-caution > span.icon-group { + font-weight: bold; + font-variant: small-caps; + color: var(--color-alert); + display: inline-block; + width: 100%; + padding-bottom: 0.5rem; +} diff --git a/docs/index.html b/docs/index.html index 84a571d..7161751 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,8 +7,8 @@ - - + +
- + + - - + + + + - + +