Git Product home page Git Product logo

altair's Introduction

Altair ⭐

Generate portable terminal based documentation.

How to use

I will soon turn it into a module so it will ease the generation For now you can simply clone this repository and modify the content of the ./docs folder.

Altair supports nested folders.

Screenshot-2022-12-04-alle-17-14-02

Run:

pnpm dev

or

pnpm build

The building process is simple.

  • It first walks the ./docs directory
  • Generates a new file with all the computed content (like a db)
  • Builds

Altair builds the tree from the generated content (and not from the os.Readir or os.Walkdir or whatnot)


Write your stuff in .txt

  • Add colors: altair is based on Tview so it supports its coloring syntax [COLOR]something[RESET]
    for example if I wanted to color Hello world in orange I'd write [orange]Hello world[white]

  • Add snippets: (for now only one snippet per .txt) simply wrap the file name, that contains the snippet, within - signs
    for example if I wanted to import snippet hello.wat, I'd write

    I'm now importing hello.wat content
    
      \-
      hello.wat
      \-
      done!
    

    Altair will replace it with the file content

    IMPORTANT: files must be in the same dir (working on it)

Quit:
Press q to quit.

Light/Dark theme

There's the possibility to switch between light and dark theme (by clicking the buttons)

Screenshot-2022-12-04-alle-17-13-48


Roadmap

As for now it is still an MVP

  • Search (search in the docs)
  • Simplify the process
  • Run snippets

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.