Git Product home page Git Product logo

Comments (12)

ramnathv avatar ramnathv commented on June 16, 2024

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.

jamiefolson avatar jamiefolson commented on June 16, 2024

So none of the assets or libraries in the root directory are required?

Are they already in the slidifyLibraries dev branch?

from slidifyexamples.

ramnathv avatar ramnathv commented on June 16, 2024

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.

jamiefolson avatar jamiefolson commented on June 16, 2024

It might be nice to be able to specify these during compilation in addition to in the actual file.

from slidifyexamples.

ramnathv avatar ramnathv commented on June 16, 2024

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.

jamiefolson avatar jamiefolson commented on June 16, 2024

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.

ramnathv avatar ramnathv commented on June 16, 2024

There are two ways to specify the path to your assets folder.

  1. In your YAML front matter, url: {assets: path/to/assets}.
  2. Place a config.yml file in the root folder and add url: {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.

jamiefolson avatar jamiefolson commented on June 16, 2024

By "root folder" do you mean the directory from which slidify is run(ie getwd()) or the directory containing the Rmd file?

from slidifyexamples.

ramnathv avatar ramnathv commented on June 16, 2024

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.

jamiefolson avatar jamiefolson commented on June 16, 2024

My concern is just that I don't want to duplicate a config.yaml for each end.

from slidifyexamples.

jamiefolson avatar jamiefolson commented on June 16, 2024

I think I might just dynamically write the frontmatter using inherited properties.

from slidifyexamples.

ramnathv avatar ramnathv commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.