Skip to content

Commit 128248c

Browse files
committed
rm docs; set up pkgdown GitHub actions; update URL
1 parent 5348b7a commit 128248c

45 files changed

Lines changed: 53 additions & 22476 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/pkgdown.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
14+
15+
jobs:
16+
pkgdown:
17+
runs-on: ubuntu-latest
18+
# Only restrict concurrency for non-PR jobs
19+
concurrency:
20+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
21+
env:
22+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
permissions:
24+
contents: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
33+
34+
- uses: r-lib/actions/setup-r-dependencies@v2
35+
with:
36+
extra-packages: any::pkgdown, local::.
37+
needs: website
38+
39+
- name: Build site
40+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE, clean = TRUE)
41+
shell: Rscript {0}
42+
43+
- name: Deploy to GitHub pages 🚀
44+
if: github.event_name != 'pull_request'
45+
uses: JamesIves/github-pages-deploy-action@v4.5.0
46+
with:
47+
clean: true
48+
branch: gh-pages
49+
folder: docs

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Description: Provides a unified framework for sparse-group regularization and
2424
high-dimensional network inference where both sparsity and group structure
2525
are present.
2626
License: GPL (>= 3)
27-
URL: https://github.com/Carol-seven/grasps
27+
URL: https://github.com/Carol-seven/grasps, https://shiying-xiao.com/grasps
2828
BugReports: https://github.com/Carol-seven/grasps/issues
2929
Encoding: UTF-8
3030
LazyData: true

_pkgdown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ home:
22
title: grasps
33
description: Groupwise Regularized Adaptive Sparse Precision Solution
44

5-
url: https://github.com/Carol-seven/grasps
5+
url: https://shiying-xiao.com/grasps
66

77
template:
88
bootstrap: 5
99
opengraph:
1010
image:
11-
src: https://github.com/Carol-seven/grasps/blob/main/man/figures/logo.png
11+
src: https://raw.githubusercontent.com/Carol-seven/grasps/blob/main/man/figures/logo.png
1212

1313
authors:
1414
Shiying Xiao:

docs/404.html

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)