Skip to content

Rust library for build scripts to generate MAN pages from Markdown or DocBook documents

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

elebihan/manpages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

manpages

A library to build MAN pages from Markdown or DocBook documents. The conversion is performed using Pandoc and xlstproc.

Using manpages

First, you'll want to both add a build script for your crate (build.rs) and also add this crate to your Cargo.toml via:

[build-dependencies]
manpages = "0.2"

Next up, assuming the MAN pages input files are in the man directory, you'll want to write a build script like so:

// build.rs

extern crate manpages;

use std::env;
use std::path::PathBuf;
use manpages::build;

fn main() {
    let mut dst_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
    dst_dir.push("man");
    build("man", &dst_dir).ok().expect("Failed to build MAN pages");
}

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Rust library for build scripts to generate MAN pages from Markdown or DocBook documents

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages