|
1 |
| -pandocrepo = https://github.com/kdheepak/panvimdoc |
2 |
| -pandocdir = misc/panvimdoc |
3 |
| -TEST_DIR = test/github-theme |
4 |
| -PLENARY_DIR = test/plenary |
5 |
| -PLENARY_URL = https://github.com/nvim-lua/plenary.nvim/ |
| 1 | +pandocrepo ::= https://github.com/kdheepak/panvimdoc |
| 2 | +pandocdir ::= misc/panvimdoc |
| 3 | +TEST_DIR ::= test/github-theme |
| 4 | +PLENARY_DIR ::= test/plenary |
| 5 | +PLENARY_URL ::= https://github.com/nvim-lua/plenary.nvim/ |
6 | 6 |
|
7 |
| -root_dir := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) |
| 7 | +root_dir ::= $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) |
8 | 8 |
|
9 |
| -.PHONY : all |
| 9 | +.PHONY: all docgen test check fmt diagnose |
10 | 10 | all: docgen test check
|
11 | 11 |
|
12 |
| -.PHONY : docgen |
13 | 12 | docgen: $(pandocdir)
|
14 |
| - @pandoc \ |
15 |
| - --citeproc \ |
16 |
| - --shift-heading-level-by=0 \ |
17 |
| - --metadata=project:github-nvim-theme \ |
18 |
| - --metadata=vimversion:8.0 \ |
19 |
| - --metadata=toc:true \ |
20 |
| - --metadata="description:Github's Neovim themes" \ |
21 |
| - --metadata=dedupsubheadings:true \ |
22 |
| - --metadata=ignorerawblocks:true \ |
23 |
| - --metadata=docmapping:true \ |
24 |
| - --metadata=docmappingproject:true \ |
25 |
| - --metadata=treesitter:true \ |
26 |
| - --metadata=incrementheadinglevelby:0 \ |
27 |
| - --lua-filter=misc/panvimdoc/scripts/skip-blocks.lua \ |
28 |
| - --lua-filter=misc/panvimdoc/scripts/include-files.lua \ |
29 |
| - -t misc/panvimdoc/scripts/panvimdoc.lua \ |
30 |
| - -o doc/github-nvim-theme.txt \ |
31 |
| - Usage.md |
| 13 | + @pandoc \ |
| 14 | + --citeproc \ |
| 15 | + --shift-heading-level-by=0 \ |
| 16 | + --metadata=project:github-nvim-theme \ |
| 17 | + --metadata=vimversion:8.0 \ |
| 18 | + --metadata=toc:true \ |
| 19 | + --metadata="description:Github's Neovim themes" \ |
| 20 | + --metadata=dedupsubheadings:true \ |
| 21 | + --metadata=ignorerawblocks:true \ |
| 22 | + --metadata=docmapping:true \ |
| 23 | + --metadata=docmappingproject:true \ |
| 24 | + --metadata=treesitter:true \ |
| 25 | + --metadata=incrementheadinglevelby:0 \ |
| 26 | + --lua-filter=misc/panvimdoc/scripts/skip-blocks.lua \ |
| 27 | + --lua-filter=misc/panvimdoc/scripts/include-files.lua \ |
| 28 | + -t misc/panvimdoc/scripts/panvimdoc.lua \bu |
| 29 | + -o doc/github-nvim-theme.txt \ |
| 30 | + Usage.md |
32 | 31 |
|
33 | 32 | $(pandocdir):
|
34 | 33 | git clone --depth=1 --no-single-branch $(pandocrepo) $(pandocdir)
|
35 | 34 | @rm -rf doc/panvimdoc/.git
|
36 | 35 |
|
37 |
| -.PHONY : test |
38 | 36 | test: $(PLENARY_DIR)
|
39 | 37 | nvim \
|
40 |
| - --headless \ |
41 |
| - --noplugin \ |
42 |
| - -u test/minimal_init.vim \ |
43 |
| - -c "PlenaryBustedDirectory $(TEST_DIR) { minimal_init = './test/minimal_init.vim', sequential = true }" |
| 38 | + --headless \ |
| 39 | + --noplugin \ |
| 40 | + -u test/minimal_init.vim \ |
| 41 | + -c "PlenaryBustedDirectory $(TEST_DIR) { minimal_init = './test/minimal_init.vim', sequential = true }" |
44 | 42 |
|
45 | 43 | $(PLENARY_DIR):
|
46 | 44 | git clone --depth=1 --no-single-branch $(PLENARY_URL) $(PLENARY_DIR)
|
47 | 45 | @rm -rf $(PLENARY_DIR)/.git
|
48 | 46 |
|
49 |
| -.PHONY : check |
50 |
| -check : |
| 47 | +check: |
51 | 48 | stylua --check lua/ test -f ./stylua.toml
|
52 | 49 |
|
53 |
| -.PHONY : fmt |
54 |
| -fmt : |
| 50 | +fmt: |
55 | 51 | stylua lua/ test/ -f ./stylua.toml
|
| 52 | + |
| 53 | +diagnose: |
| 54 | + scripts/diagnose Hint |
0 commit comments