From: Brendan Hansen Date: Sun, 19 Nov 2023 21:10:53 +0000 (-0600) Subject: redid a lot of content X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=8964c42812130d1ce977ca5a94a9b9d48e30d466;p=onyxlang.io.git redid a lot of content --- diff --git a/www/static/css/new_style.css b/www/static/css/new_style.css index 7170bfe..384e11d 100644 --- a/www/static/css/new_style.css +++ b/www/static/css/new_style.css @@ -5,8 +5,8 @@ } .ui-theme { - --terminal-background-color: #dddddd; - --terminal-foreground-color: #000000; + --terminal-background-color: #303033; + --terminal-foreground-color: #ffffff; --background-color: #f0f0f5; --light-background-color: #e0e0e6; @@ -138,6 +138,12 @@ h2 { font-size: 2rem; } +h3 { + font-size: 1.5rem; + margin-bottom: 8px; + border-bottom: 1px solid rgba(0, 0, 0, 0.2); +} + h1, h2, h3, h4, h5, h6 { font-weight: 200; } @@ -163,6 +169,7 @@ p code { background: var(--terminal-background-color); color: var(--terminal-foreground-color); border-radius: 4px; + padding: 2px; } @@ -349,7 +356,7 @@ main blockquote { } main li { - margin-top: 8px; + margin-top: 24px; } @media (min-width: 800px) { diff --git a/www/static/vendor/highlight.min.css b/www/static/vendor/highlight.min.css index 106b70f..3ced357 100644 --- a/www/static/vendor/highlight.min.css +++ b/www/static/vendor/highlight.min.css @@ -1,7 +1,6 @@ -@media (prefers-color-scheme: light) { +/* @media (prefers-color-scheme: light) { /* Visual Studio-like style based on original C# coloring by Jason Diamond - */ .hljs { background: white; color: black; @@ -62,119 +61,117 @@ .hljs-strong { font-weight: bold; } -} +} */ -@media (prefers-color-scheme: dark) { /* * Visual Studio 2015 dark style * Author: Nicolas LLOBERA */ - .hljs { - background: #1E1E1E; - color: #DCDCDC; - } - - .hljs-keyword, - .hljs-literal, - .hljs-symbol, - .hljs-name { - color: #569CD6; - } - .hljs-link { - color: #569CD6; - text-decoration: underline; - } +.hljs { + background: #1E1E1E; + color: #DCDCDC; +} - .hljs-built_in, - .hljs-type { - color: #4EC9B0; - } +.hljs-keyword, +.hljs-literal, +.hljs-symbol, +.hljs-name { + color: #569CD6; +} +.hljs-link { + color: #569CD6; + text-decoration: underline; +} - .hljs-number, - .hljs-class { - color: #B8D7A3; - } +.hljs-built_in, +.hljs-type { + color: #4EC9B0; +} - .hljs-string, - .hljs-meta .hljs-string { - color: #D69D85; - } +.hljs-number, +.hljs-class { + color: #B8D7A3; +} - .hljs-regexp, - .hljs-template-tag { - color: #9A5334; - } +.hljs-string, +.hljs-meta .hljs-string { + color: #D69D85; +} - .hljs-subst, - .hljs-function, - .hljs-title, - .hljs-params, - .hljs-formula { - color: #DCDCDC; - } +.hljs-regexp, +.hljs-template-tag { + color: #9A5334; +} - .hljs-comment, - .hljs-quote { - color: #57A64A; - font-style: italic; - } +.hljs-subst, +.hljs-function, +.hljs-title, +.hljs-params, +.hljs-formula { + color: #DCDCDC; +} - .hljs-doctag { - color: #608B4E; - } +.hljs-comment, +.hljs-quote { + color: #57A64A; + font-style: italic; +} - .hljs-meta, - .hljs-meta .hljs-keyword, +.hljs-doctag { + color: #608B4E; +} - .hljs-tag { - color: #9B9B9B; - } +.hljs-meta, +.hljs-meta .hljs-keyword, - .hljs-variable, - .hljs-template-variable { - color: #BD63C5; - } +.hljs-tag { + color: #9B9B9B; +} - .hljs-attr, - .hljs-attribute { - color: #9CDCFE; - } +.hljs-variable, +.hljs-template-variable { + color: #BD63C5; +} - .hljs-section { - color: gold; - } +.hljs-attr, +.hljs-attribute { + color: #9CDCFE; +} - .hljs-emphasis { - font-style: italic; - } +.hljs-section { + color: gold; +} - .hljs-strong { - font-weight: bold; - } +.hljs-emphasis { + font-style: italic; +} - /*.hljs-code { - font-family:'Monospace'; - }*/ +.hljs-strong { + font-weight: bold; +} - .hljs-bullet, - .hljs-selector-tag, - .hljs-selector-id, - .hljs-selector-class, - .hljs-selector-attr, - .hljs-selector-pseudo { - color: #D7BA7D; - } +/*.hljs-code { + font-family:'Monospace'; +}*/ + +.hljs-bullet, +.hljs-selector-tag, +.hljs-selector-id, +.hljs-selector-class, +.hljs-selector-attr, +.hljs-selector-pseudo { + color: #D7BA7D; +} - .hljs-addition { - background-color: #144212; - display: inline-block; - width: 100%; - } +.hljs-addition { + background-color: #144212; + display: inline-block; + width: 100%; +} - .hljs-deletion { - background-color: #600; - display: inline-block; - width: 100%; - } +.hljs-deletion { + background-color: #600; + display: inline-block; + width: 100%; } diff --git a/www/static/vendor/highlight.min.js b/www/static/vendor/highlight.min.js index c0dfe57..4e0c753 100644 --- a/www/static/vendor/highlight.min.js +++ b/www/static/vendor/highlight.min.js @@ -2581,7 +2581,7 @@ var hljs = (function () { "break", "continue", "return", "defer", "fallthrough", "cast", "sizeof", "alignof", "typeof" ], - literal: "true false null null_proc null_str", + literal: "true false null null_proc null_str it", type: "i8 u8 i16 u16 i32 u32 i64 u64 f32 f64 rawptr str cstr dyn_str i8x16 i16x8 i32x4 i64x2 f32x4 f64x2 v128 type_expr any", built_in: "math map set array random iter list conv type_info", }, @@ -2626,6 +2626,61 @@ var hljs = (function () { hljs.registerLanguage(languageName, builtIns[key]); } + (()=>{var e=(()=>{"use strict";return e=>{const s=e.regex,t={},n={begin:/\$\{/, +end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{ +className:"variable",variants:[{ +begin:s.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const a={ +className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={ +begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/, +end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/, +contains:[e.BACKSLASH_ESCAPE,t,a]};a.contains.push(c);const o={begin:/\$?\(\(/, +end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t] +},r=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10 +}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0, +contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{ +name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/, +keyword:["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"], +literal:["true","false"], +built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"] +},contains:[r,e.SHEBANG(),l,o,e.HASH_COMMENT_MODE,i,{match:/(\/[a-z._-]+)+/},c,{ +match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},t]}}})() +;hljs.registerLanguage("bash",e)})(); + +/*! `dos` grammar compiled for Highlight.js 11.9.0 */ + (()=>{var e=(()=>{"use strict";return e=>{const r=e.COMMENT(/^\s*@?rem\b/,/$/,{ + relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"], + case_insensitive:!0,illegal:/\/\*/,keywords:{ + keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"], + built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"] + },contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{ + className:"function",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)", + end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{ + begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),r]},{ + className:"number",begin:"\\b\\d+",relevance:0},r]}}})() + ;hljs.registerLanguage("dos",e)})(); +/*! `lua` grammar compiled for Highlight.js 11.9.0 */ +(()=>{var e=(()=>{"use strict";return e=>{const t="\\[=*\\[",a="\\]=*\\]",n={ + begin:t,end:a,contains:["self"] + },o=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,a,{contains:[n],relevance:10 + })];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE, + literal:"true false nil", + keyword:"and break do else elseif end for goto if in local not or repeat return then until while", + built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove" + },contains:o.concat([{className:"function",beginKeywords:"function",end:"\\)", + contains:[e.inherit(e.TITLE_MODE,{ + begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params", + begin:"\\(",endsWithParent:!0,contains:o}].concat(o) + },e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string", + begin:t,end:a,contains:[n],relevance:5}])}}})();hljs.registerLanguage("lua",e) + })(); + /*! `json` grammar compiled for Highlight.js 11.9.0 */ +(()=>{var e=(()=>{"use strict";return e=>{const a=["true","false","null"],n={ + scope:"literal",beginKeywords:a.join(" ")};return{name:"JSON",keywords:{ + literal:a},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/, + relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0 + },e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE], + illegal:"\\S"}}})();hljs.registerLanguage("json",e)})(); + return hljs; })(); diff --git a/www/templates/pages/docs/install.html b/www/templates/pages/docs/install.html index 6e739b8..7b92e63 100644 --- a/www/templates/pages/docs/install.html +++ b/www/templates/pages/docs/install.html @@ -8,97 +8,84 @@

Installing Onyx

Online - Linux + Linux + MacOS Windows - MacOS + From Source

Try Online

+
+

- Onyx is available to try online for free in Onyx Playground. + Onyx is available to try online for free in the Onyx Playground. It allows you learn the syntax from examples, without installing the language onto your system.

+

+ Go to Playground +

-
-

Linux

-
-

From Source

-

- The easiest way to install Onyx on a Linux system is to clone the repository from GitHub, and then compile from source. - This is relatively simple, since Onyx does not use any fancy things in its source tree. Only C code and shell scripts. - -

    -
  1. - Clone the respository at onyx-lang/onyx. -
    git clone https://github.com/onyx-lang/onyx --depth 1
    -
  2. -
  3. - Navigate into the new "onyx" directory. -
    cd onyx
    -
  4. -
  5. - Configure the settings.sh file to suit your system needs. - If everything looks good, (or if you don't know what you are looking at), you should be good to go. -
  6. -
  7. - Run ./build.sh. - This will compile and install Onyx onto your system. - By default, the "onyx" binary will be placed in "/usr/bin", and the necessary libraries/core packages/tooling will be installed at "/usr/share/onyx". -
  8. -
  9. - Try running the "onyx help" command. You should see something like this. -
    $ onyx help
    -Onyx toolchain version v0.1.0
    -
    -The toolchain for the Onyx programming language, created by Brendan Hansen.
    -
    -Usage:
    -        onyx <subcommand>
    +
    +

    Linux / MacOS

    +
    +
    +

    + The easiest way to install Onyx on a Linux or MacOS system is to use the installation script you can find at get.onyxlang.io. + You can download and run the script in one bash command. + You will be asked to pick a WebAssembly runtime for your installation. See the compatibility and feature chart to help you decide. +

    -Subcommands: - help Shows this help message. Use "onyx help <subcommand>". - build Compiles an Onyx program into an executable. - run Compiles and runs an Onyx program, all at once. - check Checks syntax and types of an Onyx program. - watch Continuously rebuilds an Onyx program on file changes. - package Package manager
    -
  10. -
-

+
sh <(curl https://get.onyxlang.io -sSfL)
-

Future Plans

-

- In the future, Onyx may ship a ".deb" file for Debian-based distros to easily install. - While this is planned, it is not a priority at the moment. -

-

Windows

+
+

    -
  1. Download the latest Windows release folder from the Releases on GitHub.
  2. +
  3. Download the latest Windows release from the Releases on GitHub.
  4. Extract the zip file to a permanent location.
  5. Modify system environment variables.
    • -
    • Add the extracted folder to your system or user's PATH variable.
    • -
    • Make a new variable called "ONYX_PATH", and set it equal to the extracted folder path.
    • +
    • Make a new variable called ONYX_PATH, and set it equal to the extracted folder path.

    • +
    • Add the extracted folder to your user's PATH variable.

    -
  6. Log out and log back in to let system environment variable update.
  7. -
  8. Open a Command Prompt or Powershell instance, and try running "onyx help".
  9. +
  10. Log out and log back in to let system environment variables update.
  11. +
  12. Open a Command Prompt or Powershell instance, and try running onyx.

-
-

MacOS

+
+

From Source

+
+ +

- MacOS support is not being actively worked on at the moment. In theory, if the compiler would work on MacOS, WebAssembly binaries would have no problem running using Wasmer, Wasmtime, or a similar runtime. Onyx is always open for contributions from others on its pull requests. + Building Onyx from source is easy. If you want to use the Wasmer runtime, you will need to have Wasmer installed. See their installation instructions for details.

+ +

To build on Linux or MacOS, run the following commands.

+
# Download Onyx.
+git clone https://github.com/onyx-lang/onyx --depth 1
+cd onyx
+# Load settings used for compilation. Change these settings if you would like.
+source settings.sh
+# Compile and install Onyx.
+./build.sh compile install
+ +

To build on Windows, run the following commands.

+
REM Ensure cl.exe is able to run in the current prompt.
+REM Download Onyx.
+git clone https://github.com/onyx-lang/onyx --depth 1
+cd onyx
+REM Run the build script. The Onyx executable will be in the current directory.
+build.bat
diff --git a/www/templates/pages/docs/setup.html b/www/templates/pages/docs/setup.html index eded8c3..0991567 100644 --- a/www/templates/pages/docs/setup.html +++ b/www/templates/pages/docs/setup.html @@ -10,11 +10,11 @@

The following sections will help set up an environment for you to program Onyx effectively.

- LSP - Vim / Neovim VS Code + Vim / Neovim Sublime text Emacs + Language Server

@@ -22,26 +22,98 @@

-
-

Language Server

+ +
+

Visual Studio Code

+
+

- If you are unfamiliar, a Language Server abstracts the tooling and language specific functionality out of editors and into a reusable component. - This way, it is easier to develop in-editor functionality across multiple editors, as the same work does not need to be replicated for each supported editor. + VS Code Extension

- At the time of writing, the language server for onyx (onyx-lsp), is only supported on Linux. - This will be addressed soon. + Onyx has an official published extension on the Visual Studio Marketplace. + Search "Onyx Programming Language" in the extensions panel or install from the marketplace.

-

Installing the Language Server

+

Alternatively, you can follow these steps to install the extension from the VSIX file included in the Onyx distribution.

    -
  1. On Linux or Windows Subsystem for Linux, clone the onyx-lsp repository.
  2. -
  3. Go into the run_tree folder.
  4. -
  5. Run chmod +x onyx-lsp install, then ./install.
  6. -
  7. Test the installation by running onyx-lsp. If the command is found and running, you're good to go.
  8. +
  9. Hit "Control+Shift+P" on Windows/Linux, or "Command+Shift+P" on MacOS.
  10. +
  11. Search for and select "Extensions: Install from VSIX".
  12. +
  13. Go to your ONYX_PATH and select the .vsix file in the misc folder.

  14. +
  15. Restart VS Code.
+

This extension does have support for the onyx lsp, assuming that is setup. +

+ +
+

Vim / Neovim

+
+
+

+ Vim Plugin +

+ +

+ Follow the instructions on the onyx.vim GitHub repo. +

+ +

+ Note, that this extension currently does not setup the LSP. + That must be done separately. +

+
+ + +
+

Sublime Text

+
+
+

+ Currently, Onyx does not have a published package on Sublime Text's Package Control, but like VS Code, you are able to install it manually. +

+

+ In the misc folder of your installation, there is a file called onyx.sublime-syntax. Simply copy this into the Packages/User folder for Sublime Text. See more details here. +

+
+ +
+

Emacs

+
+
+

+ Currently, Onyx does not have a published package for Emacs. +

+ +

+ However, in the misc folder, there is an Emacs Lisp file that provides an onyx-mode. + You should be able to load it into your Emacs config and enable onyx-mode to get syntax highlighting. +

+
+ +
+

Language Server

+
+
+

+ If you are unfamiliar, a Language Server abstracts the tooling and language specific functionality out of editors and into a reusable component. + This way, it is easier to develop in-editor functionality across multiple editors, as the same work does not need to be replicated for each supported editor. +

+ +

Installing the Language Server

+

On Linux, MacOS, or the Windows Subsystem for Linux, run the following commands.

+
# Clone the Onyx Language Server
+git clone https://github.com/onyx-lang/onyx-lsp
+cd onyx-lsp/run_tree
+# Make the install script executable
+chmod +x ./install
+# Install the LSP
+./install
+ +

Visual Studio Code

+

Installing the extension automatically enables the language server in VS Code.

+

Neovim

To use the language server in NeoVim, you need to have the NeoVim lspconfig package installed.

Then, you need the following in your NeoVim configuration somewhere:

@@ -50,7 +122,7 @@ local configs = require 'lspconfig.configs' configs.onyx = { default_config = { - cmd = { "onyx-lsp" }, + cmd = { "onyx", "lsp" }, filetypes = { "onyx" }, root_dir = function(filename) local utils = require "lspconfig.util" @@ -70,9 +142,6 @@ lspconfig.onyx.setup { end } -

Visual Studio Code

-

Installing the extension automatically enables the language server in VS Code.

-

Sublime Text

Install the LSP package, and add the following custom configuration. @@ -82,56 +151,13 @@ lspconfig.onyx.setup { "clients": { "onyx": { "enabled": true, - "command": ["onyx-lsp"], + "command": ["onyx", "lsp"], "selector": "source.onyx" } } }

-
-

Vim / Neovim

-

- Follow the instructions on the onyx.vim GitHub repo. -

- -

- Note, that this extension currently does not setup the LSP, and that must be done separately. -

-
- -
-

Visual Studio Code

-

- Currently, Onyx does not have a published extension for Visual Studio Code, but you are able to install it manually. In your downloaded or cloned copy of Onyx, there is a misc/vscode folder, which contains multiple versions of the Onyx extension. -

- -

To install the extension in VS Code,

-
    -
  1. Hit "Control+Shift+P" on Windows/Linux, or "Command+Shift+P" on MacOS.
  2. -
  3. Search for and select "Extensions: Install from VSIX".
  4. -
  5. Go to the downloaded copy of Onyx and select the newest version of the Onyx extension in misc/vscode. -
  6. Restart VS Code.
  7. -
- -

This extension does have support for the onyx-lsp, assuming that is setup. -

- -
-

Sublime Text

-

- Currently, Onyx does not have a published package on Sublime Text's Package Control, but like VS Code, you are able to install it manually. In the misc folder, there is a file called onyx.sublime-syntax. Simply copy this into the Packages/User folder for Sublime Text. See more details here. -

-
- -
-

Emacs

-

- Currently, Onyx does not have a published package for Emacs. In the misc folder, there is an Emacs Lisp file that provides an onyx-mode. You should be able to load it into your Emacs config and enable onyx-mode to get syntax highlighting. -

-
- - {{ endblock }} {{ extends "pages/normal_page" }} diff --git a/www/templates/pages/homepage.html b/www/templates/pages/homepage.html index 4e6c6e0..337c13d 100644 --- a/www/templates/pages/homepage.html +++ b/www/templates/pages/homepage.html @@ -1,5 +1,5 @@ {{ block "title" }} - The Onyx Programming Language + Onyx Programming Language {{ endblock }} {{ let navbar_page = "home" }} @@ -15,11 +15,14 @@
+
- Run the following command in your favorite shell on Linux or MacOS and get started with Onyx. + Install in one command, or build from source.
@@ -27,11 +30,11 @@
- Or try Onyx online and read the docs! + Alternatively, try Onyx online and read the docs!
@@ -44,7 +47,7 @@ {% partial "partials/news_listing" %}
-

Overview

+

Language Overview

@@ -71,7 +74,7 @@ factorial :: (n: i32) -> i32 {
-
+

Type Safety


@@ -96,7 +99,7 @@ main :: () {
-

Compilation

+

Fast Compilation


Onyx's compiler is written entirely in C and features incredibly fast compilation. The web-server for this website was compiled in 49 milliseconds.

@@ -118,11 +121,11 @@ Statistics:
-
+

WebAssembly


-

Onyx compiles solely to WebAssembly. You can use the builtin WebAssembly runtime using onyx run, or compile to WASM and run using a WebAssembly runner, like Wasmer or Wasmtime.

+

Onyx compiles solely to WebAssembly. You can use a builtin WebAssembly runtime using onyx run, or compile to WASM and run using a WebAssembly runner, like Wasmer or Wasmtime.

# Compile and run directly.
@@ -163,31 +166,6 @@ main :: () {
 
- - - - {{endblock}} {{extends "pages/normal_page"}} diff --git a/www/templates/partials/footer.html b/www/templates/partials/footer.html index ea8e124..1e8635d 100644 --- a/www/templates/partials/footer.html +++ b/www/templates/partials/footer.html @@ -12,13 +12,13 @@
-

Resources

+ Resources Docs News
-

Contribute

+ Contribute GitHub Issues Donate
diff --git a/www/templates/partials/news_listing.html b/www/templates/partials/news_listing.html index 129ceac..237d262 100644 --- a/www/templates/partials/news_listing.html +++ b/www/templates/partials/news_listing.html @@ -1,15 +1,17 @@ {{ foreach $article in $articles }}
- {{ endforeach }}