- Install VScode or another IDE that works with quarto (RStudio, Positron)
- Install Quarto
- Depending on the IDE you have installed, click on the appropriate logo and follow the instructions
- In VScode (and Positron)
- need to install the extension for quarto (in VScode 'extensions' tab)
- need to install the following quarto extension (in your terminal):
quarto add quarto-ext/fontawesome
- Documentation on building a quarto website
- When you have made some changes, you can execute
quarto previewin your terminal to preview your changes, it will open a localhost:port that you can view on your favorite web browser. Note that you can also preview your changes directly inside VScode/RStudio, depending on your specific configuration.- When in preview mode, your changes are automatically re-rendered when saving the latter (not for all changes, e.g. changes made to
_quarto.ymlbut any changes in .qmd files will be re-rendered live).
- When in preview mode, your changes are automatically re-rendered when saving the latter (not for all changes, e.g. changes made to
- Before deploying your website (i.e. in our case, pushing changes on the git repo), execute
quarto render _quarto.ymldefines the structure of the website
- Clone the project in your terminal:
git clone https://github.com/ECOMOD-RBINS/website.git - Create an issue for each modification/addition you want to make
- From your issue, create a new branch
- In the terminal, fetch updates (i.e. your new branch) from the remote (i.e. the remote repository) with:
git fetch origin. Git fetch downloads changes from the remote repository to your local repository, but it doesn't automatically merge these changes into your working files. It simply retrieves the data and updates your remote-tracking branches whilegit pullis basically agit fetchfollowed by agit merge, it downloads changes from the remote repository and immediately tries to merge them into your current branch. - In the terminal, go to your branch:
git checkout your_branch - To check whether or not the master is up to date
(in case there have been any changes since the new branch was created that could potentially create conflicts)
- From master branch: git pull
- If the status is up-to-date, OK. If not, switch to the new branch and merge the updated master: git merge master
- Make your modifications/additions
- Send your modifications to your branch
git statusgit add modified_files(add all your modified/added files EXCEPTdocs/folder)git commit -m 'blablabla'git push/!\ DO NOT PUSHdocs/folder on your branch, otherwise it will cause annoying conflits to solve between the master branch and yours!
- Create a
pull request(possible from the github page) to merge your branch into the master - Wait that the owner accepts your pull request and merge your modifications into the website
Please check what has already been done on the website and use the same template/structure in your files.
- Go to
/projects/ - Create a new folder with the name of your project
- In the folder, create a new file called
index.qmd. This file should start with a snipped of YAML code (between --- YAML DATA ---). Below this, just write some markdown and you are good to go. - In the folder, create a new folder called
imagesto put the logo of your project or any images or figures you would like to share. - If you project is incomplete and you still need to work a bit on it before it is published online, you can add the keyword
draft: truein the YAML header of your project file. - Once a project is over, the project folder needs to be moved into
completed-projects
- Go to
/activities/ - Follow the same instructions as for new projects. However, note that you now have 4 subfolders in
activities:conferences,reporting,working-groups,workshops. Based on the activity you wish to publish, pay attention to which subfolder is the good fit for you.
- Go to
news.qmd - Add your news
- Add your images related to news in
/images/news/
- Go to
/posts/members/ - Create a new folder with your initials
- In the folder, create a new file called
index.qmd. Put your info in it. - Modify your personal section in
team.qmdto add the link to your personal page: - In
team.qmd, you can also modify your email, LinkedIn, Orcid,... links. - To modify your profile photo, go to
/images/your_initials
- Go to
/publications/articles/ - Create a new file called
your_article.qmd. Put your info in it (e.g. Lacroix2018.qmd). - Add your publication image in
/images/and link it in your article file.
- Go to
index.qmd
/!\ Never modify anything in the docs/ folder ! It will automatically be updated with quarto render.