Increase sidebar density

finchie
Nov 20, 2023, 9:49 AM
MT5RA7VYHKPZGI6YD2A2BABWL7ZDHJBFTODU6JEVZHTVAITVVLHAC

Dependencies

  • [2] ZVDBFCW7 Display arguments when input is invalid
  • [3] YTW5RB26 Refactor argument type handling into enum
  • [4] BMG4FSHN Add basic `clap` support
  • [5] A4E5KLI2 Turn arguments into sidebar
  • [6] LEJN3E4Q Generate more semantic HTML
  • [7] G54GZBS4 Remove dependency on clap patches
  • [8] ALCCL4VK Create basic styling
  • [9] MIY7QPYK Refactor argument handling into a separate file
  • [10] C73UJ7ZY Create simple `xilem_html` demo

Change contents

  • edit in src/main.rs at line 46
    [3.921][3.388:408]()
    el::br(()),
  • replacement in src/arg.rs at line 4
    [2.40][3.703:791](),[3.107][3.703:791](),[3.703][3.703:791]()
    use xilem_html::{elements as el, Adapt, MessageResult, View, ViewMarker, ViewSequence};
    [2.40]
    [3.791]
    use xilem_html::{elements as el, Adapt, MessageResult, View, ViewExt, ViewMarker, ViewSequence};
  • replacement in src/arg.rs at line 138
    [2.94][2.94:148]()
    "Error parsing argument, potential defaults:"
    [2.94]
    [3.2974]
    "Error, potential defaults:"
  • replacement in src/arg.rs at line 148
    [3.423][3.423:673]()
    arg.get_long_help()
    .map(ToString::to_string)
    .unwrap_or_default()
    .strip_prefix(&short_help.to_string())
    .unwrap_or("No description provided")
    .to_string(),
    [3.423]
    [3.673]
    el::blockquote(
    arg.get_long_help()
    .map(ToString::to_string)
    .unwrap_or_default()
    .strip_prefix(&short_help.to_string())
    .unwrap_or("No description provided")
    .to_string(),
    ),
  • edit in src/arg.rs at line 207
    [3.4715]
    [3.4715]
    .class("arg_item")
  • edit in index.html at line 5
    [3.12]
    [3.486]
    :root {
    --section-padding: 10px;
    }
    .arg_item {
    border-top: 1px solid black;
    margin-bottom: var(--section-padding);
    }
    .container {
    display: flex;
    }
  • edit in index.html at line 25
    [3.211][3.211:270]()
    .container {
    display: flex;
    }
  • edit in index.html at line 40
    [3.895]
    [3.895]
    margin-top: 10px;
  • edit in index.html at line 50
    [3.1120]
    [3.1120]
    }
    h3 {
    margin-top: var(--section-padding);
    margin-bottom: 5px;
  • edit in index.html at line 56
    [3.1130]
    [3.636]
    ul,
    h4 {
    margin-top: 2px;
    margin-bottom: 0px;
    }