Giter Site home page Giter Site logo

sinlerdev / moonwave Goto Github PK

View Code? Open in Web Editor NEW

This project forked from evaera/moonwave

0.0 0.0 0.0 2.53 MB

Moonwave is a tool for generating documentation from comments in Lua source code.

Home Page: https://eryn.io/moonwave/

License: Mozilla Public License 2.0

JavaScript 38.84% Lua 5.15% Rust 33.36% TypeScript 10.60% CSS 12.05%

moonwave's Introduction

Moonwave

Moonwave

Moonwave is a command line tool for generating documentation from comments in Lua source code.

This repository contains three projects:

  • The Moonwave Extractor, a Rust program that parses Lua files and extracts the docs as JSON
  • A plugin for Docusaurus, written in React, which displays the JSON docs visually
  • The Moonwave CLI, which allows you to use both the extractor and the Docusaurus plugin without needing to know anything about how they work.

Key features

  • Easy to use: You can generate a website with little-to-no configuration and just a few comments in your Lua code.
  • Extensive validation system which can catch mistakes when something doesn't make sense.
  • Generates JSON from your doc comments, which can be consumed by many different tools.
  • Simple doc comment format that is easy to read directly when editing your code.

Demo

Check out the roblox-lua-promise docs. This website is completely generated by Moonwave!

Name

Lua is the moon. The moon is your code. The moon influences the waves in the ocean, just like your code influences its documentation. So.. moonwave!

Docs

Check out the Documentation website

Building in Development and Contributing

Requirements:

  1. Clone this repository
  2. in cli, run npm i, npm run tsc, and npm link
  3. in docusaurus-plugin-moonwave, run npm i
  4. in extractor, run cargo install --path . --locked
  5. in cli, run npm run dev
  6. in another terminal, navigate to the project you want to test with, and run MOONWAVE_DEV=1 moonwave dev

You should now be able to change files in the moonwave folder and things should live-reload on your development website. If they don't, Ctrl+C the moonwave dev terminal and restart it. If you continue to have issues, try adding the -i flag to reinstall all dependencies.

License

Moonwave is available under the terms of the Mozilla Public License Version 2.0. Terms and conditions are available in LICENSE.txt or at https://www.mozilla.org/en-US/MPL/2.0/.

moonwave's People

Contributors

evaera avatar guidable0 avatar kennethloeffler avatar leoyulee avatar quenty avatar rileyabr avatar sasial-dev avatar

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.