Giter VIP home page Giter VIP logo

writethedocsproposal_2021's Introduction

Next generation interactive docs

LiaScript is not a tool, it is a Markup language based on three design principles:

  1. Holistic: One format for different purposes

  2. Simple & textbased: Due to a smart interpreter

  3. Interactive: Scripting should be an essential part of publishing

1. Holistic

{{1}} Responsive

The output should of course be responsive to be consumable on different devices.

{{2}} Rendered in various ways {3}{textbook/presentation/slides}

It should be possible for the end-user to decide in what format she or he wants to digest the content.

LiaScript currently supports three different formats.

{{4}} Narrative & Multilingual

Первоначально создан в 2004 году Джоном Грубером (англ. John Gruber) и Аароном Шварцем. Многие идеи языка были позаимствованы из существующих соглашений по разметке текста в электронных письмах...

2. Simple & Textbased

             {{1-2}}

!?video

             {{2-3}}
                            Multiline

1.9 | | * y | * *

  • | r r r r r r rr r r rr r r r r r r a | * * x | * * i | B B B B B * B B B B B B * B B B B B s | * * | * * * * * * -1 +------------------------------------ 0 x-axis 1

             {{3-4}}
    
Animal weight in kg Lifespan years Mitogen
Mouse 0.028 02 95
Flying squirrel 0.085 15 50
Brown bat 0.020 30 10
Sheep 90 12 95
Human 68 70 10
              {{4}}

Do you like this approach so far?

[[ ]] No? [[X]] Yes of course! [[X]] ... not sure ...


3. Interactive Scripting

The sum of

<script output="a" default="1" input="range">@input</script>

and

<script output="b" default="1" input="range">@input</script>

is

<script>@input(`a`) + @input(`b`)</script>.

Data-driven publishing

Just an arbitrary value <script output="a" default="1" input="range">@input</script>, right???

Header 1 <script>@input(a)</script>
1 @sin(1)
2 @sin(2)
3 @sin(3)
4 @sin(4)
5 @sin(5)
6 @sin(6)
7 @sin(7)
8 @sin(8)
9 @sin(9)

Coding++

https://github.com/LiaTemplates/AVR8js

void setup() {
  Serial.begin(9600);
}

void loop() {
   while (Serial.available() > 0 ) {

     String str = Serial.readString();

     if (str.equals("send")) {
        Serial.println("identified");
     } else {
        Serial.println("unknown");
     }
   }
}

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.