diff options
author | Steven Arcangeli <stevearc@stevearc.com> | 2023-08-28 07:33:57 -0700 |
---|---|---|
committer | Steven Arcangeli <stevearc@stevearc.com> | 2023-08-28 07:43:51 -0700 |
commit | 7f9370a8e704dc9fda25681b2077c20fe2a3fa5f (patch) | |
tree | 924ef6e606621e4b9f450162309b66109ef3af61 | |
parent | 90e8a8d63c7d77d1872dca3da720abfa07271054 (diff) |
doc: move doc scripts around and eliminate submodule
m--------- | .github/nvim_doc_tools | 0 | ||||
-rwxr-xr-x | .github/pre-commit | 4 | ||||
-rwxr-xr-x | .github/pre-push | 7 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | Makefile | 19 | ||||
-rwxr-xr-x | scripts/generate.py (renamed from .github/generate.py) | 0 | ||||
-rwxr-xr-x | scripts/main.py (renamed from .github/main.py) | 0 |
8 files changed, 22 insertions, 13 deletions
diff --git a/.github/nvim_doc_tools b/.github/nvim_doc_tools deleted file mode 160000 -Subproject 3432f0308c96ad95b7337c68b5f143c6b991630 diff --git a/.github/pre-commit b/.github/pre-commit index 49ee249..240abeb 100755 --- a/.github/pre-commit +++ b/.github/pre-commit @@ -1,5 +1,3 @@ #!/bin/bash set -e -luacheck lua tests - -stylua --check . +make lint diff --git a/.github/pre-push b/.github/pre-push deleted file mode 100755 index d117589..0000000 --- a/.github/pre-push +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -set -e -luacheck lua tests - -stylua --check . - -lua-typecheck lua @@ -44,3 +44,5 @@ luac.out doc/tags tests/testfile.txt tests/fake_formatter_output +scripts/nvim_doc_tools +scripts/nvim-typecheck-action diff --git a/.gitmodules b/.gitmodules index bec7b87..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule ".github/nvim_doc_tools"] - path = .github/nvim_doc_tools - url = ../../stevearc/nvim_doc_tools diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3a52951 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +.PHONY: doc test lint + +doc: scripts/nvim_doc_tools + python scripts/main.py generate + +test: + ./run_tests.sh + +lint: scripts/nvim-typecheck-action scripts/nvim_doc_tools + python scripts/main.py lint + luacheck lua tests --formatter plain + stylua --check lua tests + ./scripts/nvim-typecheck-action/typecheck.sh lua + +scripts/nvim_doc_tools: + git clone https://github.com/stevearc/nvim_doc_tools scripts/nvim_doc_tools + +scripts/nvim-typecheck-action: + git clone https://github.com/stevearc/nvim-typecheck-action scripts/nvim-typecheck-action diff --git a/.github/generate.py b/scripts/generate.py index f317534..f317534 100755 --- a/.github/generate.py +++ b/scripts/generate.py diff --git a/.github/main.py b/scripts/main.py index 4dffddf..4dffddf 100755 --- a/.github/main.py +++ b/scripts/main.py |