This repository hosts to documents for the ICBO 2022 website. The website is built using mkdocs
and the deployment of the website is controlled using the github action .github/workflows/build-deploy-documentation.yaml
. The github action has been configured to run if any changes are made to mkdocs.yaml
, files in the docs/
or docs/images/
directories, or after a pull request is merged. This allows to closely track the repository history using pull requests (if desired).
The website content is contained in the docs/
and docs/images
directories. Editing any of the *.md
files or adding/changing an image should fire off an action to build and deploy the website. This github action can be checked by navigating to the Actions
page:
and verifying that the changes fired off an action. For example, here is an action that started as a result of an update the to the call-for-submissions.md
:
After the action has finished running (it will have green check), verify that the edits are displayed on the website.
Adding new webpage takes two steps:
- Create the new
md
file in thedocs/
directory. - Edit the
nav
section ofmkdocs.yml
to reference the new document and its title.
A new image is added to the website is done by simply saving a the image to the docs/images/
directory. However, referencing the image from the md
file is a bit nuanced.
If you reference the image using markdown syntax, you include the images
directory in the path to the images. For example, in the docs/submit-jbms-icbo.md
document, the reference to the submission type image is done like so:
![submission type](images/jbms-choose-article-type.png)
However, if you are customizing the image with an HTML <img>
tag, you use the ../images
directory in the path to the image. For example, in the docs/keynote-speakers.md
document, Chris Stoeckert's image is referenced like this:
<img src='../images/chris-stoeckert.png' align='left' style='margin:10px 20px 0px 0px' />
The reason for this has to do with how read the docs
processes images, but I don't know the details of why.
If (for some reason) the github action does not fire, you can manually run it. First, on the Actions
page, select the Build and Deploy Static Mkdocs Documentation
workflow.
Next, click on the Run workflow
button.
Once the workflow starts running, you will see yellow dot beside the workflow name.
After the workflow, completes you will see a green check beside the workflow name.
Verify that the edits are displayed on the website.