Skip to content
Discussion options

You must be logged in to vote

Hello @shenweiyan,
the HTML is generated once during build, and the site_url is used in more places than just the logo home button.

I guess, the "right" thing to do would likely be to split up the deployment process for each of your domains, create separate GitHub Actions that each set a different environmental variable and then load that variable using !ENV in the mkdocs.yml file:
https://docs.github.com/en/actions/learn-github-actions/variables
https://www.mkdocs.org/user-guide/configuration/#environment-variables
This will increase CI time, but I'm assuming it shouldn't be an issue. I don't know whether you can use matrix in this instance to parallelize the deployment to different bran…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shenweiyan
Comment options

Answer selected by markallasread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants