-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gitpod config to be used for tutorials #1093
Changes from all commits
660952a
6e57ce8
b7b1c64
c800df4
54a5120
0f494e1
43f8962
5357084
eb03d4d
c131c61
27bbefa
2730d10
c3a347f
e399b5b
bb68e0f
59588bf
29585c8
e5bc0df
55a317c
d7f1f7c
9494a96
2ee0533
dc1f7ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,19 @@ | ||
--- | ||
# based on https://github.com/gitpod-io/template-docker-compose | ||
image: nfcore/gitpod:latest | ||
|
||
tasks: | ||
- init: docker-compose pull | ||
- command: chmod a+x /workspace/nf-co.re && docker-compose up | ||
vscode: | ||
extensions: # based on nf-core.nf-core-extensionpack | ||
- EditorConfig.EditorConfig # override user/workspace settings with settings found in .editorconfig files | ||
- Gruntfuggly.todo-tree # Display TODO and FIXME in a tree view in the activity bar | ||
- mechatroner.rainbow-csv # Highlight columns in csv files in different colors | ||
# - nextflow.nextflow # Nextflow syntax highlighting | ||
- oderwat.indent-rainbow # Highlight indentation level | ||
|
||
ports: | ||
- port: 8888 | ||
onOpen: open-preview | ||
|
||
vscode: | ||
extensions: | ||
- ms-azuretools.vscode-docker | ||
- esbenp.prettier-vscode | ||
github: | ||
prebuilds: | ||
# enable for the default branch (defaults to true) | ||
master: true | ||
# enable for all branches in this repo (defaults to false) | ||
branches: false | ||
# enable for pull requests coming from this repo (defaults to true) | ||
pullRequests: true | ||
# enable for pull requests coming from forks (defaults to false) | ||
pullRequestsFromForks: true | ||
# add a check to pull requests (defaults to true) | ||
addCheck: true | ||
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false) | ||
addComment: false | ||
# add a "Review in Gitpod" button to the pull request's description (defaults to false) | ||
addBadge: true | ||
- port: 8080 | ||
onOpen: ignore | ||
tasks: | ||
- init: git checkout gitpod_exercises | ||
- command: | | ||
parsed=`echo $url | tr -s "[" "/" | tr -s "+" "."` | ||
newurl="https://$parsed" | ||
gp preview $newurl |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"settings": "", | ||
"workbench.startupEditor": "none" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this parses the string
Parts of the URL:
Does URL encoding work (it says the values are URL encoded)? https://www.urlencoder.org/
becomes
How can I test this? I tried editing the other page https://github.com/nf-core/nf-co.re/pull/1094/files
but then I can't get to the button in the preview browser.
We may just be over complicating things here though.
What would be nice is just:
So a preview panel with the website (using
gp preview URL
and it's navigable)And then as large a terminal as possible. I moved the terminal position to the right to have them side by side.
( Menu > View > Appearance > Panel position > right ).
Then they can do all their work in an exercises folder and not have to worry about all the other distractions along the side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was too focused on carpentries material before and forgot we have two use cases here.
For the nf-core training material we want buttons on each page as they are standalone training guides, so we should definitely see if URL encoding is sufficient to open the correct URL with gp preview.
The Carpentries Workshop though just needs to start from the setup page and can have a simpler link.