Skip to content

Commit

Permalink
Merge pull request #11 from calico/sphinx-doc
Browse files Browse the repository at this point in the history
Sphinx doc
  • Loading branch information
lruizcalico authored Dec 12, 2023
2 parents d0230e0 + b8835b6 commit 00cfef0
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Baskerville Docs

on:
workflow_dispatch:
inputs:
python-version:
default: "3.10"
required: false
type: string

defaults:
run:
Expand All @@ -11,12 +16,20 @@ permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
cd ${{ github.workspace }}/src/docs
Expand Down
Empty file.
Empty file.
23 changes: 21 additions & 2 deletions src/docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
h5py~=3.7.0
intervaltree~=3.1.0
joblib~=1.1.1
matplotlib~=3.7.1
google-cloud-storage~=2.0.0
natsort~=7.1.1
networkx~=2.8.4
numpy
pandas~=1.5.3
pybigwig~=0.3.18
pysam~=0.21.0
pybedtools~=0.9.0
qnorm~=0.8.1
seaborn~=0.12.2
scikit-learn~=1.2.2
scipy~=1.9.1
sphinx
sphinx_rtd_theme
python-dotenv
google
sphinxcontrib-apidoc
statsmodels~=0.13.5
tensorflow==2.13.0
tabulate~=0.8.10
tqdm~=4.65.0
5 changes: 5 additions & 0 deletions src/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

# This root should be where docs folder is visible.
sys.path.insert(0, os.path.abspath("../.."))
sys.path.insert(0, os.path.abspath("../../baskerville"))
sys.path.insert(0, os.path.abspath("../../baskerville/scripts"))
sys.path.insert(0, os.path.abspath("../../bashkerville/helpers"))

sys.setrecursionlimit(1500)

project = "baskerville"
Expand All @@ -25,6 +29,7 @@
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"sphinx.ext.githubpages",
"sphinxcontrib.apidoc",
]

templates_path = ["_templates"]
Expand Down

0 comments on commit 00cfef0

Please sign in to comment.