Skip to content

Commit 355ff12

Browse files
gregghClaude
and
Claude
committed
Fix: CI documentation workflow
- Fix shell syntax in Makefile docs target - Add missing .ldoc.cfg configuration file 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent ba5672d commit 355ff12

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.ldoc.cfg

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
project = 'Laravel Helper'
2+
title = 'Laravel Helper Documentation'
3+
description = 'An opinionated Neovim plugin for Laravel development'
4+
format = 'markdown'
5+
dir = 'doc/luadoc'
6+
file = {'lua/'}
7+
sort = true
8+
no_space_before_args = true
9+
all = true
10+
not_luadoc = true
11+
readme = 'README.md'
12+
13+
topics = {
14+
'./README.md',
15+
'./CONTRIBUTING.md',
16+
}
17+
18+
-- vim-specific settings
19+
custom_tags = {
20+
{ 'mod', title = 'Module' },
21+
{ 'brief', title = 'Brief' },
22+
{ 'usage', title = 'Usage' },
23+
}
24+
25+
custom_display_name_handler = function(item, default_handler)
26+
-- handle vim module names like "laravel-helper.config"
27+
if item.name:find("%.") then
28+
return item.name
29+
else
30+
return default_handler(item)
31+
end
32+
end

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ format:
4545
# Generate documentation
4646
docs:
4747
@echo "Generating documentation..."
48-
@[ -x "$$(command -v ldoc)" ] && ldoc $(LUA_PATH) -d $(DOC_PATH) -c .ldoc.cfg || echo "ldoc not installed. Skipping documentation generation."
48+
@if command -v ldoc > /dev/null 2>&1; then \
49+
ldoc $(LUA_PATH) -d $(DOC_PATH) -c .ldoc.cfg || true; \
50+
else \
51+
echo "ldoc not installed. Skipping documentation generation."; \
52+
fi
4953

5054
# Clean generated files
5155
clean:

0 commit comments

Comments
 (0)