All Projects → healeycodes → inkbyexample

healeycodes / inkbyexample

Licence: MIT License
✒ A hands-on introduction to Ink using annotated example programs.

Programming Languages

CSS
56736 projects
HTML
75241 projects
Makefile
30231 projects

Projects that are alternatives of or similar to inkbyexample

maverick
Web IDE and REPL for the Ink programming language, written in pure Ink on a self-hosted compiler toolchain
Stars: ✭ 26 (+44.44%)
Mutual labels:  ink, ink-programming-language
jupiter
Wasm smart contract networks powered by Substrate FRAME Contracts pallet in Polkadot ecosystem.
Stars: ✭ 49 (+172.22%)
Mutual labels:  ink
pallet-contracts-waterfall
Collection of simple Substrate smart contract examples written in Rust, AssemblyScript, Solang and the smart contract language ink! to test substrates pallet-contracts module
Stars: ✭ 28 (+55.56%)
Mutual labels:  ink
telemachy
Easy guided tours for Angular apps
Stars: ✭ 42 (+133.33%)
Mutual labels:  tour
english
Base language version of the Tour
Stars: ✭ 27 (+50%)
Mutual labels:  tour
ask
Ask! is a framework to write Wasm smart contracts for Substrate Frame Pallet-Contracts in AssemblyScript
Stars: ✭ 44 (+144.44%)
Mutual labels:  ink
ink-box
Styled box component for Ink
Stars: ✭ 113 (+527.78%)
Mutual labels:  ink
react-native-ink
React Native for CLIs
Stars: ✭ 28 (+55.56%)
Mutual labels:  ink
sistine
A simple, flexible, productive static site generator written entirely in Ink
Stars: ✭ 17 (-5.56%)
Mutual labels:  ink
libgen-downloader
A simple tool to search and download ebooks from libgen via terminal user interface.
Stars: ✭ 98 (+444.44%)
Mutual labels:  ink
aic-mobile-ios
Art Institute of Chicago Official Mobile App
Stars: ✭ 29 (+61.11%)
Mutual labels:  tour
ink-library
A collection of ink samples, tools and a list of projects that use ink
Stars: ✭ 171 (+850%)
Mutual labels:  ink
live-draw
A tool allows you to draw on screen real-time.
Stars: ✭ 400 (+2122.22%)
Mutual labels:  ink
ioBroker.epson stylus px830
Zustand Druckerpatronen im EPSON Stylus PX830 für ioBroker auslesen
Stars: ✭ 18 (+0%)
Mutual labels:  ink
ink roguelike
A narrative mini-roguelike written completely in ink.
Stars: ✭ 13 (-27.78%)
Mutual labels:  ink
merlot
Web based Markdown writing app built with isomorphic Ink and Torus
Stars: ✭ 145 (+705.56%)
Mutual labels:  ink-programming-language
GuideChimp
Create interactive guided product tours in minutes with the most non-technical friendly, lightweight and extendable library.
Stars: ✭ 138 (+666.67%)
Mutual labels:  tour
go-exercices
Exercices from the Go tour
Stars: ✭ 27 (+50%)
Mutual labels:  tour
ink-color-pipe
🌈 Create color text with simpler style strings in Ink
Stars: ✭ 18 (+0%)
Mutual labels:  ink
ink-soaked
A template for Twine-like hypertext using inkle's ink scripting language and ink.js
Stars: ✭ 23 (+27.78%)
Mutual labels:  ink

CI

Ink by Example

Content and build toolchain for Ink by Example, a site that teaches Ink via annotated example programs.

All tooling is written in Ink and the programs are evaluated as part of the build process.

Syntax highlighting powered by September.


Image of https://inkbyexample.com


Add an Annotated Program

  • Add the title to examples.ink
  • Create a matching Ink program in /examples that exports intro, rows, and end.
  • A title of Foo Bar needs a program named foo-bar.ink
intro := 'The introduction precedes the code sections. It should not be left empty.'

rows := [
    {
        docs: 'A that function adds two numbers together. This text will appear on the left of the code.'
        code: 'add := (x, y) => x + y'
    },
    {
        docs: 'A function multiplies two numbers together.'
        code: 'multiply := (x, y) => x * y'
    }
]

end := 'The end section is left of the terminal output. It can be left empty.'

Contributing

Raise an issue before starting a PR. I'm happy to help out! You can also DM me on Twitter @healeycodes


Build

make build-linux or make build-mac

The website is built to /public.


Test

make test-linux or make test-mac

Check stdout for runtime errors.


Deploy

This repository uses Netlify for CI/CD and there's a netlify.toml with the configuration required.

Otherwise, serve the /public directory.


Thanks to

@thesephist for creating the Ink programming language, writing the SPEC.md and amazing documentation at https://dotink.co/ which served as a jumping off point.

Mark McGranaghan for creating the original Go by Example which provided styling and structure for this project.


License

Go by Example is copyright Mark McGranaghan and licensed under a Creative Commons Attribution 3.0 Unported License.

Everything else is licensed under MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].