Compare commits

..

No commits in common. "9fefd7b53c94d41902eeab62f6f35190d5cd6f56" and "00d7942e1c8072a4ccec648831773d6b10e60d48" have entirely different histories.

13 changed files with 64 additions and 126 deletions

View File

@ -7,17 +7,17 @@ theme = 'hsh'
[[menu.nav]]
identifier = 'home'
name = 'Home'
pageref = '/'
url = '/'
weight = 1
[[menu.nav]]
identifier = 'install'
name = 'Install'
pageref = '/install'
url = '/install'
weight = 2
[[menu.nav]]
identifier = 'docs'
name = 'Docs'
pageref = '/docs'
url = '/docs'
weight = 3
[markup.goldmark.renderer]

View File

@ -1,7 +0,0 @@
---
title: Introduction
layout: doc
weight: -1
---
Hello!

View File

@ -1,24 +0,0 @@
---
title: Frequently Asked Questions
layout: doc
weight: -20
---
# Is Hilbish POSIX compliant?
No, it is not. POSIX compliance is a non-goal. Perhaps in the future,
someone would be able to write a native plugin to support shell scripting
(which would be against it's main goal, but ....)
# Windows Support?
It compiles for Windows (CI ensures it does), but otherwise it is not
directly supported. If you'd like to improve this situation,
checkout [the discussion](https://github.com/Rosettea/Hilbish/discussions/165).
# Where is the API documentation?
The builtin `doc` command supplies all documentation of Hilbish provided
APIs. This will be on the website in the near future.
# Why?
Hilbish emerged from the desire of a Lua configured shell.
It was the initial reason that it was created, but now it's more:
to be hyper extensible, simpler and more user friendly.

View File

@ -1,5 +0,0 @@
---
title: Getting Started
layout: doc
weight: -10
---

View File

@ -11,7 +11,7 @@ For official stable releases, check out the latest [Github release.](https://git
Hilbish is packaged in a *few* repositories for some distros.
## Arch Linux (AUR)
Hilbish is on the AUR. Setup an AUR helper, and install.
Hilbihs is on the AUR. Setup an AUR helper, and install.
Example with yay:
```

View File

@ -1,6 +1,6 @@
<h{{ (add .Level 1) }} id="{{ .Anchor | safeURL }}">
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
{{ .Text | safeHTML }}
</h{{ (add .Level 1) }}>
</h{{ .Level }}>
{{ if eq .Text ""}}
<hr>
{{ end }}

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body style="overflow-x: hidden;">
<body class="d-flex flex-column h-100">
{{- partial "header.html" . -}}
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}

View File

@ -1,25 +0,0 @@
{{ define "main" }}
<div class="container mt-auto mt-auto py-3 row">
<div class="container" style="width: 240px;">
<div class="p-3 col">
<ul class="nav nav-pills mb-auto">
{{ $currentPage := . }}
{{ range where site.Pages.ByWeight.Reverse "Type" "docs" }}
<li class="nav-item">
<a href="{{ .Permalink }}" class="nav-link">
{{ .Title }}
</a>
</li>
{{ end }}
</ul>
</div>
</div>
<div class="col">
<div>
<h1>{{ .Title }}</h1>
{{.Content}}
</div>
</div>
</div>
{{ end }}

View File

@ -1,7 +1,8 @@
{{ define "main" }}
<main>
<div class="container mt-2">
<div class="text-center container my-5">
{{.Content}}
</div>
</main>
{{ end }}

View File

@ -1,8 +1,4 @@
{{ define "main" }}
<main>
<div class="container mt-2">
<h1>{{ .Title }}</h1>
{{.Content}}
</div>
</main>
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ end }}

View File

@ -1,29 +1,31 @@
<footer class="footer fixed-bottom mt-auto mt-auto py-3 bg-light row">
<div class="col mb-3">
</div>
<div class="container">
<footer class="row py-5 my-5">
<div class="col mb-3">
<a href="/" class="d-flex align-items-center mb-3 link-dark text-decoration-none">
<img src="/Hilbish/hilbish-flower.png" alt="" height="48" class="d-inline-block align-text-top">
</a>
<p class="text-muted">Rosettea &copy; 2022</p>
<p class="text-muted">Made with <i class="fa-solid fa-heart" style="color: #f6345b;"></i></p>
</div>
<div class="col mb-3">
<a href="/" class="d-flex align-items-center mb-3 link-dark text-decoration-none">
<img src="/Hilbish/hilbish-flower.png" alt="" height="48" class="d-inline-block align-text-top">
</a>
<p class="text-muted">Rosettea &copy; 2022</p>
<p class="text-muted">Made with <i class="fa-solid fa-heart" style="color: #f6345b;"></i></p>
</div>
<div class="col mb-3">
</div>
<div class="col mb-3"></div>
<div class="col mb-3"></div>
<div class="col mb-3"></div>
<div class="col mb-3">
</div>
<div class="col mb-3">
<h5>Hilbish</h5>
<ul class="nav flex-column">
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Home</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">FAQ</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Source</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Releases</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Documentation</a></li>
</ul>
</div>
<div class="col mb-3">
</div>
<div class="col mb-3"></div>
</footer>
<div class="col mb-3">
<h5>Hilbish</h5>
<ul class="nav flex-column">
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Home</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">FAQ</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Source</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Releases</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Documentation</a></li>
</ul>
</div>
</footer>
</div>

View File

@ -1,5 +1,5 @@
<head>
{{ $title := print .Title " " .Site.Title }}
{{ $title := print .Title " | " .Site.Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
@ -19,7 +19,7 @@
<meta property="og:locale" content="en_GB" />
<link rel="canonical" href="https://rosettea.github.io/Hilbish/" />
<meta property="og:url" content="https://rosettea.github.io/Hilbish/" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />

View File

@ -1,25 +1,25 @@
<header>
<nav class="navbar navbar-expand-md sticky-top bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="/Hilbish">
<img src="/Hilbish/hilbish-flower.png" alt="" height="24" class="d-inline-block align-text-top">
Hilbish
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
{{ $currentPage := . }}
{{ range .Site.Menus.nav }}
<li class="nav-item">
<a href="{{ .URL }}" class="nav-link {{ if $currentPage.IsMenuCurrent "nav" . }}active{{ end }}">
{{ .Name }}
</a>
</li>
{{ end }}
</ul>
</div>
</div>
</nav>
<header class="site-header sticky-top py-1">
<nav class="navbar navbar-expand-lg bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src="/Hilbish/hilbish-flower.png" alt="" height="24" class="d-inline-block align-text-top">
Hilbish
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
{{ $currentPage := . }}
{{ range .Site.Menus.nav }}
<li class="nav-item">
<a href="{{ .URL }}" class="nav-link {{ if $currentPage.HasMenuCurrent "nav" . }}active{{ end }}">
{{ .Name }}
</a>
</li>
{{ end }}
</ul>
</div>
</div>
</nav>
</header>