-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Passing arguments to the scripts. #30
Comments
Thanks for opening the issue. In addition to passing the arguments, we should consider how the script should read those arguments. |
No worries!
In principle, I agree that we should not overwrite
This seems to hint at further modifying
I think a When I add scripts I would go for modifying |
Why
I like using gen-files, and I am using it with literate-nav in multiple projects. However, only 1-5 lines of the script code are unique to each project. These lines could easily be replaced by passing arguments to the scripts instead.
Proposal
Use white space to separate the arguments just like when invoking with python in the shell, e.g.
python3 docs/api_reference/.generate.py my_python_package
. An examplemkdocs.yml
:Similar to shell invocation, if the scripts themselves have spaces in their names you would need to quote the script, e.g. :
I think this is acceptable, since the user already is/should be wary of using spaces in file names.
With arguments passing, each of my projects would have identical scripts but unique arguments in the
mkdocs.yml
.Note that the beginning
.
in the script names is just to makemkdocs
not copy the python scripts over tosite
.The text was updated successfully, but these errors were encountered: