Skip to content

@include tag #185

Open
Open
@jiwonz

Description

@jiwonz

This is an issue I thought about a long time ago, but I forgot about it, so I don't remember if it's a duplicate issue or if I already posted it, but I couldn't find it, so I'm posting it.

Hi! I'd love to see support for an @include <file-path> tag in Moonwave, similar to Rust’s #![doc = include_str!("README.md")].

Example:

--[=[
	@include README.md
]=]
local myMainLibraryEntry = {}

return myMainLibraryEntry

This would insert the contents of the file into the generated docs. It’d be great for reusing documentation from README.md, usage guides, or other markdown files without duplicating content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions