Skip to content

Commit

Permalink
ci: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Sep 10, 2021
1 parent 7c00e3f commit 7e55a61
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,10 @@ jobs:
fetch-depth: 0
- name: install kiara
run: pip install -U --pre --extra-index-url https://gitlab.com/api/v4/projects/25344049/packages/pypi/simple --extra-index-url https://pypi.fury.io/dharpa/ .[all,dev_documentation]
# - name: create documentation
# run: FAIL_DOC_BUILD_ON_ERROR=true make docs
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Markus Binsteiner"
- name: create documentation
run: FAIL_DOC_BUILD_ON_ERROR=true mike deploy --push latest
# - name: deploy documentation to gh-pages
# uses: JamesIves/[email protected]
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# BRANCH: gh-pages
# FOLDER: build/site

build-docs-tag:
name: build 'stable' documentation
Expand Down
32 changes: 32 additions & 0 deletions .kiara_complete.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#compdef kiara

_kiara_completion() {
local -a completions
local -a completions_with_descriptions
local -a response
(( ! $+commands[kiara] )) && return 1

response=("${(@f)$( env COMP_WORDS="${words[*]}" \
COMP_CWORD=$((CURRENT-1)) \
_KIARA_COMPLETE="complete_zsh" \
kiara )}")

for key descr in ${(kv)response}; do
if [[ "$descr" == "_" ]]; then
completions+=("$key")
else
completions_with_descriptions+=("$key":"$descr")
fi
done

if [ -n "$completions_with_descriptions" ]; then
_describe -V unsorted completions_with_descriptions -U
fi

if [ -n "$completions" ]; then
compadd -U -V unsorted -a completions
fi
compstate[insert]="automenu"
}

compdef _kiara_completion kiara;

0 comments on commit 7e55a61

Please sign in to comment.