Replies: 2 comments 5 replies
-
Thanks for your question! Before I answer, I would need to better understand the workflow: where the original information would be on the lua version, what would be in the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks, the file What I would do is to use a def define_env(env):
"Hook for the actions"
new_directory = f`assets/{env.variables.script_version}/setup.lua`
# Make the changes here |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a site where I have a versioned assets folder, meaning a path may be similar to the following:
I would like to try and have the
v0.1-alpha
folder be made created/renamed based on a value in the mkdocs.yml config, alongside any other placeholder inside a file to reflect this.So, if the setup.lua file contains
print("This is version {{ script_version }}!")
and I setv0.2-alpha
asextra.script_version
inmkdocs.yml
, should the folder path be:and the content in setup.lua
print("This is version v0.2-alpha")
Is this achievable?
Beta Was this translation helpful? Give feedback.
All reactions