-
Notifications
You must be signed in to change notification settings - Fork 690
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
Issue 103 dynamic template #179
base: master
Are you sure you want to change the base?
Conversation
Hi @jbao, Thanks for your contribution! Can you perhaps use jinja2 templating like we are doing for the site pages itself? Thus, rather than "¤t_date" you would use "{{ current_date }}", and do the substitution in the knowledge_repo script using something like:
This simplifies the code a lot. In the testing, you can then use the Thanks again! Little fixes for nits like this are a great help, as we are often so busy with the "bigger" stuff that we lose sight of these sorts of things which can have a big effect on user experience. M |
Just thinking too: maybe you can add support for automatically populating the author too? Should be as easy as passing in |
Hi @matthewwardrop , that's a great idea. It seems that Travis doesn't like
This needs further investigation. |
@jbao How are you getting on here? Does something like the following help?
|
❌ Build knowledge-repo 1.0.845 failed (commit a617fc4b8a by @naoyak) |
❌ Build knowledge-repo 1.0.846 failed (commit 5bb13cfa98 by @naoyak) |
❌ Build knowledge-repo 1.0.847 failed (commit d63b08987c by @naoyak) |
❌ Build knowledge-repo 1.0.848 failed (commit aa4d1eb3c5 by @naoyak) |
❌ Build knowledge-repo 1.0.849 failed (commit fa489dbdfb by @naoyak) |
❌ Build knowledge-repo 1.0.860 failed (commit 95e17f801d by @naoyak) |
@naoyak We're planning a deployment in our data science group, and the author and date templating are features we discussed as "nice to have", so I'm surprised to find that this functionality already exists in this pull request. Is there anything I can do to get this through the door and merged to master? Thanks! |
f5476e1
to
a9960e7
Compare
a9960e7
to
6082211
Compare
This automatically generates the current timestamp in the template and resolves #103
Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj