Skip to content

Commit d2da31a

Browse files
committed
docs: add DeepWiki badge
1 parent e62329b commit d2da31a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.Rmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ pkgsnip::md_snip(id = "pkg_usage") %>%
6666

6767
## Development
6868

69+
```{r}
70+
#| label: pkg-deepwiki
71+
#| child: !expr pkgsnip::snip_path("pkg-deepwiki.Rmd")
72+
```
73+
6974
### R Markdown format
7075

7176
```{r}

netlify.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ for = "/*"
1717
# - `connect-src data:` is required for asciinema (asciicast)
1818
# - `connect-src https://t.counter.dev` is required for counter.dev analytics
1919
# - `object-src 'self';` has to be set to enable PDF preview in Chrome
20+
# - `img-src https://deepwiki.com` has to be set for the DeepWiki badge in the README
21+
# - `img-src https://github.com` has to be set for the `R CMD check` badge in the README
22+
# - `img-src https://r-pkg.org` has to be set for the CRAN badge in the README
2023
# - `script-src 'unsafe-eval'` is required for MathJax, cf. https://github.com/mathjax/MathJax/issues/1988#issuecomment-384978927
2124
# - `script-src https://rpkg.dev` is required for counter.dev analytics
2225
# - `style-src 'unsafe-inline'` is required for MathJax, cf. https://github.com/mathjax/MathJax/issues/1988#issuecomment-581567775
@@ -26,7 +29,7 @@ Content-Security-Policy = '''
2629
default-src 'none';
2730
connect-src 'self' data: https://t.counter.dev;
2831
font-src 'self';
29-
img-src 'self' data: https://r-pkg.org;
32+
img-src 'self' data: https://deepwiki.com https://github.com https://r-pkg.org;
3033
manifest-src 'self';
3134
object-src 'self';
3235
script-src 'self' 'unsafe-eval' https://rpkg.dev;

0 commit comments

Comments
 (0)