aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2023-08-28 07:33:57 -0700
committerSteven Arcangeli <stevearc@stevearc.com>2023-08-28 07:43:51 -0700
commit7f9370a8e704dc9fda25681b2077c20fe2a3fa5f (patch)
tree924ef6e606621e4b9f450162309b66109ef3af61
parent90e8a8d63c7d77d1872dca3da720abfa07271054 (diff)
doc: move doc scripts around and eliminate submodule
m---------.github/nvim_doc_tools0
-rwxr-xr-x.github/pre-commit4
-rwxr-xr-x.github/pre-push7
-rw-r--r--.gitignore2
-rw-r--r--.gitmodules3
-rw-r--r--Makefile19
-rwxr-xr-xscripts/generate.py (renamed from .github/generate.py)0
-rwxr-xr-xscripts/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
diff --git a/.gitignore b/.gitignore
index b29818a..edbf0df 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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