The profile/README.md
file in this repository is the
landing page for the saezlab
GitHub
organization. Do not edit that file directly. Instead, read the guide below how
to edit the landing page.
- Install poetry if you don't have it already
installed:
curl -sSL https://install.python-poetry.org | python3 -
- Navigate into the directory of the public landing page repo (
.github
). If does not exist yet, create thepoetry
environment required to run the Python script generating the markdown for the landing page:poetry install
- Do your edits:
-
The main text can be edited in
profile/src/README.main.md
-
The resources are defined in
profile/src/resources.yaml
. To add a new resource, include the logo in theprofile/logos
directory by the name of the resource all lowercase, insvg
orpng
format. For example, for OmniPath we haveomnipath.svg
. Then add the name, title and URLs of the resource inresources.yaml
. And also include the name of the resource in the list at the top of the file. By removing a name from the list, a resource can be hidden while still keeping its information in theyaml
. Each link has a type, see the possible types below. For links to packages, add a suffix to the URL type, such aspackage:PYPI
orpackage:BIOC
, for PyPI and Bioconductor respectively.Link type For links to... home
Homepage python
Python repository r
R repository package
Package docs-py
Python documentation docs-r
R documentation article
Publication main
Link for the logo (to override the default) -
The footer of the landing page (anything after the table) can be edited in
profile/src/README.foot.md
-
- Run the
profile/src/update_md.py
script to generate the landing page, i.e. theprofile/README.md
file:poetry run python profile/src/update_md.py
- Check by
grip
, the GitHub-identical markdown renderer, whether your updates are correct. If you added a new image, it won't be visible yet, because the images are referenced by their absolute URLs undergithub.com
.Copy the address to your browser to open the test server and see the rendered page.poetry run grip profile/README.md
- Commit and push your changes.
Check if the updates are shown correctly. Don't forget, you see a different page depending on whether you are logged in with an account in the
git add -u git commit -m "describe the changes" git push
saezlab
GitHub organization. - Finally, cross-merge your changes between the
.github
and.github-private
, by adding the one you edited to the other one as a new remote, then pulling from it, it, and pushing to the other. Edit the public version first, push it to GitHub, then navigate to the directory of the private version:# adding the new remote required only once: git remote add public git@github.com:saezlab/.github.git git config pull.rebase false # after finishing your edits: git pull public main git push origin main