Documentation and sites

docs
python
Author

Iraitz Montalban

Published

June 26, 2025

Modified

July 1, 2025

Documentation sites are probably one of the most valuable resources a developer or researcher can have. A good documentation site is priceless. I have been developing documentation sites with the usual suspects for a while:

Sometimes hosted on ReadTheDocs which makes it really easy to deploy, in other cases hosted in Github Pages. During the last month I have been exploring Quarto which was one my tech to review list for a while. Really cool project indeed. In fact, this blog is all done using it.

Markdown, first level citizen

It is challenging to build sites when you come from the data domain. No idea about CSS or Javascript but you want your site to look cool and engaging. Well, Quarto does this using pure Markdown like many others. It has its own extension .qmd but it also allows for Jupyter Notebooks or pure MD files to be rendered. This is often a challenge in other frameworks as you need to install extensions to do that (ex Markdown on Sphinx).

Quarto supports those formats by default.

And code?

Well, it supports the infamous trifecta of languages that gave name to Jupyter (Julia, Python and R) but also Observable plots.

Observable example

Just by simply adding {python} to your code blocks, if you are using .qmd extension, it will execute and render the page for you.

print("Hi from Python!")
Hi from Python!

So you can simply install it and get you project running… Quarto will ask you about the type of project you would like to run…

Quarto create

So essentially with that you can create a plethora of content formats… checkout the gallery.

What about PDFs?

Sometimes you need to render your site to a PDF (I know, I know) and things get tricky when PDF is involved. I used to use Sphinx when I knew there was a chance for that happening but know, Quarto has my back having the ease of use of MKDocs.

Format rendering

You can have a look at Quarto’s guide, really easy to understand and start working and full of examples for articles, books or blogs such as this one to be created. Give it a chance.