Skip to content

Commit 598b4ef

Browse files
committed
use hexicon in site
1 parent 0472dae commit 598b4ef

29 files changed

+98
-93
lines changed

README.Rmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ knitr::opts_chunk$set(
1515

1616
# cpp4r
1717

18-
<img src="man/figures/logo.svg" height="139" alt="" />
19-
2018
<!-- badges: start -->
2119
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
2220
[![R-CMD-check](https://github.com/pachadotdev/cpp4r/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/pachadotdev/cpp4r/actions/workflows/R-CMD-check.yaml)

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
# cpp4r
55

6-
<img src="man/figures/logo.svg" height="139" alt="" />
7-
86
<!-- badges: start -->
97

108
[![Lifecycle:

badges/coverage.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/content.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,25 @@ table.ref-arguments {
211211
border-collapse: collapse;
212212
width: 100%;
213213
margin: 1em 0;
214+
table-layout: auto; /* Allow auto-sizing based on content */
214215
}
215216

216217
table.ref-arguments td {
217-
padding: 0.5em;
218+
padding: 0.75em 1em 0.75em 0;
218219
vertical-align: top;
219220
border: none;
221+
line-height: 1.4;
220222
}
221223

222224
table.ref-arguments td:first-child {
223-
width: 20%;
224-
min-width: 8em;
225+
white-space: nowrap; /* Keep parameter names on one line */
226+
width: 1%; /* Let it shrink to content size */
227+
padding-right: 1.5em;
228+
font-weight: bold;
229+
}
230+
231+
table.ref-arguments td:last-child {
232+
width: auto; /* Take up remaining space */
225233
}
226234

227235
/* Code */

docs/index.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
<div class="main-container">
2727
<div id="menu">
2828
<div>
29-
<h1>cpp4r Documentation</h1>
30-
</div>
29+
<img src="man/figures/logo.svg" align="center" height="139" alt="cpp4r logo"></div>
3130

3231
<div class="search-container">
3332
<input type="text" id="search-box" placeholder="Search..."><button id="theme-toggle" title="Toggle dark mode" aria-label="Toggle dark mode">💡</button>
@@ -76,8 +75,6 @@ <h1>cpp4r Documentation</h1>
7675
<div class="content-main">
7776
<p># cpp4r</p>
7877

79-
<p><img src="man/figures/logo.svg" height="139" alt=""></p>
80-
8178
<p><a href="https://lifecycle.r-lib.org/articles/stages.html#stable"><img src="https://img.shields.io/badge/lifecycle-stable-brightgreen.svg" alt="Lifecycle:
8279
stable"></a>
8380
<a href="https://github.com/pachadotdev/cpp4r/actions/workflows/R-CMD-check.yaml"><img src="https://github.com/pachadotdev/cpp4r/actions/workflows/R-CMD-check.yaml/badge.svg" alt="R-CMD-check"></a>
@@ -174,7 +171,7 @@ <h1>cpp4r Documentation</h1>
174171
of Conduct</a>. By contributing to
175172
this project, you agree to abide by its terms.</p>
176173
</div>
177-
<footer><p>Last updated: 2025-10-12 17:59:33</p>
174+
<footer><p>Last updated: 2025-10-12 19:45:53</p>
178175
</footer><script>
179176
document.addEventListener('DOMContentLoaded', function() {
180177
// Theme toggle functionality

docs/menu.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@
2020
margin-bottom: 1.5em;
2121
}
2222

23+
/* Logo styling */
24+
#menu img {
25+
display: block;
26+
margin: 0 auto 1em auto;
27+
max-width: 100%;
28+
height: auto;
29+
}
30+
31+
/* Responsive logo sizing */
32+
@media (max-width: 768px) {
33+
#menu img {
34+
height: 80px;
35+
}
36+
}
37+
2338
/* Theme toggle button */
2439
#menu > div:first-child {
2540
display: flex;

docs/news/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
<div class="main-container">
2727
<div id="menu">
2828
<div>
29-
<h1>cpp4r Documentation</h1>
30-
</div>
29+
<img src="../man/figures/logo.svg" align="center" height="139" alt="cpp4r logo"></div>
3130

3231
<div class="search-container">
3332
<input type="text" id="search-box" placeholder="Search..."><button id="theme-toggle" title="Toggle dark mode" aria-label="Toggle dark mode">💡</button>
@@ -91,7 +90,7 @@ <h1>Changelog</h1>
9190

9291
<ul><li>Initial release</li>
9392
</ul></div>
94-
<footer><p>Last updated: 2025-10-12 17:59:40</p>
93+
<footer><p>Last updated: 2025-10-12 19:46:01</p>
9594
</footer><script>
9695
document.addEventListener('DOMContentLoaded', function() {
9796
// Theme toggle functionality

docs/reference/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
<div class="main-container">
2727
<div id="menu">
2828
<div>
29-
<h1>cpp4r Documentation</h1>
30-
</div>
29+
<img src="../man/figures/logo.svg" align="center" height="139" alt="cpp4r logo"></div>
3130

3231
<div class="search-container">
3332
<input type="text" id="search-box" placeholder="Search..."><button id="theme-toggle" title="Toggle dark mode" aria-label="Toggle dark mode">💡</button>
@@ -79,7 +78,7 @@ <h1>Function Reference</h1>
7978
<li><a href="pkg_template.html">pkg_template</a></li>
8079
<li><a href="unvendor.html">unvendor</a></li>
8180
<li><a href="vendor.html">vendor</a></li></ul></div>
82-
<footer><p>Last updated: 2025-10-12 17:59:33</p>
81+
<footer><p>Last updated: 2025-10-12 19:45:53</p>
8382
</footer><script>
8483
document.addEventListener('DOMContentLoaded', function() {
8584
// Theme toggle functionality

docs/reference/pkg_template.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
<div class="main-container">
2727
<div id="menu">
2828
<div>
29-
<h1>cpp4r Documentation</h1>
30-
</div>
29+
<img src="../man/figures/logo.svg" align="center" height="139" alt="cpp4r logo"></div>
3130

3231
<div class="search-container">
3332
<input type="text" id="search-box" placeholder="Search..."><button id="theme-toggle" title="Toggle dark mode" aria-label="Toggle dark mode">💡</button>
@@ -76,16 +75,16 @@ <h1>cpp4r Documentation</h1>
7675
<div class="content-main">
7776
<h1></h1>
7877
<h2>Arguments</h2>
79-
<table class="ref-arguments"><tr><td><strong>path</strong></td><td><p>Path to the new project</p></td></tr><tr><td><strong>pkgname</strong></td><td><p>Name of the new package</p></td></tr></table><h2>Examples</h2>
78+
<table class="ref-arguments"><tbody><tr><td><strong>path</strong></td><td>Path to the new project</td></tr><tr><td><strong>pkgname</strong></td><td>Name of the new package</td></tr></tbody></table><h2>Examples</h2>
8079
<div class="sourceCode"><pre><code># create a new directory
8180
dir &lt;- tempdir()
8281
dir.create(dir)</code></pre></div>
8382
<div class="output"><pre><code>## [1] FALSE</code></pre></div>
8483
<div class="sourceCode"><pre><code># copy the package template into the directory
8584
pkg_template(dir, "mynewpkg")</code></pre></div>
86-
<div class="error"><pre><code>## Error: could not find function "pkg_template"</code></pre></div>
85+
<div class="output"><pre><code>## [1] "/tmp/RtmpD7okxS"</code></pre></div>
8786
</div>
88-
<footer><p>Last updated: 2025-10-12 17:59:33</p>
87+
<footer><p>Last updated: 2025-10-12 19:45:53</p>
8988
</footer><script>
9089
document.addEventListener('DOMContentLoaded', function() {
9190
// Theme toggle functionality

docs/reference/register.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
<div class="main-container">
2727
<div id="menu">
2828
<div>
29-
<h1>cpp4r Documentation</h1>
30-
</div>
29+
<img src="../man/figures/logo.svg" align="center" height="139" alt="cpp4r logo"></div>
3130

3231
<div class="search-container">
3332
<input type="text" id="search-box" placeholder="Search..."><button id="theme-toggle" title="Toggle dark mode" aria-label="Toggle dark mode">💡</button>
@@ -76,7 +75,7 @@ <h1>cpp4r Documentation</h1>
7675
<div class="content-main">
7776
<h1></h1>
7877
<h2>Arguments</h2>
79-
<table class="ref-arguments"><tr><td><strong>path</strong></td><td><p>The path to the package root directory. The default is \code{NULL},</p></td></tr><tr><td><strong>quiet</strong></td><td><p>If <code>TRUE</code> suppresses output from this function</p></td></tr><tr><td><strong>extension</strong></td><td><p>The file extension to use for the generated src/cpp4r file.</p></td></tr></table><h2>Examples</h2>
78+
<table class="ref-arguments"><tbody><tr><td><strong>path</strong></td><td>The path to the package root directory. The default is \code{NULL},</td></tr><tr><td><strong>quiet</strong></td><td>If <code>TRUE</code> suppresses output from this function</td></tr><tr><td><strong>extension</strong></td><td>The file extension to use for the generated src/cpp4r file.</td></tr></tbody></table><h2>Examples</h2>
8079
<div class="sourceCode"><pre><code># create a minimal package
8180
dir &lt;- tempfile()
8281
dir.create(dir)</code></pre></div>
@@ -88,16 +87,17 @@ <h2>Arguments</h2>
8887
writeLines("[[cpp4r::register]] int one() { return 1; }", file.path(dir, "src", "one.cpp"))</code></pre></div>
8988
<div class="sourceCode"><pre><code># register the functions in the package
9089
register(dir)</code></pre></div>
91-
<div class="error"><pre><code>## Error: could not find function "register"</code></pre></div>
90+
<div class="output"><pre><code>## [1] "/tmp/RtmpD7okxS/file7aa8f1fd38b08/R/cpp4r.R"
91+
## [2] "/tmp/RtmpD7okxS/file7aa8f1fd38b08/src/cpp4r.cpp"</code></pre></div>
9292
<div class="sourceCode"><pre><code># Files generated by registration
9393
file.exists(file.path(dir, "R", "cpp4r.R"))
9494
file.exists(file.path(dir, "src", "cpp4r.cpp"))</code></pre></div>
95-
<div class="output"><pre><code>## [1] FALSE</code></pre></div>
95+
<div class="output"><pre><code>## [1] TRUE</code></pre></div>
9696
<div class="sourceCode"><pre><code># cleanup
9797
unlink(dir, recursive = TRUE)</code></pre></div>
9898
<div class="output"><pre><code>## [1] 0</code></pre></div>
9999
</div>
100-
<footer><p>Last updated: 2025-10-12 17:59:33</p>
100+
<footer><p>Last updated: 2025-10-12 19:45:53</p>
101101
</footer><script>
102102
document.addEventListener('DOMContentLoaded', function() {
103103
// Theme toggle functionality

0 commit comments

Comments
 (0)