Netlify.toml check multiple paths/files

I want to setup a netlify.toml file to ignore any changes that aren’t made towards the docs/ or theme/ directory or towards the mkdocs.yml file.
How would I now setup the file to ignore everything else?
I’ve already read about the ignore option but I’m not sure how the configuration should look like when I want to include multiple files and paths.
I’m not used to the toml syntax, so I’m a bit lost and would appreciate help.

Would this be a good way to do it?

  ignore = """
git diff --quiet HEAD^ HEAD /docs &&
git diff --quiet HEAD^ HEAD /theme &&
git diff --quiet HEAD^ HEAD mkdocs.yml

Hey @Andre601,

Great question! I’m sure you could follow syntax similar to:

  ignore = "git diff --quiet HEAD^ HEAD /docs /theme mkdocs.yml"


Let me know how this works for you!