Skip to content

Commit

Permalink
Merge branch 'dev_bjorn' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Apr 18, 2024
2 parents 5ebb8f1 + 0f95223 commit bc08a36
Show file tree
Hide file tree
Showing 34 changed files with 508 additions and 725 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
on: [push, pull_request]

name: "Documentation Status"

permissions:
contents: write

jobs:
build-and-publish:
if: "! contains(github.event.head_commit.message, '[ci skip]')"

timeout-minutes: 10

runs-on: ubuntu-latest

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install sphinx numpydoc sphinx-autobuild sphinx-rtd-theme
- name: Install this Python package
run: |
python -m pip install .[clipboard,download,express,gel]
- name: Session information
run: |
python --version
- name: Build documentation
run: |
cd docs
make html
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs/_build/html
13 changes: 0 additions & 13 deletions .readthedocs.yml

This file was deleted.

5 changes: 0 additions & 5 deletions docs/BUILD_HTML.sh

This file was deleted.

7 changes: 0 additions & 7 deletions docs/BUILD_RST_FILES.sh

This file was deleted.

1 change: 0 additions & 1 deletion docs/_config.yml

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
11 changes: 8 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "pydna"
copyright = "2022, Björn F. Johansson"
copyright = "2024, Björn F. Johansson"
author = "Björn F. Johansson"

import sys, os
import os
import sys

# contents of docs/conf.py
from importlib.metadata import version
Expand All @@ -25,6 +25,8 @@

extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.coverage",
"sphinx.ext.napoleon",
"sphinx.ext.doctest",
"sphinx.ext.viewcode",
"sphinx.ext.autosummary",
Expand All @@ -42,6 +44,9 @@
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

autodoc_member_order = 'bysource'
autodoc_preserve_defaults = True

numpydoc_show_class_members = False

# -- Options for HTML output -------------------------------------------------
Expand Down
Loading

0 comments on commit bc08a36

Please sign in to comment.