Skip to content

Commit

Permalink
fix templates for individual classdef pages
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0m1th3as committed May 17, 2024
1 parent 9497584 commit 46dd271
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 31 deletions.
28 changes: 18 additions & 10 deletions inst/_layouts/classdef_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,26 @@
</div>
</div>
<div class="container-xl my-4">
<div class="card rounded">
<div class="card-header card-header-mod">
<div class="row d-flex flex-wrap align-items-center">
<div class="col-sm-3 col-md-5 mb-2 mb-sm-0">
<h3 class="d-inline-block mr-2">
Class&nbsp;Definition: <b><code>{{CLS_NAME}}</code></b>
</h3>
</div>
<div class="row flex-nowrap" style="min-height:0">
<div class="col-md-2 bg-light" style="overflow-y: scroll; width: 250px;">
<div class="p-2" style="text-align: center;">
<h3>Function List</h3>
</div>
</div>
<div class="card-body">
{{FCN_LIST}}
</div>
<div class="col-md-10">
<div class="card rounded">
<div class="card-header card-header-mod">
<div class="row d-flex flex-wrap align-items-center">
<h3 class="d-inline-block mr-2">
Class&nbsp;Definition: <b><code>{{CLS_NAME}}</code></b>
</h3>
</div>
</div>
<div class="card-body">
{{CLS_TEXT}}
</div>
</div>
</div>
</div>
</div>
42 changes: 21 additions & 21 deletions inst/_layouts/function_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,26 @@
</div>
</div>
<div class="container-xl my-4">
<div class="row flex-nowrap" style="min-height:0">
<div class="col-md-2 bg-light" style="overflow-y: scroll; width: 250px;">
<div class="p-2" style="text-align: center;">
<h3>Function List</h3>
</div>
<div class="row flex-nowrap" style="min-height:0">
<div class="col-md-2 bg-light" style="overflow-y: scroll; width: 250px;">
<div class="p-2" style="text-align: center;">
<h3>Function List</h3>
</div>
{{FCN_LIST}}
</div>
<div class="col-md-10">
<div class="card rounded">
<div class="card-header card-header-mod">
<div class="row d-flex flex-wrap align-items-center">
<h3 class="d-inline-block mr-2">
Function&nbsp;Reference: <b><code>{{FCN_NAME}}</code></b>
</h3>
</div>
</div>
<div class="card-body">
{{FCN_TEXT}}
</div>
</div>
</div>
</div>
</div>
<div class="col-md-10">
<div class="card rounded">
<div class="card-header card-header-mod">
<div class="row d-flex flex-wrap align-items-center">
<h3 class="d-inline-block mr-2">
Function&nbsp;Reference: <b><code>{{FCN_NAME}}</code></b>
</h3>
</div>
</div>
<div class="card-body">
{{FCN_TEXT}}
</div>
</div>
</div>
</div>
</div>

0 comments on commit 46dd271

Please sign in to comment.