Skip to content

Commit

Permalink
Support infobox doc gen on stable release
Browse files Browse the repository at this point in the history
  • Loading branch information
pickfire committed Jul 2, 2021
1 parent 4bc23c1 commit 85d2ff5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3394,7 +3394,13 @@ macro_rules! mode_info {
#[doc = "<table><tr><th>key</th><th>desc</th></tr><tbody>"]
$(
#[doc = "<tr><td>"]
#[doc = mode_info!(@join $($key),+)]
// TODO switch to this once we use rust 1.54
// right now it will produce multiple rows
// #[doc = mode_info!(@join $($key),+)]
$(
#[doc = $key]
)+
// <-
#[doc = "</td><td>"]
#[doc = $desc]
#[doc = "</td></tr>"]
Expand Down

0 comments on commit 85d2ff5

Please sign in to comment.