_environment.required
FLICKR_API_KEY=
MAPBOX_TOKEN=
STADIA_API_KEY=
THUNDERFOREST_API_KEY=José R. Ferrer-Paris
April 5, 2025
This is the typical Hello World! post in my new and wonderful blog. Welcome!
So this is basically here to test if the whole thing works.
To get started I first installed quarto.1
Then, once I decided how to name my blog, I ran:
Then I started to prepare the content and structure of my initial posts, modified the text in the qmd files and the configuration in the _quarto.yml and ran quarto render to render all files in the project.
I started to keep track of changes with git:2
I switch between VS-code, Rstudio, Jupyter (see below) and the terminal to organise my files, and kept working on this until I got something I wanted to preview:
Here some random notes about the process
For some reason I though these would fontsawesome icons, but the help prompt in VS-code pointed out:
Name of bootstrap icon (e.g. github, twitter, share). See https://icons.getbootstrap.com/ for a list of available icons
Also, it turns out we can add emojis to the text of a post using this in the front-matter of the file:
This is a handy demonstration of all emojis: https://gist.github.com/rxaviers/7360908
To add bootstrap icons in the text, activate this extension:
The posts directory has a _metadata.yml file with the freeze option activated by default.
_site folderIn the quarto documentation they recommend to add it to the .gitignore file, so as to keep the raw content and code in version control, but the output served in a different workflow (either with quarto.pub or GitHub actions).
There are certain environment variables that need to be specified in order to render the posts in this blog. I created an _environment.required file with the list of required variables and empty values.
For local development, I defined these variables in the _environment.local file and ignore this file in version control by adding /_*.local in .gitignore.
Some code is running with RStudio / VScode and R , some code with Python and Jupyter.
For python, I created a virtual environment in the project directory.
Then activate the environment
Update pip, install other packages with:
Plotly might need a reinstall, until this is solved: https://github.com/quarto-dev/quarto-cli/discussions/5264
To make this environment reproducible, we create a requirements.txt using pip
Then we can reproduce this environment on another machine by creating an empty environment, activating it, and then:
In MacOSX we might need to do this to install the certificates:
I created an empty repo in GitHub and then added it as a remote:
Now the source code and git history is available at: https://github.com/jrfep/code-4-iNat
I am preparing this site for my quarto.pub profile. From the directory where this project is located, I executed the quarto publish command for Quarto Pub:
And then followed instructions at quarto.org.
Easy!
Comments through Giscus
Still in my to-do list
How to get comments powered by GitHub Discussions and the giscus app?