This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/.circleci/web/htmlize
2021-11-14 19:51:47 +02:00

32 lines
750 B
Bash
Executable file

#!/usr/bin/env bash
## htmlize HTML export script for documentation files.
##
## Copyright (c) 2012-2014 Sylvain Benner
## Copyright (c) 2014-2022 Sylvain Benner & Contributors
##
## Author: Eugene Yaremenko
## URL: https://github.com/syl20bnr/spacemacs
##
## This file is not part of GNU Emacs.
##
## License: GPLv3
## TODO: Figure out why it doesn't get created automatically
mkdir -p ~/.emacs.d/.cache/.org-timestamps
emacs -batch \
-l ~/.emacs.d/init.el \
-l ~/.emacs.d/core/core-documentation.el \
-f spacemacs/publish-doc
if [ $? -ne 0 ]; then
echo "spacemacs/publish-doc failed"
exit 2
fi
if [ -d ~/.emacs.d/export/ ]
then
echo "Export succeeded"
else
echo "~/.emacs.d/export/ doesn't exist"
exit 2
fi