0.1.5 • Published 7 months ago

@mythosthesia/reveal-course-preset v0.1.5

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

@mythosthesia/reveal-course-preset

Preset that includes everything that the mythosthesia reveal.js slides need.

Install

npm install @mythosthesia/reveal-course-preset

Usage

  1. Set your vite.config.js to:
import { defineConfig } from "vite";
import { vitePlugins } from "@mythosthesia/reveal-course-preset/vite-plugins.js";

export default defineConfig({
  base: '/rust-lesson-1',
  plugins: vitePlugins,
});
  1. Add these links to your <head>:
<script type="module">
  import "reveal.js/dist/reveal.css";
  import "reveal.js/dist/theme/black.css";
  import "reveal.js/plugin/highlight/monokai.css";
  import "@mythosthesia/reveal-course-preset/styles.css";
</script>
  1. Set your reveal.js config to:
<script type="module">
  import Reveal from "reveal.js";
  import { plugins, config } from "@mythosthesia/reveal-course-preset";

  let deck = new Reveal();
  deck.initialize(config);
</script>

All set! Now you will be able to use all the features from these plugins: