Coder Social home page Coder Social logo

lazylit's Introduction

lazylit

Publish an ad hoc explanation of code, tied to a single revision/commit, and link to that explanation from anywhere.

lazylit is a code documentation tool that generates static HTML that can be published via e.g. GitHub Pages and linked from anywhere (code comments, READMEs, Jira tickets, etc.).

See an example of the final output.

The main idea is that you can write extensive explanations of particularly confusing code, tying your explanation to a specific revision (i.e. commit) of a given source code file. You can link to this explanation from anywhere you like. The rendered web page makes it clear which version of the source code you are referring to so there is no expectation that the explanation be kept up-to-date. And yet it may still help out your fellow colleagues as they navigate a complex codebase :)

I see this being particularly helpful for documenting project- and team-specific conventions and patterns. See here for a more complete motivation.

Install

For macOS:

brew tap dsabsay/homebrew-tap
brew install lazylit

Usage

Create a new repository in GitHub. Configure it to serve static content from the docs/ directory.

Create a directory artifacts/.

Copy a source code file you'd like to document into a subdirectory of artifacts/.

mkdir artifacts/crazy_makefile
cp <your crazy makefile> artifacts/crazy_makefile/crazy_makefile.jul_18_2020

Add your documentation as comments to the file under artifacts/. Make sure you add the necessary headers.

lazylit
git add .
git commit -m 'new docs'
git push

See the lazylit-example repo to see what your repo should look like.

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.