Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 8c198469124d
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 8f13d3cadac4
Choose a head ref
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Dec 5, 2020

  1. asciidoctor: add revealjs support

    This allows creating HTML presentations with
    `asciidoctor-revealjs presentation.adoc`.
    
    NOTE: The generated HTML file implicitly depend on reveal.js (and I see
    no good way to bundle it with Nix). Either provide reveal.js in a local
    path next to the generated HTML file[1], or override the revealjsdir
    attribute, for example by pointing to an URL (can also be a path):
    
      asciidoctor-revealjs -a revealjsdir=https://cdn.jsdelivr.net/npm/reveal.js@3.9.2 presentation.adoc
    
    Implementation details:
    1. Added "gem 'asciidoctor-revealjs'" to the Gemfile.
    2. Ran "nix-shell -p bundler --run 'bundle lock --update'"
       from pkgs/tools/typesetting/asciidoctor/.
    3. Hand edited Gemfile.lock to remove all but the asciidoctor-revealjs
       changes. (Rationale: allow backporting to release-20.09.)
    4. Finish off with "nix-shell -p bundix --run 'bundix'".
    
    [1] Of course Nix can help with _that_, but that's external to the
    asciidoctor-revealjs program.
    bjornfor committed Dec 5, 2020
    Copy the full SHA
    8f13d3c View commit details
    Browse the repository at this point in the history