Giter Site home page Giter Site logo

bentolor / asciidoctor-template Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 12.92 MB

A feature-rich example for beautiful HTML, PDF and RevealJS Presentation documents using Asciidoc

License: Other

CSS 21.93% Java 0.20% Shell 0.27% SCSS 7.99% HTML 21.13% JavaScript 48.48%

asciidoctor-template's Introduction

Asciidoctor Template: A feature-rich example for beautiful HTML, PDF and RevealJS Presentation documents

Getting started

Installing prerequisites

Install Ruby, then install the Ruby Gems asciidoctor, asciidoctor-pdf, asciidoctor-revealjs, asciidoctor-diagram, asciidoctor-kroki and asciidoctor-chart.

To use the script, also install inotify-tools and pandoc.

Check workshop/workshop-installation.adoc for detailed instructions.

Editor suggestions

Iโ€™d suggest Visual Studio Code as you editor, as it offers several extension supporting Asciidoctor-based authoring. I recommend installing the extensions:

  • AsciiDoc from asciidoctor

  • AsciiDoc Slides from flobilosaurus

  • vscode-pdf for inline PDF preview

  • Code Spell Checker and optionally additional dictionaries for spell-checking.

Clone or checkout this repository

Just download and unzip or clone this repository to get started.

Template documents

There are two template documents in this repository

presentation.adoc

This is a template for an asciidoctor-revealjs based presentation. It assumes in-depth knowledge of the Asciidoctor methods, which are descripted int the workshop materials. This template relies on themes/presentation.css as a styling template.

document.adoc

This is a small template file for a potentially large document. This template relies on themes/document.css as a styling template for web/HTML and themes/pdfstyle.yml for PDF generation.

Render scripts

There are several scripts, which ease up your daily operations. In general they restart the rendering on any changes on your *.adoc-files.

render-presentation

renders presentation.adoc via asciidoctor-revealjs into a HTML presentation, opens the default webbrowser and rerenders the generated artefacts on changes.

render-html

Same as render-presentation, but renders document.adoc using plain asciidoctor into a file

render-pdf

Same as render-html, but renders the document.adoc into a PDF file

Documentation

Workshop

In the workshop/ folder you find a extensive workshop presentation with accompanying live demos transcripts.

Template files

The template files presentation.adoc and document.adoc also act as some sort of documentation.

asciidoctor-template's People

Contributors

bentolor avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

flzara

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.