Skip to content

Commit

Permalink
add wxWidgets version to html doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mcorino committed Nov 11, 2023
1 parent 0dbc859 commit 10823a4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
14 changes: 14 additions & 0 deletions rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ div.wxrb-logo span.wxrb-version {
margin-right: 15px;
}

div.wxrb-logo span.wxrb-wxver {
font-size: 0.9em;
font-weight: normal;
margin-right: 15px;
}

div.wxrb-logo table {
display: inline;
}

div.wxrb-logo table td {
margin: 0;
}

.discussion div.note {
background: #f7f7f9;
border-left: .6em solid #f3ba6f;
Expand Down
11 changes: 10 additions & 1 deletion rakelib/yard/templates/default/fulldoc/html/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,14 @@ def stylesheets_full_list

def logo_and_version
wxver = Registry['Wx::WXRUBY_VERSION']
%Q{<div class='wxrb-logo'><img src='assets/logo.png' height='38'/><span class='wxrb-name'><a href="https://github.com/mcorino/wxRuby3">wxRuby3</a> </span><span class='wxrb-version'>Version: #{::Kernel.eval(wxver.value)}</span></div>}
wxwver = Registry['Wx::WXWIDGETS_VERSION']
<<~__HTML
<div class='wxrb-logo'>
<img src='assets/logo.png' height='38'/>
<table><tbody>
<tr><td><span class='wxrb-name'><a href="https://github.com/mcorino/wxRuby3">wxRuby3</a></span></td><td><span class='wxrb-version'>Version: #{::Kernel.eval(wxver.value)}</span></td></tr>
<tr><td></td><td><span class="wxrb-wxver">(wxWidgets: #{::Kernel.eval(wxwver.value)})</span></td></tr>
</tbody></table>
</div>
__HTML
end

0 comments on commit 10823a4

Please sign in to comment.