updated packages page
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 27 Nov 2023 16:51:34 +0000 (10:51 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Mon, 27 Nov 2023 16:51:34 +0000 (10:51 -0600)
onyx-pkg.kdl
www/packages/core_packages.json
www/static/css/new_style.css
www/templates/pages/docs/guide_http_server.html
www/templates/pages/docs/package.html
www/templates/pages/docs/package_list.html
www/templates/pages/homepage.html
www/templates/partials/navbar.html

index f2f4f56c1260c8e5ec11fb7c227446982ae0091f..39c4be7c55ba80870bafd8600a41a13648d956b8 100644 (file)
@@ -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 {
index 545e49bb1d9802a2730d82094fb957c6e0f39290..45e878e1ddba1450bd0c6105ce8ae122f27485f0 100644 (file)
@@ -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 <a href=\"https://github.com/nothings/stb\">stb_image.h</a> 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 <a href=\"https://github.com/nothings/stb\">stb_truetype.h</a> 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 <code>libpq</code>."
     },
     {
         "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 <code>openssl</code>."
     },
     {
         "name": "glfw3",
         "url": "https://github.com/onyx-lang/pkg-glfw3",
-        "description": ""
+        "description": "Bindings for <a href=\"https://glfw.org\">GLFW3</a>."
     },
     {
         "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 <code>ncurses</code> 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."
     }
 ]
index b46df353597237b30789390fc7ce813d247c5441..370d5e8ada62441ad2707b9f07c0fd759246acad 100644 (file)
@@ -340,6 +340,7 @@ navbar a {
     display: block;
     padding: 2px 0;
     text-decoration: none;
+    color: var(--accent);
 }
 
 
index d7a8c978e68c85a092e19fc39715eba40d0a8da8..8d8cca2727bb77f549b9a900a64e3243551b8001 100644 (file)
@@ -10,8 +10,7 @@
 
     <p>
         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.
     </p>
 </div>
 
@@ -51,7 +50,7 @@ onyx package sync</code></pre>
     <p>
         You can now write the code for your server.
         Begin by creating a <code>main.onyx</code> file that will house your code.
-        In this file, you first need to load your packages and use <code>http</code> package.
+        In this file, you first need to load your packages and use the <code>http</code> package.
     </p>
 
     <pre class="hljs"><code class="language-onyx">#load "./lib/packages"
@@ -65,7 +64,7 @@ use http.server { Request, Response, route }</code></pre>
 
     <p>
         Now you write a simple <code>main</code> function that will create a TCP HTTP server,
-        with one route for the getting <code>"/"</code> endpoint.
+        with one route for getting the <code>"/"</code> endpoint.
     </p>
 
     <pre class="hljs"><code class="language-onyx">main :: () {
index bd37c4dec0393f527557f4714f73b76ed364d094..389a7ece151a4335e153e69bcf5390c1a92e4623 100644 (file)
@@ -37,7 +37,7 @@
     </p>
 
     <p>
-        When you publish a package, using <code>onyx package publish</code> it simply increments the version number in the package file,
+        When you publish a package using <code>onyx package publish</code>, 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 <code>onyx package update</code>, the new version will be found and updated to.
     </p>
index 9c7126691778981c9e6de793cfcca6c9dd083c19..4dd1496d703e636124e0dacf5b113e360f3c6361 100644 (file)
@@ -7,6 +7,11 @@
 <div class="container header">
     <h1>Package Listing</h1>
     <div>⇦ <a href="/docs">Back to the docs</a></div>
+
+    <p>
+        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.
+    </p>
 </div>
 
 <div class="container">
index b2266785cd05056bc2aa94b5975c16ddf431aac4..53dbc48706b21c26b071c6d2eebc58d221bf33e9 100644 (file)
@@ -3,6 +3,7 @@
 {{ endblock }}
 
 {{ let navbar_page = "home" }}
+{{ let navbar_logo_hidden = true }}
 
 {{ block "page_content" }}
 
index e434247ad5593b52e592d0e38c68eaa844d42138..2bc6b4839e528ad41d1af7ed4fbe7914cf808015 100644 (file)
@@ -1,6 +1,8 @@
 
 <div class="navbar-container">
     <navbar>
+        {{ if navbar_logo_hidden == true }}
+        {{ else }}
         <a href="/" aria-label="Go to the homepage">
             <svg viewBox="0 0 64 16" version="1.1" id="desktop_logo" alt="Onyx Logo">
                 {% partial "partials/logo_svg" %}
@@ -9,6 +11,7 @@
                 {% partial "partials/logo_svg" %}
             </svg>
         </a>
+        {{ endif }}
 
         <input type="checkbox" id="mobile-hamburger" />
         <span class='hamburger'>