-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains 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
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; |