Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

Make constructor arguments take less horizontal space and fit better

+20 -34
+3
CHANGELOG.md
··· 13 13 making Gleam packages discoverable through global search of HexDocs. 14 14 ([Diemo Gebhardt](https://github.com/diemogebhardt)) 15 15 16 + - Improved the styling of constructor argument descriptions in the generated 17 + documentation. ([Nicd](https://git.ahlcode.fi/nicd)) 18 + 16 19 - Allow users to set the `GLEAM_CACERTS_PATH` environment variable to specify a 17 20 path to a directory containing CA certificates to install Hex packages. 18 21 ([winstxnhdw](https://github.com/winstxnhdw))
+8 -13
compiler-core/src/docs/snapshots/gleam_core__docs__tests__docs_of_a_type_constructor_are_not_used_by_the_following_function.snap
··· 1 1 --- 2 2 source: compiler-core/src/docs/tests.rs 3 3 expression: "compile(config, modules)" 4 - snapshot_kind: text 5 4 --- 6 5 //// app.html 7 6 ··· 298 297 Arguments 299 298 </h4> 300 299 301 - <ul class="constructor-argument-list"> 300 + <dl class="constructor-argument-list"> 302 301 303 - <li> 304 - <div class="constructor-argument-item"> 305 - <p class="constructor-argument-label"> 306 - <i>wabble</i> 307 - </p> 308 - <div class="constructor-argument-doc"> 309 - <p>Documentation!!</p> 302 + <dt class="constructor-argument-label"> 303 + wabble 304 + </dt> 305 + <dd class="constructor-argument-doc"> 306 + <p>Documentation!!</p> 310 307 311 - </div> 312 - </div> 313 - </li> 308 + </dd> 314 309 315 - </ul> 310 + </dl> 316 311 317 312 </div> 318 313 </li>
+1 -9
compiler-core/templates/docs-css/index.css
··· 565 565 margin-bottom: var(--small-gap); 566 566 } 567 567 568 - .constructor-argument-item { 569 - display: flex; 570 - } 571 - 572 568 .constructor-argument-label { 573 - flex-shrink: 0; 574 - } 575 - 576 - .constructor-argument-doc { 577 - margin-left: var(--gap); 569 + font-style: italic; 578 570 } 579 571 580 572 .constructor-argument-list {
+8 -12
compiler-core/templates/documentation_module.html
··· 85 85 Arguments 86 86 </h4> 87 87 88 - <ul class="constructor-argument-list"> 88 + <dl class="constructor-argument-list"> 89 89 {% for argument in constructor.arguments %} 90 - <li> 91 - <div class="constructor-argument-item"> 92 - <p class="constructor-argument-label"> 93 - <i>{{ argument.name }}</i> 94 - </p> 95 - <div class="constructor-argument-doc"> 96 - {{ argument.doc|safe }} 97 - </div> 98 - </div> 99 - </li> 90 + <dt class="constructor-argument-label"> 91 + {{ argument.name }} 92 + </dt> 93 + <dd class="constructor-argument-doc"> 94 + {{ argument.doc|safe }} 95 + </dd> 100 96 {% endfor %} 101 - </ul> 97 + </dl> 102 98 {% endif %} 103 99 </div> 104 100 </li>