All Projects → lunarmodules → Ldoc

lunarmodules / Ldoc

Licence: other
LDoc is a LuaDoc-compatible documentation generator which can also process C extension source. Markdown may be optionally used to render comments, as well as integrated readme documentation and pretty-printed example files.

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to Ldoc

Hippie Swagger
API testing tool with automatic swagger assertions
Stars: ✭ 166 (-65.49%)
Mutual labels:  documentation, documentation-tool
Helm Dash
Browse Dash docsets inside emacs
Stars: ✭ 455 (-5.41%)
Mutual labels:  documentation, documentation-tool
Hexo Theme Doc
A documentation theme for the Hexo blog framework
Stars: ✭ 222 (-53.85%)
Mutual labels:  documentation, documentation-tool
Awesome Documentation Tools
🔥 📚 All the tools, processes and resources you need to create an awesome API & Project documentation
Stars: ✭ 138 (-71.31%)
Mutual labels:  documentation, documentation-tool
Docsify
🃏 A magical documentation site generator.
Stars: ✭ 19,310 (+3914.55%)
Mutual labels:  documentation, documentation-tool
Simpler Paper
elegant document generation tool.
Stars: ✭ 151 (-68.61%)
Mutual labels:  documentation, documentation-tool
Literate.jl
Simple package for literate programming in Julia
Stars: ✭ 272 (-43.45%)
Mutual labels:  documentation, documentation-tool
Catalog
Create living style guides using Markdown or React
Stars: ✭ 1,527 (+217.46%)
Mutual labels:  documentation, documentation-tool
Compodoc
📔 The missing documentation tool for your Angular, Nest & Stencil application
Stars: ✭ 3,567 (+641.58%)
Mutual labels:  documentation, documentation-tool
Sourcedocs
Generate Markdown documentation from source code
Stars: ✭ 286 (-40.54%)
Mutual labels:  documentation, documentation-tool
Documentalist
📝 A sort-of-static site generator optimized for living documentation of software projects
Stars: ✭ 130 (-72.97%)
Mutual labels:  documentation, documentation-tool
Doc2dash
Create docsets for Dash.app-compatible API browser.
Stars: ✭ 380 (-21%)
Mutual labels:  documentation, documentation-tool
Gdscript Docs Maker
Create documentation and class references from your Godot GDScript code
Stars: ✭ 121 (-74.84%)
Mutual labels:  documentation, documentation-tool
The Documentation Compendium
📢 Various README templates & tips on writing high-quality documentation that people want to read.
Stars: ✭ 4,306 (+795.22%)
Mutual labels:  documentation, documentation-tool
Lurker
📖 The ultimate tool for documenting and testing APIs in Rails
Stars: ✭ 120 (-75.05%)
Mutual labels:  documentation, documentation-tool
Devdocs Macos
An unofficial DevDocs API Documentation viewer for macOS.
Stars: ✭ 258 (-46.36%)
Mutual labels:  documentation, documentation-tool
Naturaldocs
Natural Docs source code documentation system
Stars: ✭ 106 (-77.96%)
Mutual labels:  documentation, documentation-tool
Pasdoc
Documentation tool for ObjectPascal (Free Pascal, Lazarus, Delphi) source code
Stars: ✭ 110 (-77.13%)
Mutual labels:  documentation, documentation-tool
Investigate.vim
A Vim plugin for looking up documentation
Stars: ✭ 282 (-41.37%)
Mutual labels:  documentation, documentation-tool
Docute
📚 Effortless documentation, done right.
Stars: ✭ 3,575 (+643.24%)
Mutual labels:  documentation, documentation-tool

LDoc - A Lua Documentation Tool

Luacheck

Copyright (C) 2011-2012 Steve Donovan.

Rationale

This project grew out of the documentation needs of Penlight (and not always getting satisfaction with LuaDoc) and depends on Penlight itself. (This allowed me to not write a lot of code.)

The API documentation of Penlight is an example of a project using plain LuaDoc markup processed using LDoc.

LDoc is intended to be compatible with LuaDoc and thus follows the pattern set by the various *Doc tools:

--- Summary ends with a period.
-- Some description, can be over several lines.
-- @param p1 first parameter
-- @param p2 second parameter
-- @return a string value
-- @see second_fun
function mod1.first_fun(p1,p2)
end

Tags such as see and usage are supported, and generally the names of functions and modules can be inferred from the code.

LDoc is designed to give better diagnostics: if a @see reference cannot be found, then the line number of the reference is given. LDoc knows about modules which do not use module()

  • this is important since this function has become deprecated in Lua 5.2. And you can avoid having to embed HTML in commments by using Markdown.

LDoc will also work with Lua C extension code, and provides some convenient shortcuts.

An example showing the support for named sections and 'classes' is the Winapi documentation; this is generated from winapi.l.c.

Installation

This is straightforward; the only external dependency is Penlight, which in turn needs LuaFileSystem. These are already present in Lua for Windows, and Penlight is also available through LuaRocks as luarocks install penlight.

Unpack the sources somewhere and make an alias to ldoc.lua on your path. That is, either an executable script called 'ldoc' like so:

lua /path/to/ldoc/ldoc.lua $*

Or a batch file called 'ldoc.bat':

@echo off
lua \path\to\ldoc\ldoc.lua %*
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].