-
Notifications
You must be signed in to change notification settings - Fork 38
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
Optimize rendering #33
Conversation
src/markdeck/wait-for-changes
Outdated
@@ -2,7 +2,7 @@ | |||
set -e -E -u | |||
|
|||
SOURCES="/source/slide*.md $(find /source/assets -type d) /source/include-before-body /source/include-after-body" | |||
TARGET=/target/index.html | |||
TARGET="$(mktemp)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not /target/index.html?
With index.html as target, you also detect changes that happened before wait-for-changes was called.
The reason is that by using the makefile index.html is not regenerated in every run. Index.html therefore can't be the reference point for detecting changes .. it would trigger an endless loop of regeneration. |
I have the feeling that both our solutions are wrong somehow: |
So what do I have to do to get the example deck rendered with the markdeck theme? |
You're right, the temp file would need to be created before the build run to catch these changes. I'll update the loop accordingly.
Ooops?! |
The way themes work is described here: https://github.com/hakimel/reveal.js#theming The advantage is that the whole revealjs theme mechanism is used which provides an easy way for updates. The only thing I don't like is that the path to the resources doesn't exist during development in What do you think about it? |
I am on vacation right now (school holidays in Berlin/Brandenburg :o) and afk quite often. Any thoughts/ideas/suggestions? |
last comment for today (I am afraid): |
Since impressjs has no theming support built-in, I see it as a challenge to build such support + make it compatible with revealjs. For impressjs the previously existing mechanism of customizing
Totally agreed.
That would be optimal. However, I see challenges in making this compatible with standard revealjs themes. Since revealjs stores css files in
That would actually be super. I guess we can source these files from I'd say we first write the documentation for themes and then do the implementation. I'll open a new branch for it.
👍 |
As mentioned in #38, v0.5 comes with |
(This includes the theming branch)
I converted the rendering loop to a Makefile so that unnecessary file operations are avoided. In addition, I moved the temporary files to the
.meta/
and therendered
folder toassets/rendered
.