diff --git a/README.md b/README.md index 8346801..e124f11 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ **Pocketlang** is a small (~3000 semicolons) and [fast](https://github.com/ThakeeNathees/pocketlang#performance) functional language written in C. It's syntactically similar to Ruby and it can -be learned [within 15 minutes](https://thakeenathees.github.io/pocketlang/getting-started-learn-in-15-minutes.html). +be learned [within 15 minutes](https://thakeenathees.github.io/pocketlang/docs/v0.1.0/Reference/Cheat-Sheet.html). Including the compiler, bytecode VM and runtime, it's a standalone executable with zero external dependencies just as it's self descriptive name. The pocketlang VM can be embedded in another hosting program very easily. @@ -33,7 +33,7 @@ end ## Try It Now -You can [try pocketlang on your browser](https://thakeenathees.github.io/pocketlang/getting-started-try-it-now.html). +You can [try pocketlang on your browser](https://thakeenathees.github.io/pocketlang/try-online.html). It's a [WebAssembly](https://webassembly.org/) build of the VM compiled using [emscripten](https://emscripten.org/). Note that in the webassembly version of the language, some features (input, file handling, relative import, etc.) have disabled, has limited memory allocations, and the stdout calls might be slower. diff --git a/docs/generate.py b/docs/generate.py index 98ccb4c..8617e86 100644 --- a/docs/generate.py +++ b/docs/generate.py @@ -254,8 +254,8 @@ def generate_navtree(context): def generate_toc_entries(topics): gen = "" for topic in topics: - gen += f'
  • \m' - gen += f' {topic.replace("-", " ")}\n' + gen += f'
  • ' + gen += f'{topic.replace("-", " ")}' gen += '
  • \n' return gen diff --git a/docs/static/css/try_online.css b/docs/static/css/try_online.css index e5a4bb6..363f514 100644 --- a/docs/static/css/try_online.css +++ b/docs/static/css/try_online.css @@ -139,7 +139,20 @@ body { @media screen and (max-width: 995px) { :root { - --fs-editor: 14px; --fs-code-example-title: 10px; } -} \ No newline at end of file + + #code-area { + flex-direction: column; + } + + #code-editor::-webkit-scrollbar { + width: 0; + height: 0; + } + + #code-output { + height: auto; + min-height: 150px; + } +} diff --git a/docs/templates/index.html b/docs/templates/index.html index 47e9b9f..bad2629 100644 --- a/docs/templates/index.html +++ b/docs/templates/index.html @@ -40,7 +40,7 @@

    Get Started - Try Online + Try Online
    diff --git a/docs/templates/try-online.html b/docs/templates/try-online.html index 649e411..004e335 100644 --- a/docs/templates/try-online.html +++ b/docs/templates/try-online.html @@ -19,7 +19,7 @@