snacks.nvim/scripts/docs
Folke Lemaitre 31ac12a971
ci: again...
2024-11-05 21:18:31 +01:00

25 lines
745 B
Bash
Executable file

#!/bin/env bash
set -e
nvim -u tests/minit.lua --headless +'lua require("snacks.docs").build()' +qa
echo -e "\n\nGenerating Vim Help"
if [ "$GITHUB_ACTIONS" != "true" ]; then
exit 0
fi
sudo apt update
sudo apt install -y pandoc
/usr/bin/git config --global --add safe.directory /home/runner/work/snacks.nvim/panvimdoc
/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
git clone https://github.com/kdheepak/panvimdoc.git
cd ./panvimdoc
for f in ../docs/*.md; do
./panvimdoc.sh --project-name "snacks.nvim" --input-file "$f" --vim-version "Neovim" --demojify "true" >"../doc/snacks.nvim-$(basename "$f" .md).txt"
done