Skip to content

Commit 07dc019

Browse files
committed
📝 add quantms version
1 parent b4ea73a commit 07dc019

7 files changed

Lines changed: 926 additions & 126 deletions

File tree

DEVELOPING.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Static website using Sphinx and GitHub Pages
2+
3+
> based on [enryh/notes_template](https://github.com/enryH/notes_template)
4+
5+
You can find a recording of the below described instructions on youtube:
6+
[![Live Demo on using the template repository for a notes website](https://img.youtube.com/vi/XolIezJtSPI/maxresdefault.jpg)](https://www.youtube.com/watch?v=XolIezJtSPI)
7+
8+
## Instructions
9+
10+
### 2. Open in GitHub Codespaces (or locally)
11+
12+
- go to [github.com/codespaces](https://github.com/codespaces) or use the "Code" button
13+
and select "Open with Codespaces"
14+
- create a new codespace using the newly created repository
15+
16+
> If you are done, remember to delete the codespace to not see your free credit or money
17+
> wasted. Also inactive (stopped) codespaces use storage for the last 30 days.
18+
> See [this youtube video](https://youtu.be/gY0usMl2o5I) on how to do it:
19+
20+
[![Delete you codespaces!](https://img.youtube.com/vi/gY0usMl2o5I/default.jpg)](https://www.youtube.com/watch?v=gY0usMl2o5I)
21+
22+
### 3. Edit files
23+
24+
You will need to know the Markdown to format your text. See
25+
[this overview on GitHub](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)
26+
or [this cheatsheet](https://www.markdownguide.org/cheat-sheet/) to get started.
27+
28+
- update the `index.md` file to include new files
29+
- use [pandoc](https://pandoc.org/try/) to convert your previous files into markdown or
30+
reStructuredText
31+
32+
Troubleshooting:
33+
34+
- don't forget to add new files to the `index.md` file
35+
- each document should have a title (`# title`) using a main heading and otherwise
36+
nested headlines (subheadings followed by sub-subheadings)
37+
38+
### 4. Build the site locally
39+
40+
Sphinx uses the configuration file `conf.py` to set up the site. The `requirements.txt` file
41+
contain extensions and themes that are used additionally to sphinx to build the site.
42+
The layout of the website is defined in the `index.md` file.
43+
44+
> Have look at `.github/workflows/build_website.yaml` to see how the site is built
45+
> if you are interested.
46+
47+
- Open a terminal (GitHub Codespaces)
48+
- install required packages from [`requirements.txt`](requirements.txt):
49+
```bash
50+
pip install -r requirements.txt
51+
```
52+
- build the site (you could set an alias if you want):
53+
```bash
54+
sphinx-build -n -W --keep-going -b html ./ ./_build/
55+
```
56+
in case the command is not found, try:
57+
```bash
58+
python -m sphinx -n -W --keep-going -b html ./ ./_build/
59+
```
60+
- open the site in a browser:
61+
- install ["Live Preview" extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.live-server) in Visual Studio Code
62+
- open the `_build/index.html` file in the browser (right-click, "Show Preview")
63+
64+
### 5. Publish the site
65+
66+
Follow
67+
[these instructions](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site)
68+
to publish the website using GitHub Pages.
69+
70+
- Select the `gh-pages` branch as the source for the GitHub Pages site (currently step 7)
71+
- add the deployed url to your "About" on the right sight of the repository
72+
73+
## Changing the topic
74+
75+
If you want to change the topic you can browse templates on the follwing site: [sphinx-themes.org/](https://sphinx-themes.org/)
76+
77+
You will need to change at least these things to switch to the new template:
78+
79+
- Install it and add it to the `requirements.txt` file (Sphinx templates come as a Python package)
80+
- Update `conf.py`:
81+
- `html_theme` variable to the selected theme
82+
- update the `html_theme_options` to the available options of the theme
83+
84+
Try for example the the [press theme](https://sphinx-themes.org/sample-sites/sphinx-press-theme/).
85+
Don't forget to update the `html_theme_options` in `conf.py` to the available options of this theme.

README.md

Lines changed: 12 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,15 @@
1-
# Template for a static website using Sphinx and GitHub Pages
1+
# Nextflow pipeline documentation at BRIGHT
22

3-
You can find a recording of the [instructions](#instructions) described below on youtube:
4-
[![Live Demo on using the template repository for a notes website](https://img.youtube.com/vi/XolIezJtSPI/maxresdefault.jpg
5-
)](https://www.youtube.com/watch?v=XolIezJtSPI)
3+
## Basic lauch on Seqera of a pipeline
64

7-
## Instructions
5+
- pipeline runs are triggered through the website, not manually
6+
- tower is a Seqera tool and is configured through environment variables on Seqera
87

9-
### 1. Create new repository based on this template
10-
11-
Create a template based on
12-
[this repository](https://github.com/enryH/notes_template)
13-
by clicking on the "Use this template" button,
14-
see instructions
15-
[here](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template#creating-a-repository-from-a-template)
16-
17-
- now you are already publish the site which looks identical to the template site
18-
(see it here)
19-
- jump to step 5 to do that directly.
20-
21-
### 2. Open in GitHub Codespaces (or locally)
22-
23-
- go to [github.com/codespaces](https://github.com/codespaces) or use the "Code" button
24-
and select "Open with Codespaces"
25-
- create a new codespace using the newly created repository
26-
27-
> If you are done, remember to delete the codespace to not see your free credit or money
28-
> wasted. Also inactive (stopped) codespaces use storage for the last 30 days.
29-
> See [this youtube video](https://youtu.be/gY0usMl2o5I) on how to do it:
30-
31-
[![Delete you codespaces!](https://img.youtube.com/vi/gY0usMl2o5I/default.jpg
32-
)](https://www.youtube.com/watch?v=gY0usMl2o5I)
33-
34-
### 3. Edit files
35-
36-
You will need to know the Markdown to format your text. See
37-
[this overview on GitHub](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)
38-
or [this cheatsheet](https://www.markdownguide.org/cheat-sheet/) to get started.
39-
40-
- update in `conf.py` at least the author, project and copyright information at the top
41-
- also update two urls to your repository:
42-
```json
43-
"github_url": "https://github.com/enryh/",
44-
"repository_url": "https://github.com/enryh/notes_template",
45-
```
46-
- write something about you in `about.md`
47-
- write articles in `folder_topic/article_topic.md`
48-
- update the `index.md` file to include new files
49-
- use [pandoc](https://pandoc.org/try/) to convert your previous files into markdown or
50-
reStructuredText
51-
52-
Troubleshooting:
53-
- don't forget to add new files to the `index.md` file
54-
- each document should have a title (`# title`) using a main heading and otherwise
55-
nested headlines (subheadings followed by sub-subheadings)
56-
57-
### 4. Build the site locally
58-
59-
Sphinx uses the configuration file `conf.py` to set up the site. The `requirements.txt` file
60-
contain extensions and themes that are used additionally to sphinx to build the site.
61-
The layout of the website is defined in the `index.md` file.
62-
63-
> Have look at `.github/workflows/build_website.yaml` to see how the site is built
64-
> if you are interested.
65-
66-
- Open a terminal (GitHub Codespaces)
67-
- install required packages from [`requirements.txt`](requirements.txt):
68-
```bash
69-
pip install -r requirements.txt
70-
```
71-
- build the site (you could set an alias if you want):
72-
```bash
73-
sphinx-build -n -W --keep-going -b html ./ ./_build/
74-
```
75-
in case the command is not found, try:
76-
```bash
77-
python -m sphinx -n -W --keep-going -b html ./ ./_build/
78-
```
79-
- open the site in a browser:
80-
- install ["Live Preview" extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.live-server) in Visual Studio Code
81-
- open the `_build/index.html` file in the browser (right-click, "Show Preview")
82-
83-
### 5. Publish the site
84-
85-
Follow
86-
[these instructions](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site)
87-
to publish the website using GitHub Pages.
88-
89-
- Select the `gh-pages` branch as the source for the GitHub Pages site (currently step 7)
90-
- add the deployed url to your "About" on the right sight of the repository
91-
92-
93-
## Changing the topic
94-
95-
If you want to change the topic you can browse templates on the follwing site: [sphinx-themes.org/](https://sphinx-themes.org/)
96-
97-
You will need to change at least these things to switch to the new template:
98-
99-
- Install it and add it to the `requirements.txt` file (Sphinx templates come as a Python package)
100-
- Update `conf.py`:
101-
- `html_theme` variable to the selected theme
102-
- update the `html_theme_options` to the available options of the theme
103-
104-
Try for example the the [press theme](https://sphinx-themes.org/sample-sites/sphinx-press-theme/).
105-
Don't forget to update the `html_theme_options` in `conf.py` to the available options of this theme.
8+
```
9+
nextflow run 'https://github.com/nf-core/quantms'
10+
-name my_unique_name
11+
-params-file params.json
12+
-with-tower
13+
-r 1.6.0
14+
-profile docker,wave
15+
```

about.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# About
1+
# Data Science Platform at BRIGHT
22

3-
> More information about your (your team) and your work.
4-
5-
Some text about you here.
3+
Copy relevant information from dsp_notes.

conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
# -- Project information -----------------------------------------------------
88

9-
project = "Data Science Platform notes template"
10-
copyright = "2024, DTU Biosustain, Informatics Platform, DSP"
9+
project = "Nextflow pipeline documentation at BRIGHT"
10+
copyright = "2026, BRIGHT, Informatics Platform, DSP"
1111
author = "Henry Webel"
1212

1313

@@ -30,7 +30,7 @@
3030
".DS_Store",
3131
"**/pandoc_ipynb/inputs/*",
3232
".nox/*",
33-
'.venv/*',
33+
".venv/*",
3434
"README.md",
3535
"**/.ipynb_checkpoints/*",
3636
"jupyter_execute",
@@ -84,10 +84,10 @@
8484
# html_logo = "_static/logo-wide.svg"
8585
# html_favicon = "_static/logo-square.svg"
8686
html_theme_options = {
87-
"github_url": "https://github.com/enryh/",
88-
"repository_url": "https://github.com/enryh/notes_template",
87+
"github_url": "https://github.com/biosustain/",
88+
"repository_url": "https://github.com/biosustain/nextflow_pipeline_documentation",
8989
# "repository_branch": "main",
90-
# "home_page_in_toc": True,
90+
"home_page_in_toc": True,
9191
# "path_to_docs": "docs",
9292
"show_navbar_depth": 1,
9393
# "use_edit_page_button": True,

folder_topic/article_topic.md

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

index.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
# Static website Template
1+
```{include} README.md
22
3-
This is a template for a static website using Sphinx and GitHub Pages.
3+
```
44

55
```{toctree}
66
:maxdepth: 2
77
:hidden:
8+
:caption: Pipelines
89
9-
about
10+
quantms/README.md
1011
```
1112

1213
```{toctree}
1314
:maxdepth: 2
1415
:hidden:
15-
:caption: A topic
16+
:caption: MISC
1617
17-
folder_topic/article_topic
18+
about
19+
DEVELOPING.md
1820
```
19-

0 commit comments

Comments
 (0)