GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ProdriveTechnologies/bazel-pandoc: Rules for invoking Pandoc through the Bazel build system

BranchesTags
Open more actions menu

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
sample
sample
 
 
.cirrus.yml
.cirrus.yml
 
 
.gitignore
.gitignore
 
 
BUILD.bazel
BUILD.bazel
 
 
COPYING
COPYING
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
WORKSPACE
WORKSPACE
 
 
pandoc.bzl
pandoc.bzl
 
 
repositories.bzl
repositories.bzl
 
 
toolchain.bzl
toolchain.bzl
 
 

Repository files navigation

Bazel rules for Pandoc

This repository provides a function for the Bazel build system called pandoc() that invokes the Pandoc document converter. Example use cases include converting documentation written in Markdown to HTML files, or embedding them as chapters into LaTeX documents. These rules depend on the official release binaries provided by the Pandoc project.

Using these rules

Please see the sample folder for an example of how bazel-pandoc could be used.

Set up your workspace

Add the following to your WORKSPACE file:

http_archive(
    name = "bazel_pandoc",
    strip_prefix = "bazel-pandoc-<release>",
    url = "https://github.com/ProdriveTechnologies/bazel-pandoc/archive/v<release>.tar.gz",
)

load("@bazel_pandoc//:repositories.bzl", "pandoc_repositories")

pandoc_repositories()

Use the pandoc rule in BUILD files

You can then add directives along these lines to your BUILD.bazel files:

load("@bazel_pandoc//:pandoc.bzl", "pandoc")

pandoc(
    name = "foo",                # required
    src = "foo.md",              # required
    from_format = "markdown",    # optional, inferred from src extension by default
    to_format = "latex",         # optional, inferred from output extension by default
    output = "awesome_doc.tex",  # optional, derived from name and to_format by default
)

In the example above, an output file called awesome_doc.tex will be created in the bazel-bin directory.

At least one of the to_format or output attributes must be provided.

Platform support

These rules have been tested to work on:

  • macOS Mojave 10.14, building locally.
  • Ubuntu 18.04, building locally.
  • Ubuntu 18.04, building on a Debian 9 based Buildbarn setup.
  • Windows 10 1803, building locally.
  • Windows 10 1803, building on a Debian 9 based Buildbarn setup.

About

Rules for invoking Pandoc through the Bazel build system

Topics

bazelbazel-rulespandoc

Resources

Readme
Activity
Custom properties

Stars

26 stars

Watchers

3 watching

Forks

14 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.