From 3d101b303a2f58323fe3d7dd0f5839285a6064cb Mon Sep 17 00:00:00 2001 From: Kai Zhang Date: Mon, 23 Sep 2024 12:01:26 +0800 Subject: [PATCH] update --- .github/workflows/docs.yml | 16 ++++++++-------- docs/_static/versions.json | 13 ++++--------- docs/conf.py | 6 +++--- 3 files changed, 15 insertions(+), 20 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 00ca3b5..eea1fe0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 \ No newline at end of file + - 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 \ No newline at end of file diff --git a/docs/_static/versions.json b/docs/_static/versions.json index a292dde..b2931ea 100644 --- a/docs/_static/versions.json +++ b/docs/_static/versions.json @@ -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/" + } ] \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 83645b9..808a4b8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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, @@ -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):