Coder Social home page Coder Social logo

cosmictoast / janet-lang.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from janet-lang/janet-lang.org

0.0 1.0 0.0 20.49 MB

Website for janet

Home Page: https://janet-lang.org

License: MIT License

Shell 0.01% JavaScript 1.31% C 5.60% CSS 0.51% Makefile 0.01% HTML 92.55% Janet 0.02%

janet-lang.org's Introduction

janet-lang.org

Gitter

This is the source code for the website of the Janet programming language. It is a static website built with mendoza, a static site generator.

Prereqs

Build this website using the bundled janet amalgamated source.

git clone https://github.com/janet-lang/janet-lang.org
cd janet-lang.org
make
make run

Building

To build, simply use make or make build.

Watch for changes

This requires first installing inotify-tools, which can be installed easily on most Linux distros. To watch for changes, use make watch.

Serve on localhost:8000

make run

Authoring Content

All pages in the content directory with .mdz extension will be parsed by mendoza and converted to an html file of the same name but with the .html extension. The markup language is similar to Scribble, the Racket documentation tool, but of course is written in and is a dialect of Janet. See mendoza for more information.

Adding Examples

Simply add a file with the name of the binding you are giving examples for to the examples directory, with the .janet suffix. If the binding includes the / character, replace it with an underscore - this works because no bindings in the core use an underscore. For example, the binding array/new has examples in the examples/array_new.janet file.

If such a file already exists, you can simply append your example code the existing file.

When building the site, the new examples will be included in the generated documentation. Make sure that your example has correct janet syntax, as syntax errors will cause the entire site to not build. If the example has valid syntax (has a 0 exit code when loaded with janet -k example/my-fn.janet), there may be a bug in the mendoza janet syntax highlighter and you open a bug in mendoza.

janet-lang.org's People

Contributors

ahungry avatar andrewchambers avatar apreiml avatar autumnull avatar bakpakin avatar benji-york avatar dbready avatar ebramanti avatar elimisteve avatar fimmtiu avatar goto-engineering avatar harryvederci avatar honix avatar ianthehenry avatar ishehadeh avatar krysros avatar michal037 avatar mikebeller avatar oakmac avatar pepe avatar pyrmont avatar quexxon avatar rduplain avatar sogaiu avatar soulawaker avatar steadbytes avatar subsetpark avatar tionis avatar uvtc avatar vladimyr avatar

Watchers

 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.