forked from MeanderingProgrammer/render-markdown.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
57 lines (45 loc) · 1.3 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
init := "tests/minimal.lua"
test:
nvim --headless --noplugin -u {{init}} \
-c "PlenaryBustedDirectory tests { minimal_init = '{{init}}', sequential=true }"
health:
nvim -c "checkhealth render-markdown" -- .
demo-all: demo-heading demo-list demo-box demo-latex demo-callout
demo-heading:
just demo "heading_code" "30" "## Heading 2"
demo-list:
just demo "list_table" "30" ""
demo-box:
just demo "box_dash_quote" "15" ""
demo-latex:
just demo "latex" "15" ""
demo-callout:
just demo "callout" "40" ""
demo file rows content:
rm -f demo/{{file}}.gif
python demo/record.py \
--cols "60" \
--rows {{rows}} \
--file demo/{{file}}.md \
--cast {{file}}.cast \
--content "{{content}}"
# https://github.com/MeanderingProgrammer/cli/tree/main/agg
agg {{file}}.cast demo/{{file}}.gif
rm {{file}}.cast
update:
# Updates types.lua & README.md
python -Wignore scripts/update.py
# https://pandoc.org/
# https://github.com/kdheepak/panvimdoc
../../open-source/panvimdoc/panvimdoc.sh \
--project-name render-markdown \
--input-file README.md \
--vim-version 0.10.0
[private]
gen-large-file-text:
#!/usr/bin/env python
for i in range(100_000):
level = "#" * ((i % 6) + 1)
print(f"{level} Title {i}\n")
gen-large-file:
just gen-large-file-text > large.md