Giter Club home page Giter Club logo

Comments (5)

SolraBizna avatar SolraBizna commented on September 26, 2024

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.

stevedonovan avatar stevedonovan commented on September 26, 2024

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.

stevedonovan avatar stevedonovan commented on September 26, 2024

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.

stevedonovan avatar stevedonovan commented on September 26, 2024

Can we close this issue?

from ldoc.

xithan avatar xithan commented on September 26, 2024

Thanks for fixing this.

from ldoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.