Comments (12)
Apologies for the poor documentation on this. To run the examples in slidifyExamples
, you need to have the dev
versions of slidify
and slidifyLibraries
, which you can install from github by passing ref = dev
to intsall_github
. Second, in the dev
version the main function is called pagify
, since it can do more than just slides. I will set slidify
as an alias to ensure backward compatibility, but I have not done that yet.
So, install dev versions and run pagify
and it should work.
Let me know if you have trouble.
from slidifyexamples.
So none of the assets
or libraries
in the root directory are required?
Are they already in the slidifyLibraries
dev branch?
from slidifyexamples.
All library files are in the slidifyLibraries dev
branch. Customizations in the assets
folder are presentation specific and hence not in slidifyLibraries.
If you already have the libraries folder in the root directory, then you can set url: {lib: path/to/libraries}
in the YAML front matter and slidify will automatically pick it up.
from slidifyexamples.
It might be nice to be able to specify these during compilation in addition to in the actual file.
from slidifyexamples.
Can you elaborate more on what would you like to specify during compilation? The current design is to automatically include all css files found in assets/css
and in addition you can specify the path to the assets folder using {url: path/to/assets}
in the YAML front matter.
from slidifyexamples.
Right. I mean it'd be nice to be able to specify that url as an argument to slidify
. However, it might be better to specify it as the default, which I think you mentioned is possible.
from slidifyexamples.
There are two ways to specify the path to your assets folder.
- In your YAML front matter,
url: {assets: path/to/assets}
. - Place a
config.yml
file in the root folder and addurl: {assets: path/to/assets}
I have shied away from providing more arguments to the slidify
function in the interest of reproducibility, but am willing to revisit this premise, if there is a promising use case.
from slidifyexamples.
By "root folder" do you mean the directory from which slidify
is run(ie getwd()
) or the directory containing the Rmd
file?
from slidifyexamples.
Currently, Slidify will look for config.yml
in the directory containing the Rmd
file. I plan to make it more flexible in the future. In the dev
version (where pagify
is the function to be used), you can run pagify
from any directory. Slidify will switch to the required directory, run the required functions, and then return back to the directory you were working from.
from slidifyexamples.
My concern is just that I don't want to duplicate a config.yaml for each end.
from slidifyexamples.
I think I might just dynamically write the frontmatter using inherited properties.
from slidifyexamples.
If you are using the author
function to initiate a slidedeck, in the next version, you will be able to provide a scaffolding template. This way you can package your config.yml
and custom assets into a custom scaffold, which defaults to this.
If you have other suggestions which might make this simpler, let me know.
from slidifyexamples.
Related Issues (9)
- Another use case for allowing users to configure widgets.
- PopcornJS embedded Youtube Video play controls not working HOT 1
- Problem with twocol layout HOT 2
- Is there some typo? HOT 2
- Unable to create reveal.js example with dev versions of slidify and slidifyLibraries HOT 6
- navigation bar of reveal.js example HOT 2
- print html (framework showoff) to pdf not working
- Is it possible to add `titleslide` in `flowtime` as in `io2012`? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slidifyexamples.