Skip to content

Use recipies from justfile in live website build? #467

@joelostblom

Description

@joelostblom

A question/comment: would it be beneficial to run our justfile recipies for creating the live website, so that we don't risk that there is drift between how it is created locally and for the live site? I'm not sure how this would look with netlify, but I imagine that the github action could just push the _site dir after building, just like we would if we used github pages? Or is there already some reason for why we are not doing this and have a separate worflow for the website? I understand there can be some differences building locally and for the website, but that might be less of an issue than something going out of sync.

As an example, the quartodoc build has evolved to something like this in e.g. flower:

# Build the Python docstrings as a section in the website using quartodoc
build-quartodoc:
    # To let Quarto know where python is.
    export QUARTO_PYTHON=.venv/bin/python3
    # Delete any previously built files from quartodoc.
    # -f is to not give an error if the files don't exist yet.
    rm -rf docs/reference
    uv run quartodoc build

whereas the website build just runs uv run quartodoc build. Now all that is probably not required, but also not harmful I think. I also don't see build-examples anywhere in the website workflow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions