-
Gather all the necessary files in a folder. Give the folder a descriptive name with no spaces. Note that files > 25 MB (and especially >100 MB) may not be uploadable to GitHub. If your tutorial requires large files, please do the following:
- Add the files to a folder with a descriptive name (no spaces)
- Zip the folder (on mac, right click > Compress...)
- Add the .zip file to google drive in the
Outreach
>Workshops_Webinars_Tutorials
>GithubLinkedTutorialFiles
folder on the shared g drive - Make sure the folder is public and copy the link to share the folder to use for the download link later.
-
Make a PR adding the folder of materials to the tutorial repo. In addition to the materials, please also
- write a short description of the tutorial to add to the readme and
- create a gif (tips on making one here; in 2024 on Mac, Beth likes Gifski) and add that gif to to the
assets
>img
folder. - add the tutorial to the
internal_use/docs/source/index.rst
file, and the index file of whatever language that tutorial is in (ie if English,internal_use/docs/source/toc_en/index.rst
)
-
Update the top-level readme with the description and gif. If there is an associated blogpost or video, please link that using the appropriate badge. If the tutorial is particularly geared toward beginners, add the beginner badge. If the tutorial is advanced such that a user should definitely do a beginner tutorial first, use the advanced badge.
## Translocation
<img class="imggif" src="assets/img/translocation.gif" alt="example segmentation" align="right" width="150">
A tutorial showing how to segment cells in CellProfiler and then classify them by phenotype in CellProfiler Analyst. This is our standard tutorial for those new to image analysis in general or CellProfiler in particular. <br>
<img src="assets/img/beginner-badge.png" alt="beginner" width="140px"> <a href="https://www.youtube.com/watch?v=LOD2yqBLXXk&t=4s" target="_blank"><img src="assets/img/video-badge.png" alt="video link" width="140px"> </a> <a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/CellProfiler/tutorials/tree/master/Translocation" target="_blank"><img src="assets/img/download-button.png" alt="Download button" width="140px"> </a>
Copy and adjust as needed. Here's a breakdown of what each line is and what you change:
-
The title of the tutorial is after
##
-
The gif. Change the filename to whatever you saved the gif as in the assets/img folder
-
The description of the tutorial (just paste in your description here instead) No special formatting
-
Badges and buttons separated by spaces. For badges, you can copy and paste from a previous tutorial, but they're just a piece of HTML pointing to an image and sometimes a link. For instance, here is the badge for a video link:
<a href="https://www.youtube.com/watch?v=LOD2yqBLXXk&t=4s"><img src="assets/img/video-badge.png" alt="video link" width="140px"> </a>
To use this, just change the youtube link after
href="
and paste the whole thing into the readme.The badge for beginner tutorials is here:
<img src="assets/img/beginner-badge.png" alt="beginner" width="140px">
Since this is just an image, you can just copy and paste that HTML into the readme.For the download link, previously we used DownGit, but since this does not always work, please replace
MY_LINK
in the example below with either the location of the Archive.zip file of all the materials together (if your tutorial was small) or the google drive link you saved earlier:<a href="MY_LINK" target="_blank"><img src="assets/img/download-button.png" alt="Download button" width="140px"> </a>
Here's a table of all the badges and buttons we currently have:
That's it. GitHub pages will take care of updating the website with these changes!