Coder Social home page Coder Social logo

jeertmans / manim-slides-starter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 740 KB

Stater template for Manim Slides presentations and GitHub Pages deployment

Home Page: http://eertmans.be/manim-slides-starter/

License: MIT License

Python 100.00%
github-pages github-pages-template manim-slides python template

manim-slides-starter's Introduction

Manim Slides Starter

Deploy static content to Pages

Stater template for Manim Slides presentations and GitHub Pages deployment!

Who is this template for?

This template is for people that would like to share their Manim Slides presentation with others, anywhere on the internet.

How to use this template?

This template contains two important files:

The former contains the logic to animate your slides, while the second defines a number of steps to render your slides into a portable presentation format, and publish it on the internet. It uses GitHub actions and GitHub pages which are free for public repositories.

Creating a new repository

First, you need to create a new repository by clicking on the Use this template button.

Creating a new repository from this template

NOTE: if you want to have a private repository, you will probably need a GitHub Pro account.

Customizing your presentation

By default, the generated presentation is obtained from the slides.py file, uses Manim Community Edition, and renders the following scenes: Introduction, WithTeX, ans Outro.

Of course, you can update or create Python files to generate your animations. If you require a specific version of manim-slides, manim or manimlib, please edit requirements.txt.

Additionally, you can edit the following environ variables to reflect your changes:

env:
FILE: 'slides.py' # Source file where scenes are defined
MANIM: 'manim' # manim or manimgl - which Manim renderer to use
SCENES: 'Introduction WithTeX Outro' # Space-separated list of scenes to render
USES_TEX: true # true or false - disabling this will make the action run faster

WARNING: manimgl is currently not supported, as rendering animations inside GitHub workflows seems complex...

Last, if you want to change the scenes rendering and the HTML conversion, feel free to edit the last two lines:

- name: Build HTML
run: |
${{ env.MANIM }} ${{ env.FILE }} ${{ env.SCENES }}
manim-slides convert ${{ env.SCENES }} _site/index.html

Where is the output?

On every commit to the main branch, a new deployment action should be triggered. If that is not the case, inspect the actions tab for any error message. You can also manually trigger a deployment by clicking on the Run workflow button.

If everything goes well, the deploying site should be on your personal GitHub pages site: https://<username>.github.io/<repository_name>.

For example, this starter's website is: https://jeertmans.github.io/manim-slides-starter.

NOTE: the first time the deployment action is used, the gh-pages branch is created. You might need to go to Settings -> Pages and make sure that the Source is Deploy from a branch, and branch is gh-pages.

manim-slides-starter's People

Contributors

jeertmans avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

gsong-math

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.