Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhang committed Sep 23, 2024
1 parent 39a1beb commit 3d101b3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ jobs:
ref: 'gh-pages'
path: 'gh-pages-folder'

# - name: Deploy (preferred version)
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# single-commit: true
# branch: gh-pages
# folder: gh-pages-folder/version/${{ env.PREFERRED_VERSION }}
# clean: true
# clean-exclude: version
- name: Deploy (preferred version)
uses: JamesIves/github-pages-deploy-action@v4
with:
single-commit: true
branch: gh-pages
folder: gh-pages-folder/version/${{ env.PREFERRED_VERSION }}
clean: true
clean-exclude: version
13 changes: 4 additions & 9 deletions docs/_static/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
"url": "https://kzhang.org/SnapATAC2/version/dev/"
},
{
"name": "2.7 (stable)",
"version": "2.7",
"name": "0.1 (stable)",
"version": "0.1",
"preferred": true,
"url": "https://kzhang.org/SnapATAC2/version/2.7/"
},
{
"name": "2.6",
"version": "2.6",
"url": "https://kzhang.org/SnapATAC2/version/2.6/"
},
"url": "https://kzhang.org/SnapATAC2/version/dev/"
}
]
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"alt_text": "precellar",
},

"github_url": "https://github.com/kaizhang/SnapATAC2",
"github_url": "https://github.com/regulatory-genomics/precellar",
"external_links": [
],
"header_links_before_dropdown": 6,
Expand All @@ -133,12 +133,12 @@

"switcher": {
"version_match": switcher_version,
"json_url": "https://raw.githubusercontent.com/kaizhang/SnapATAC2/main/docs/_static/versions.json",
"json_url": "https://raw.githubusercontent.com/regulatory-genomics/precellar/refs/heads/main/docs/_static/versions.json",
},
}

commit = subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip().decode('ascii')
code_url = f"https://github.com/kaizhang/SnapATAC2/blob/{commit}"
code_url = f"https://github.com/regulatory-genomics/precellar/blob/{commit}"

# based on numpy doc/source/conf.py
def linkcode_resolve(domain, info):
Expand Down

0 comments on commit 3d101b3

Please sign in to comment.