mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
25 lines
745 B
Bash
Executable file
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
|