Code Monkey home page Code Monkey logo

Comments (9)

stevedonovan avatar stevedonovan commented on May 30, 2024

I like this idea, but it has to be done carefully, since there is a assumption that modules map to files. A multi-file module would usually be one file that exposes the interface, and some files for the implementation. Those are the files we don't want to include. It does seem better to let the files themselves specify whether they're in or out, and then just a simple wildcard in the config.

from ldoc.

kevincox avatar kevincox commented on May 30, 2024

I like this idea, but it has to be done carefully, since there is a assumption that modules map to files.

Completely agreed.

A multi-file module would usually be one file that exposes the interface, and some files for the implementation.

Possibly although there are other scenarios (I have seen some weird file
splitting in C). And it might be useful to document the implementation for
developers. Something like an "internal" tag would be nice.

Those are the files we don't want to include.

The null module idea would be useful here.

It does seem better to let the files themselves specify whether they're in or out, and then just a simple wildcard in the config.

I like control :)

from ldoc.

dirkfeytons avatar dirkfeytons commented on May 30, 2024

FYI: I once added support for @internal to the original luadoc. Its purpose was indeed to mark certain functions to be not part of the public API even though their scope was public. By default the documentation for such functions would not show up in the output unless you explicitly requested it from the command line.
I would certainly like to see @internal support being added to LDoc.

from ldoc.

stevedonovan avatar stevedonovan commented on May 30, 2024

That should not be difficult. Currently there's an option to mark up non-public functions and only generate docs for them on special request, but I like this tag.

from ldoc.

stevedonovan avatar stevedonovan commented on May 30, 2024

This strikes me as a good feature. One of LDoc's goals is to get out of the way of the developer, and not impose any structure on their code. What we currently have is the submodule tag, which is intended for modules which optionally extend a namespace. But that isn't exactly what we have here. In C the names of the source files have no logical relationship with the modules (unlike Lua) so I see no problem with a rule which looks to see if a module has already been opened, and just adds to it. It should work pretty much as you have written. Should have that in a few days, since 1.3 is in ... continuous release at the moment!

from ldoc.

stevedonovan avatar stevedonovan commented on May 30, 2024

Sorry man, it was Christmas and I had too much to drink ;) 1.3 release continues to roll, mostly fixing problems, but I do want to try module merging in the next week, if that's ok with your time frame.

from ldoc.

stevedonovan avatar stevedonovan commented on May 30, 2024

Hi Kevin, 1.3.3 tag has experimental merge functionality, but you have to activate it explicitly. See tests/merge directory. Should work fine with C files as well (LDoc should not care) but please try this out and see.

from ldoc.

stevedonovan avatar stevedonovan commented on May 30, 2024

That does look nice, but I note a CSS fail here on Firefox; method summaries are forced onto the right, and overflow the table. Not much of a CSS expert, so I can't immediately see a fix. Wonder if we should enforce a width for the first table and make the function proto overflow?

No provision for sorting methods (or generally members of a section) but it would not be difficult to add.

from ldoc.

pronebird avatar pronebird commented on May 30, 2024

This must be documented even though it's experimental. Works like a charm!

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.