Skip to content

Commit

Permalink
Docbuilder - generates pdf from Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
crunchyjohn authored and jconway committed Jul 21, 2017
1 parent 50ab5c2 commit dc25d1f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pdf
29 changes: 29 additions & 0 deletions docbuilder/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Note: Vagrant Guest Additions is required
# You may acquire it on your host system via: "sudo vagrant plugin install vagrant-vbguest"

Vagrant.configure(2) do |config|
config.vm.box = "centos/7"

config.vm.provider :virtualbox do |vb|
vb.name = "set-user-centos7-test"
end

# Provision the VM
config.vm.provision "shell", inline: <<-SHELL
echo "Provisioning..."
# Setup environment
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install pandoc
yum -y install 'texlive-*'
# Generate docs
pandoc -s /set-user/README.md -o /set-user/README.pdf
SHELL

# Don't share the default vagrant folder
config.vm.synced_folder ".", "/vagrant", disabled: true

# Mount project path for testing
config.vm.synced_folder "..", "/set-user"
end

0 comments on commit dc25d1f

Please sign in to comment.