spacemacs/.circleci/org/update_docs

36 lines
844 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
## fix_docs Fixed(formats) Spacemacs' documentation files.
##
## Copyright (c) 2014-2021 Sylvain Benner & Contributors
##
## Author: Eugene Yaremenko
## URL: https://github.com/syl20bnr/spacemacs
##
## This file is not part of GNU Emacs.
##
## License: GPLv3
2021-07-07 12:01:41 +00:00
echo_headline "Generating new layers index file"
spacedoc layers \
-c".ci/spacedoc-cfg.edn" \
2021-07-07 10:25:03 +00:00
/tmp/sdn/layers
if [ $? -ne 0 ]; then
echo "Layers index generation failed."
exit 2
fi
2021-07-07 12:01:41 +00:00
if [ ! -f /tmp/sdn/layers/LAYERS.sdn ]; then
echo " /tmp/sdn/layers/LAYERS.sdn doesn't exist"
exit 2
fi
echo_headline "Generating new .org files from .sdn representation"
spacedoc orgify \
-c".ci/spacedoc-cfg.edn" \
/tmp/sdn/ \
~/.emacs.d/
if [ $? -ne 0 ]; then
echo "Documentation generation failed."
exit 2
fi