Skip to content

Commit

Permalink
Run yaml4rst from debops-optimize
Browse files Browse the repository at this point in the history
Related to: debops/docs#161
  • Loading branch information
ypid committed Oct 22, 2016
1 parent 2bf54eb commit d855733
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions bin/debops-optimize
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ then
fi
echo "Running debops-optimize for: '$role_name', full role name: '${role_full_name:-}', role owner is: '${role_owner:-}'"

if command -v yaml4rst
then
yaml4rst --config-kv "ansible_full_role_name=${role_full_name}" defaults/main.yml -i
fi

if [ ! -e 'meta/main.yml' ]
then
echo "This repository is not a Ansible role. Disabling Ansible role optimizations."
Expand All @@ -76,6 +81,8 @@ git ls-files -z | xargs --null -I '{}' find '{}' -type f -regextype posix-extend
s/``([[:lower:]_.-]+\([[:digit:]]\))``/:manpage:`\1`/g;
s/``([[:alnum:]_]+__[^*?` ]+?[^*?` _])``/:envvar:`\1`/g;
s/:any:/:envvar:/g;
s/`RFC([[:digit:]]+[^`]*)`_/:rfc:`\1`/gi;
s/RFC([[:digit:]]+)_/:rfc:`\1`/gi
s/`([[:alnum:]_-]+\.[[:alnum:]_-]+)`_/\1_/g;
s/``(debops\.[[:alnum:]_-]+)``/\1_/g;
s/``(ypid\.[[:alnum:]_-]+)``/\1_/g;
Expand Down
1 change: 0 additions & 1 deletion bin/sphinx-inline

This file was deleted.

1 change: 0 additions & 1 deletion bin/sphinx-optimize

This file was deleted.

0 comments on commit d855733

Please sign in to comment.