Last active
August 18, 2017 04:30
-
-
Save strobe/b8daa9080aacaff085dafc9db7c5a549 to your computer and use it in GitHub Desktop.
convert org files with ditaa diagrams to html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is a template, and might need editing before it works on your project. | |
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options | |
variables: | |
GIT_SUBMODULE_STRATEGY: recursive | |
build1: | |
stage: build | |
cache: | |
paths: | |
- org-spec/ | |
script: | |
- echo "-- Export started --" | |
# - emacs index.org --batch -f org-html-export-to-html --kill | |
- ./export.sh index.org > index.html | |
- echo `pwd` | |
- echo `ls index.html` | |
- echo "-- Deploy started --" | |
- mkdir --parents /var/www/backup/$(date "+%b_%d_%Y-%H_%M_%S")/; mv /var/www/html/* $_ | |
- cp index.html /var/www/html/index.html | |
- mkdir --parents /var/www/html/css/; cp org-spec/css/* $_ | |
- mkdir --parents /var/www/html/img/; cp img/* $_ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emacs --batch --eval "(progn | |
(require 'org)(require 'ob)(require 'ob-ditaa) | |
(setq org-src-fontify-natively t) | |
(setq org-confirm-babel-evaluate nil) | |
(setq org-ditaa-jar-path \"/usr/share/ditaa/ditaa.jar\") | |
(find-file \"$1\") | |
(org-html-export-as-html) | |
(set-buffer \"*Org HTML Export*\") | |
(princ (buffer-string)) | |
)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment