GithubHelp home page GithubHelp logo

smunix / neuron Goto Github PK

View Code? Open in Web Editor NEW

This project forked from srid/neuron

0.0 0.0 0.0 3.57 MB

Haskell meets Zettelkasten, for your plain-text delight.

Home Page: https://neuron.zettel.page

License: GNU Affero General Public License v3.0

Nix 12.45% Haskell 85.28% Dhall 0.36% Shell 0.40% JavaScript 1.51%

neuron's Introduction

neuron

AGPL built with nix Zulip chat Matrix chat

neuron is a future-proof command-line app for managing your plain-text Zettelkasten notes.

Features

  • Extended Markdown for easy linking between zettels
  • Web interface (auto generated static site)
  • Graph view of zettels (folgezettel heterarchy)
  • Hash-based note IDs

Getting started

See neuron.zettel.page for the full guide to installing and using neuron.

Developing

When modifying the source code, use bin/run (which uses ghcid) to test your changes in real-time:

bin/run -d $(pwd)/guide rib -wS

This command automatically recompiles and restarts when you change any of the Haskell source files, as well run site generation on the given Zettelkasten. You can pass the same neuron arguments to bin/run. This is essentially equivalent to running development version of neuron with instant reload.

Running tests

Unit tests can be run via ghcid as follows:

bin/test

Developing on reflex-dom-pandoc

Neuron delegates HTML rendering of the Pandoc AST to reflex-dom-pandoc. To hack on it, first install Obelisk and then:

# This will clone the git repo of reflex-dom-pandoc at dep/reflex-dom-pandoc
ob thunk unpack dep/reflex-dom-pandoc

# Let's work on that repo
cd dep/reflex-dom-pandoc

# Run ghcid (using neuron's nix config)
nix-shell ../../shell.nix --run ghcid

Now as you edit the reflex-dom-pandoc sources, ghcid should give you compiler feedback. Once you are done with your changes, simply re-run neuron's ghcid or bin/run (see further above) and it should reflect your changes.

When you are done, commit your changes to reflex-dom-pandoc (presumably in a branch) and then git push it. Finally, you must "pack" the thunk and commit the changes to the neuron repo:

cd ../..  # Back to neuron
rm -rf dep/reflex-platform/dist-newstyle # cleanup build artifacts before packing
ob thunk pack dep/reflex-dom-pandoc
git add dep/reflex-dom-pandoc

neuron's People

Contributors

ceedubs avatar felko avatar gabriella439 avatar gillchristian avatar juanfds avatar kilibyte avatar maralorn avatar michelk avatar nadrieril avatar srid avatar tristancacqueray avatar venus-as-a-boy 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.