Giter VIP home page Giter VIP logo

devtalks-2021's Introduction

Shower-Mdx

With this template you can create your Shower presentation in .mdx - with common markdown syntax and custom React components.

Shower Presentation Template is built by Vadim Makeev.

Getting started

  1. Clone this repo and remove git history to start from blank:

    git clone https://github.com/varya/shower-mdx.git && rm -rf shower-mdx/.git/
  2. Start development server: yarn dev or npm run dev

  3. Open index.mdx and start adding your content!

Editing content

Each new slide has to start with <h2> heading. If you don't need an actual heading, just leave it blank. Check index.mdx for markup examples.

Adding custom attributes

If you need attributes for your slide <section> tag, add it below the heading. If you need an attribute for the heading, add it on the same line. See below:

## Slide heading {#headingId .heading-class}
{#sectionId data-customtext="anything}

...Slide contents

Custom attributes are currently supported for sections, headings, links, code, strong or emphasized text. The list of attributes is limited to HTML element attributes

Adding custom styles.

If you want to change the theme, load theme css directly at the top of index.js. The default themes "ribbon" and "material" are already included in package.

If you just want to tweak some components, provide css through "style" field in frontmatter or inside <style> tags. See index.mdx for examples.

Adding custom components

You can add your React components to the presentation. Here is what you need to do:

  1. Add your component to components/ folder.

  2. Re-export it in components/index.js like that: export {default as MyComponent} from "./MyComponent"

Now your component will be accessible in global .mdx scope. You don't need to import it directly to .mdx

Deployment

Deployment to your Github Pages is set up automatically via Github Actions, and triggers every time you push into master branch.

If you need to test your build locally, run:

yarn export

Contributing

Contributions to this project are warmly welcome. Send your pull request or open an issue to discuss the changes.

devtalks-2021's People

Watchers

 avatar

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.