Comments (5)
I encountered this issue as well. After fiddling around for several hours, I wasn't able to find a solution that didn't have weird duplication issues or require modifying ldoc.lua. I chose the latter.
--- ldoc.lua.old 2013-01-21 12:38:42.942227984 -0700
+++ ldoc.lua 2013-01-21 12:39:05.210338397 -0700
@@ -140,12 +140,12 @@
end
-- new tags can be added, which can be on a project level.
-function ldoc.new_type (tag,header,project_level)
+function ldoc.new_type (tag,header,project_level,subname)
doc.add_tag(tag,doc.TAG_TYPE,project_level)
if project_level then
- ProjectMap:add_kind(tag,header)
+ ProjectMap:add_kind(tag,header,subname)
else
- ModuleMap:add_kind(tag,header)
+ ModuleMap:add_kind(tag,header,subname)
end
end
I use it like: ldoc.new_type("struct","Structs",false,"Fields")
from ldoc.
On Mon, Jan 21, 2013 at 9:45 PM, SolraBizna [email protected] wrote:
I encountered this issue as well. After fiddling around for several hours, I wasn't able to find a solution that didn't have weird duplication issues or require modifying ldoc.lua. I chose the latter.
That's a good solution, thank you. It's necessary to specify what the
subfields (if any) of a new type are.
I will update the source and the docs accordingly.
from ldoc.
On Thu, Jan 24, 2013 at 2:10 PM, steve donovan
[email protected] wrote:
I will update the source and the docs accordingly.
Right, uploaded.
Should be able to grab 1.3.2 from the tags page:
https://github.com/stevedonovan/LDoc/tags
from ldoc.
Can we close this issue?
from ldoc.
Thanks for fixing this.
from ldoc.
Related Issues (20)
- Representing module with constants HOT 2
- LDoc fails to reference to a table value HOT 1
- Using custom CSS (-s option) fails with error: ldoc/tools.lua:233: attempt to compare number with nil HOT 2
- Part after dot is ignored HOT 2
- How to add description of example script HOT 1
- @type changes behavior when used in @submodule HOT 5
- LuaRocks module: broken link to project homepage HOT 2
- How to use @script tag? HOT 2
- Filename case issues for cross-platform document generation HOT 5
- --fatalwarnings returns 0 exit code with invalid Markdown references
- Error message on invalid tag somewhat obtuse and doesn't point out the issue being the undefined tag HOT 10
- LDoc breaks when loading config file. HOT 2
- [Meta] Is this repo dead? HOT 2
- How do I ignore certain files/directories? HOT 2
- `hxx` extension support HOT 2
- multiple raise statements cause error HOT 6
- Support nested subparams HOT 2
- Question: is there a way to generate document from lua-language-server type annotations?
- Add LuaCATS as alternative tag handling scheme HOT 4
- document nested tables? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldoc.