mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 16:39:29 +00:00
Added a way to build the documentation as .sublime-completions files (make build-doc-st)
Also replaced make build-doc with make build-doc-html so we can easily add new documentation formats in the future. To add ctrµLua API autocompletion to Sublime Text, simply copy the output directory (doc/sublimetext) to your ST's package directory.
This commit is contained in:
parent
e84ab0e3b2
commit
34c48f360e
3 changed files with 138 additions and 1 deletions
18
Makefile
18
Makefile
|
|
@ -166,8 +166,17 @@ build-all:
|
|||
@make build
|
||||
|
||||
build-doc:
|
||||
@echo Building HTML documentation...
|
||||
@make build-doc-html
|
||||
@echo Building SublimeText documentation...
|
||||
@make build-doc-st
|
||||
|
||||
build-doc-html:
|
||||
@cd doc/ && ldoc . && cd ..
|
||||
|
||||
build-doc-st:
|
||||
@cd doc/ && ldoc . --template ./ --ext sublime-completions --dir ./sublimetext/ && cd ..
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
clean:
|
||||
@rm -fr $(BUILD) $(TARGET).3dsx $(OUTPUT).smdh $(TARGET).elf
|
||||
|
|
@ -197,8 +206,17 @@ clean-all:
|
|||
@make clean
|
||||
|
||||
clean-doc:
|
||||
@echo Cleaning HTML documentation...
|
||||
@make clean-doc-html
|
||||
@echo Cleaning SublimeText documentation...
|
||||
@make clean-doc-st
|
||||
|
||||
clean-doc-html:
|
||||
@rm -rf doc/html
|
||||
|
||||
clean-doc-st:
|
||||
@rm -rf doc/sublimetext
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue