Skip to content

Commit

Permalink
fix obtaining metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Oct 17, 2024
1 parent 5084c3a commit 5130207
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ site:
---

```{r, echo=FALSE}
install.packages(".", repos=NULL, quiet=TRUE) ## seems to be required
litedown::pkg_desc()
```

Expand Down
2 changes: 1 addition & 1 deletion docs/news.Rmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```{r, echo=FALSE}
litedown::pkg_news(recent = 0) # show full news
litedown::pkg_news(recent=0)
```
2 changes: 1 addition & 1 deletion docs/vignettes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ html = list.files("./vignettes", "*.html", full.names=TRUE)
title = function(f) {
title1 = function(f) {
l = readLines(f)
t = paste(head(strsplit(basename(f), ".", fixed=TRUE)[[1L]], -1L), collapse=".") ## default
t = paste(head(strsplit(basename(f), ".", fixed=TRUE)[[1L]], -1L), collapse=".") ## default, basename without extension
for (i in seq_along(l)) {
if (substr(l[i], 1L, 6L) != "title:")
next
Expand Down

0 comments on commit 5130207

Please sign in to comment.