From: Brendan Hansen Date: Mon, 27 Nov 2023 16:51:34 +0000 (-0600) Subject: updated packages page X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=2869b6c656bf96b64dd19a1baeb8bfb269b69531;p=onyxlang.io.git updated packages page --- diff --git a/onyx-pkg.kdl b/onyx-pkg.kdl index f2f4f56..39c4be7 100644 --- a/onyx-pkg.kdl +++ b/onyx-pkg.kdl @@ -13,7 +13,7 @@ config { dependencies { http-server "0.2.24" git="git://repo.onyxlang.io/repo/http-server" - otmp "0.0.26" git="git://repo.onyxlang.io/repo/otmp" + otmp "0.0.27" git="git://repo.onyxlang.io/repo/otmp" } build { diff --git a/www/packages/core_packages.json b/www/packages/core_packages.json index 545e49b..45e878e 100644 --- a/www/packages/core_packages.json +++ b/www/packages/core_packages.json @@ -2,86 +2,86 @@ { "name": "http-server", "url": "https://github.com/onyx-lang/pkg-http-server", - "description": "" + "description": "A simple HTTP Server package inspired by ExpressJS and Flask. Works on the Onyx runtime and WASIX." }, { "name": "raylib", "url": "https://github.com/onyx-lang/pkg-raylib", - "description": "" + "description": "Bindings for the popular Raylib video game library." }, { "name": "stb_image", "url": "https://github.com/onyx-lang/pkg-stb_image", - "description": "" + "description": "Bindings for the stb_image.h C library. Only absolutely necessary functions are currently implemented." }, { "name": "stb_truetype", "url": "https://github.com/onyx-lang/pkg-stb_truetype", - "description": "" + "description": "Bindings for the stb_truetype.h C library. Only absolutely necessary functions are currently implemented." }, { "name": "perlin", "url": "https://github.com/onyx-lang/pkg-perlin", - "description": "" + "description": "A very simple implementation of the 3d-perlin noise algorithm." }, { "name": "postgres", "url": "https://github.com/onyx-lang/pkg-postgres", - "description": "" + "description": "Bindings for libpq." }, { "name": "postgres-orm", "url": "https://github.com/onyx-lang/pkg-postgres-orm", - "description": "" + "description": "A simple Object Relational Mapper for a PostgresQL database." }, { "name": "qoi", "url": "https://github.com/onyx-lang/pkg-qoi", - "description": "" + "description": "An implementation of the Quite OK image format. Currently only the decoder is implemented." }, { "name": "http-client", "url": "https://github.com/onyx-lang/pkg-http-client", - "description": "" + "description": "An HTTP client capable of sending HTTP(S)/1.1 requests." }, { "name": "openssl", "url": "https://github.com/onyx-lang/pkg-openssl", - "description": "" + "description": "Bindings for openssl." }, { "name": "glfw3", "url": "https://github.com/onyx-lang/pkg-glfw3", - "description": "" + "description": "Bindings for GLFW3." }, { "name": "openal", "url": "https://github.com/onyx-lang/pkg-openal", - "description": "" + "description": "Bindings for OpenAL." }, { "name": "opengles", "url": "https://github.com/onyx-lang/pkg-opengles", - "description": "" + "description": "Bindings for OpenGL ES 3.2." }, { "name": "opencl", "url": "https://github.com/onyx-lang/pkg-opencl", - "description": "" + "description": "Bindings for OpenCL." }, { "name": "ncurses", "url": "https://github.com/onyx-lang/pkg-ncurses", - "description": "" + "description": "Bindings for the ncurses library." }, { "name": "json-rpc", "url": "https://github.com/onyx-lang/pkg-json-rpc", - "description": "" + "description": "A simple JSON-RPC server implementation. Used by the Onyx langauge server." }, { "name": "otmp", "url": "https://github.com/onyx-lang/pkg-otmp", - "description": "" + "description": "A string templating language, similar to Jinja or Mustache." } ] diff --git a/www/static/css/new_style.css b/www/static/css/new_style.css index b46df35..370d5e8 100644 --- a/www/static/css/new_style.css +++ b/www/static/css/new_style.css @@ -340,6 +340,7 @@ navbar a { display: block; padding: 2px 0; text-decoration: none; + color: var(--accent); } diff --git a/www/templates/pages/docs/guide_http_server.html b/www/templates/pages/docs/guide_http_server.html index d7a8c97..8d8cca2 100644 --- a/www/templates/pages/docs/guide_http_server.html +++ b/www/templates/pages/docs/guide_http_server.html @@ -10,8 +10,7 @@

This guide walks you through all steps of setting up an HTTP server Onyx, - writing some routes on it, and then deploying it to Wasmer Edge or Spin - using WCGI. + writing some routes on it, and then deploying it to Wasmer Edge using WCGI.

@@ -51,7 +50,7 @@ onyx package sync

You can now write the code for your server. Begin by creating a main.onyx file that will house your code. - In this file, you first need to load your packages and use http package. + In this file, you first need to load your packages and use the http package.

#load "./lib/packages"
@@ -65,7 +64,7 @@ use http.server { Request, Response, route }

Now you write a simple main function that will create a TCP HTTP server, - with one route for the getting "/" endpoint. + with one route for getting the "/" endpoint.

main :: () {
diff --git a/www/templates/pages/docs/package.html b/www/templates/pages/docs/package.html
index bd37c4d..389a7ec 100644
--- a/www/templates/pages/docs/package.html
+++ b/www/templates/pages/docs/package.html
@@ -37,7 +37,7 @@
     

- When you publish a package, using onyx package publish it simply increments the version number in the package file, + When you publish a package using onyx package publish, it simply increments the version number in the package file, commits that change, creates a new tag at that commit, and pushes all changes and tags to the Git server. When someone else runs onyx package update, the new version will be found and updated to.

diff --git a/www/templates/pages/docs/package_list.html b/www/templates/pages/docs/package_list.html index 9c71266..4dd1496 100644 --- a/www/templates/pages/docs/package_list.html +++ b/www/templates/pages/docs/package_list.html @@ -7,6 +7,11 @@

Package Listing

⇦ Back to the docs
+ +

+ This list serves as the official package index for the time being. + When more packages exist, a proper package repository and index will be made. +

diff --git a/www/templates/pages/homepage.html b/www/templates/pages/homepage.html index b226678..53dbc48 100644 --- a/www/templates/pages/homepage.html +++ b/www/templates/pages/homepage.html @@ -3,6 +3,7 @@ {{ endblock }} {{ let navbar_page = "home" }} +{{ let navbar_logo_hidden = true }} {{ block "page_content" }} diff --git a/www/templates/partials/navbar.html b/www/templates/partials/navbar.html index e434247..2bc6b48 100644 --- a/www/templates/partials/navbar.html +++ b/www/templates/partials/navbar.html @@ -1,6 +1,8 @@