Skip to content

Commit ee66e2c

Browse files
committed
Restrucuture source files
1 parent 2c818ef commit ee66e2c

File tree

15 files changed

+99
-262
lines changed

15 files changed

+99
-262
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
push:
66
branches:
77
- source
8-
pull_request:
9-
branches:
10-
- source
118

129
# This job installs dependencies, build the book, and pushes it to `gh-pages`
1310
jobs:
@@ -17,29 +14,23 @@ jobs:
1714
- uses: actions/checkout@v2
1815

1916
# Install dependencies
20-
- name: Set up Python 3.7
21-
uses: actions/setup-python@v1
17+
- name: Set up Python 3
18+
uses: actions/setup-python@v4
2219
with:
23-
python-version: 3.7
20+
python-version: "3.10"
2421

25-
# Set up Miniconda with environment
26-
- name: Setup Miniconda
27-
uses: goanpeca/setup-miniconda@v1.1.2
28-
with:
29-
environment-file: environment.yml
30-
activate-environment: comphy-site
31-
python-version: 3.7
32-
auto-activate-base: false
22+
- name: Install requirements
23+
run: python -m pip install -r requirements.txt
3324

3425
# Build the book
3526
- name: Build the book
3627
shell: bash -l {0}
37-
run: |
38-
make docs
28+
run: jupyter-book build docs
29+
3930
# Push the book's HTML to github-pages
4031
- name: GitHub Pages action
4132
uses: peaceiris/actions-gh-pages@v3
4233
with:
4334
github_token: ${{ secrets.GITHUB_TOKEN }}
4435
publish_dir: ./docs/_build/html
45-
publish_branch: master # deploying branch
36+
publish_branch: main # deploying branch

Makefile

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

docs/_config.yml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1-
#######################################################################################
21
# Book settings
2+
# Learn more at https://jupyterbook.org/customize/config.html
3+
34
title: Computational Physiology
45
author: Henrik Finsberg
5-
logo: "_static/simula_main_rgb.png"
6+
logo: "_static/logo.png"
7+
copyright: "2022"
8+
-description: The Computational Physiology (ComPhy) department at Simula Research Laboratory is an integrated team of researchers working to develop cutting edge biological simulation tools.
9+
10+
# Force re-execution of notebooks on each build.
11+
# See https://jupyterbook.org/content/execute.html
12+
execute:
13+
execute_notebooks: cache
614

715
# Information about where the book exists on the web
8-
description: >-
9-
The Computational Physiology (ComPhy) department at Simula Research Laboratory is an integrated team of researchers working to develop cutting edge biological simulation tools.
16+
repository:
17+
url: https://github.com/ComputationalPhysiology/computationalphysiology.github.io # Online location of your book
1018

11-
#######################################################################################
12-
# HTML-specific settings
1319
html:
14-
home_page_in_navbar: true
15-
use_issues_button: false
20+
use_issues_button: true
21+
use_repository_button: true
1622
extra_navbar: See more at <a href="https://www.simula.no/research/projects/department-computational-physiology">simula.no</a>
1723

18-
# #######################################################################################
19-
# Interact link settings
20-
notebook_interface: "notebook"
21-
22-
#######################################################################################
23-
# Launch button settings
24-
repository:
25-
url: https://github.com/ComputationalPhysiology/computationalphysiology.github.io
26-
path_to_book: "."
24+
parse:
25+
myst_enable_extensions:
26+
- amsmath
27+
- dollarmath
28+
- linkify
2729

28-
latex:
29-
latex_engine: "xelatex"
30-
latex_documents:
31-
targetname: book.tex
30+
sphinx:
31+
extra_extensions:
32+
- "sphinx.ext.autodoc"
33+
- "sphinx.ext.napoleon"
34+
- "sphinx.ext.viewcode"

docs/_static/logo.png

3.54 KB
Loading

docs/_static/simula_main_rgb.png

-11.8 KB
Binary file not shown.

docs/_toc.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
- file: content/about.md
2-
- file: content/contributing.md
3-
- file: content/projects.md
4-
- file: content/publications.md
1+
format: jb-book
2+
root: index
3+
4+
chapters:
5+
- file: about.md
6+
- file: reproducibility
7+
- file: projects.md
8+
- file: publications.md

docs/content/about.md renamed to docs/about.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Computational Physiology at Simula Research Laboratory
1+
# About
22

33
In recent years, modeling and simulation of biophysical phenomena has matured in both scope and methodology, such that it can contribute significantly to the present understanding of physiology and disease. The Computational Physiology (ComPhy) department at Simula is an integrated team of researchers working to develop cutting edge biological simulation tools. The group collaborates closely with both experimentalists and clinicians around the world to drive basic research and promote innovation.
44

@@ -20,6 +20,6 @@ Some other sites that are of relevance:
2020

2121
We also have our own channel at [anaconda](https://anaconda.org/ComPhy)
2222

23-
## Where are we located
23+
## More info
2424

25-
We are located just outside Oslo, the capital of Norway at a place called Fornebu, but we plan to move to downtown Oslo in the near future.
25+
For more info about Simula, please checkout the [simula web page](https://www.simula.no)

docs/content/contributing.md

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

docs/content/projects.md

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

docs/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Computational Physiology at Simula Research Laboratory
2+
3+
This page contains information about the Computational Physiology department at Simula Research Laboratory
4+
5+
## Contents
6+
```{tableofcontents}
7+
```

0 commit comments

Comments
 (0)