diff options
author | 2010-06-17 21:40:46 -0400 | |
---|---|---|
committer | 2010-06-17 21:40:46 -0400 | |
commit | 44d46d022675756783e3c007923a77446d52b7e7 (patch) | |
tree | 833da6536abe6d4934a86503e80b07a8749a7566 | |
parent | 75efa82b280d1240667c1207f411ccef65149222 (diff) | |
download | textadept-44d46d022675756783e3c007923a77446d52b7e7.tar.gz textadept-44d46d022675756783e3c007923a77446d52b7e7.zip |
Renamed core/.*.lua to core/.*.luadoc documentation files.
-rw-r--r-- | core/._G.luadoc (renamed from core/._G.lua) | 0 | ||||
-rw-r--r-- | core/._m.luadoc (renamed from core/._m.lua) | 0 | ||||
-rw-r--r-- | core/.buffer.luadoc (renamed from core/.buffer.lua) | 0 | ||||
-rw-r--r-- | core/.command_entry.luadoc (renamed from core/.command_entry.lua) | 0 | ||||
-rw-r--r-- | core/.find.luadoc (renamed from core/.find.lua) | 0 | ||||
-rw-r--r-- | core/.gui.luadoc (renamed from core/.gui.lua) | 0 | ||||
-rw-r--r-- | core/.iconv.luadoc (renamed from core/.iconv.lua) | 0 | ||||
-rw-r--r-- | core/.view.luadoc (renamed from core/.view.lua) | 0 | ||||
-rwxr-xr-x | scripts/gen_iface.lua | 1 | ||||
-rwxr-xr-x | scripts/update_doc | 17 |
10 files changed, 16 insertions, 2 deletions
diff --git a/core/._G.lua b/core/._G.luadoc index 1ee02455..1ee02455 100644 --- a/core/._G.lua +++ b/core/._G.luadoc diff --git a/core/._m.lua b/core/._m.luadoc index d5f52a94..d5f52a94 100644 --- a/core/._m.lua +++ b/core/._m.luadoc diff --git a/core/.buffer.lua b/core/.buffer.luadoc index de553c2f..de553c2f 100644 --- a/core/.buffer.lua +++ b/core/.buffer.luadoc diff --git a/core/.command_entry.lua b/core/.command_entry.luadoc index 93615f22..93615f22 100644 --- a/core/.command_entry.lua +++ b/core/.command_entry.luadoc diff --git a/core/.find.lua b/core/.find.luadoc index 87cbf257..87cbf257 100644 --- a/core/.find.lua +++ b/core/.find.luadoc diff --git a/core/.gui.lua b/core/.gui.luadoc index 04869e70..04869e70 100644 --- a/core/.gui.lua +++ b/core/.gui.luadoc diff --git a/core/.iconv.lua b/core/.iconv.luadoc index 86ca54c9..86ca54c9 100644 --- a/core/.iconv.lua +++ b/core/.iconv.luadoc diff --git a/core/.view.lua b/core/.view.luadoc index 010723da..010723da 100644 --- a/core/.view.lua +++ b/core/.view.luadoc diff --git a/scripts/gen_iface.lua b/scripts/gen_iface.lua index 62f972f8..1f1e64e7 100755 --- a/scripts/gen_iface.lua +++ b/scripts/gen_iface.lua @@ -40,7 +40,6 @@ for item in constants:sub(2, -2):gmatch('%b{}') do out = out..line end end - out = out..string.gsub([[ SCN_STYLENEEDED = 2000, SCN_CHARADDED = 2001, diff --git a/scripts/update_doc b/scripts/update_doc index f5518e02..8f9ee6c0 100755 --- a/scripts/update_doc +++ b/scripts/update_doc @@ -1,10 +1,25 @@ #!/usr/bin/lua -- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE. +-- Rename *.lua.doc to *.lua so LuaDoc detects them. +local lfs = require 'lfs' +for file in lfs.dir('../core') do + if file:match('^%..-%.luadoc$') then + os.rename('../core/'..file, '../core/'..file:match('^%..-%.lua')) + end +end + -- Generate LuaDoc. os.execute('rm -rf ../doc/modules/') os.execute('cd ../; luadoc -d doc/ --nofiles modules/ core/ lexers/lexer.lua') +-- Revert to *.lua.doc +for file in lfs.dir('../core') do + if file:match('^%..-%.lua$') then + os.rename('../core/'..file, '../core/'..file..'doc') + end +end + -- Insert Markdown in modules into LuaDoc. local p = io.popen('grep -r "\\-\\- Markdown:" ../*') for file in p:lines() do @@ -81,7 +96,7 @@ for mdfile in p:lines() do <div id="about"> <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> </div> - </div> + </div> </body> </html> ]] |