stackabletech / documentation

Stackable's central documentation repository built on Antora
https://docs.stackable.tech
Apache License 2.0
11 stars 11 forks source link

Add playbook to only build dev version #579

Closed sbernauer closed 2 months ago

sbernauer commented 3 months ago

To speed up feedback loop

netlify[bot] commented 3 months ago

Deploy Preview for stackable-docs ready!

Name Link
Latest commit e331ef6645c39c98c56717731291210b54fdbf9d
Latest deploy log https://app.netlify.com/sites/stackable-docs/deploys/6613a480dd2b2600083f646a
Deploy Preview https://deploy-preview-579--stackable-docs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

soenkeliebau commented 3 months ago

Can we pull out the branches into a var '[main, 23.11, ...]'and override that with '[main]' for the dev only run, instead of duplicating the entire playbook?

sbernauer commented 3 months ago

What var are you referring to? yaml anchors or is this an Ansible playbook? Looking at https://docs.antora.org/antora/latest/playbook/ I can't find any concept of variables.

I think I would prefer yaml anchors anyway and we could do some yq magic in the Makefile

fhennig commented 3 months ago

It's possible to specify content.branches directly: https://docs.antora.org/antora/latest/playbook/configure-content-sources So you don't have to configure branches per source and you don't have to use the anchors. (Just realized that it only works if all sources have the same branches, and that's not the case)

~~What do you mean with a var though? @soenkeliebau ~~

soenkeliebau commented 3 months ago

What do you mean with a var though? @soenkeliebau

I was being stupid and mistook this for Ansible :(

sbernauer commented 2 months ago

Thanks for the review!