chore: Remove site

This commit is contained in:
Ed Page 2021-11-17 13:49:59 -06:00
parent 26cefe2ce3
commit 0168dd7350
17 changed files with 0 additions and 399 deletions

View file

@ -1,28 +0,0 @@
name: Site
on:
push:
branches: [main]
paths:
- site/**
- .github/workflows/site.yml
concurrency:
group: site
cancel-in-progress: true
jobs:
site:
name: Deploy site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
uses: shalzz/zola-deploy-action@v0.14.1
env:
BUILD_DIR: site
BUILD_ONLY: true
- name: Deploy
if: ${{ success() }}
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: site/public

1
site/.gitignore vendored
View file

@ -1 +0,0 @@
public

View file

@ -1,14 +0,0 @@
base_url = "https://clap.rs"
title = "Clap"
description = "Fast & Modern CLI Framework for Rust"
build_search_index = true
default_language = "en"
[markdown]
highlight_code = true
highlight_theme = "ayu-dark"
external_links_target_blank = true

View file

@ -1,58 +0,0 @@
+++
title = "Fast & Modern CLI Framework for Rust"
+++
**Clap** is a simple-to-use, efficient, and full-featured library for parsing command line arguments and subcommands when writing console/terminal applications.
Here is an example of a simple program:
```rust
use clap::Parser;
/// Simple program to greet a person
#[derive(Parser, Debug)]
#[clap(name = "hello")]
struct Hello {
/// Name of the person to greet
#[clap(short, long)]
name: String,
/// Number of times to greet
#[clap(short, long, default_value = "1")]
count: u8,
}
fn main() {
let hello = Hello::parse();
for _ in 0..hello.count {
println!("Hello {}!", hello.name)
}
}
```
The above example program can be run as shown below:
```
$ hello --name John --count 3
Hello John!
Hello John!
Hello John!
```
The program also has an automatically generated help message:
```
hello
Simple program to greet a person
USAGE:
hello [OPTIONS] --name <name>
OPTIONS:
-c, --count <count> Number of times to greet [default: 1]
-h, --help Print help information
-n, --name <name> Name of the person to greet
-V, --version Print version information
```

View file

@ -1,5 +0,0 @@
+++
title = "Cheatsheet"
+++
Work in progress...

View file

@ -1,5 +0,0 @@
+++
title = "Cookbook"
+++
Work in progress...

View file

@ -1 +0,0 @@
clap.rs

View file

@ -1,185 +0,0 @@
html {
background: #211f1a;
color: #f5f5f5;
font-size: 16px;
font-family: 'Raleway', sans-serif;
}
.maxview {
max-width: 1440px;
width: 100%;
margin: auto;
}
.maxview article, .maxview section {
max-width: 1200px;
width: 100%;
margin: auto;
}
header {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
padding: 1.5rem 2.5rem;
box-sizing: border-box;
}
nav {
padding: 1.25rem 0;
}
nav a {
font-size: 20px;
line-height: 50px;
margin-left: 1.25rem;
}
nav a:hover, nav a:focus {
border-bottom: 1px dashed rgb(255,168,106);
}
#nav-btn, #nav-check {
display: none;
}
@media (max-width: 767px) {
header {
padding: 0 0 1.5rem;
}
#nav-btn {
display: inline-block;
position: absolute;
right: 0;
top: 0;
}
#nav-btn label {
display: inline-block;
width: 50px;
height: 46px;
padding: 1.5rem 1.25rem 1rem;
}
#nav-btn span {
display: block;
width: 50px;
height: 16px;
border-top: 2px solid rgb(255, 168, 106);
}
.nav {
position: absolute;
display: block;
width: 100%;
box-sizing: border-box;
height: 0;
transition: all 0.3s ease-in;
overflow-y: hidden;
top: 90px;
left: 0px;
padding: 0;
background: #FBF5F3;
}
nav a {
display: block;
margin: 0;
text-align: center;
}
#nav-check:not(:checked) ~ .nav {
height: 0px;
}
#nav-check:checked ~ .nav {
height: auto;
overflow-y: auto;
}
}
footer {
text-align: center;
padding: 2.5rem 0;
background: #211f1a;
color: rgba(255, 168, 106, .7);
}
footer a, #content a {
font-weight: bold;
}
#content {
padding: 1.25rem 2.5rem 3rem;
min-height: calc(100vh - 10.5rem - 18px - 50px);
box-sizing: border-box;
}
pre {
font-family: 'Raleway', monospace;
font-size: 0.9rem;
line-height: 1.2rem;
padding: 1.5rem;
margin-bottom: 30px;
overflow-x:auto;
}
@media (max-width: 767px) {
#content {
padding: 1.25rem 0.5rem 3rem;
width: 100% !important;
}
}
a {
color: rgb(255, 168, 106);
text-decoration: none;
}
p {
margin-bottom: 30px;
line-height: 30px;
}
h1, h2, h3, h4 {
margin-bottom: 20px;
font-family: 'Lato', sans-serif;
color: rgb(255, 168, 106);
}
h1 {
font-size: 2.5rem;
font-weight: 600;
}
h2 {
font-size: 1.75rem;
font-weight: 500;
}
h3 {
font-size: 1.25rem;
font-weight: 500;
}
h4 {
font-size: 1rem;
font-weight: 500;
}
.anchor {
font-weight: 300 !important;
opacity: 0.75;
font-size: 1.75rem;
}
.anchor.level-3 {
font-size: 1.25rem;
margin: 0 0.25rem;
}
.anchor.level-4 {
font-size: 1rem;
margin: 0 0.375rem;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

View file

View file

@ -1,3 +0,0 @@
<script>
window.location = '{{ config.base_url | safe }}';
</script>

View file

@ -1 +0,0 @@
<a href="#{{ id }}" class="anchor level-{{ level }}">#</a>

View file

@ -1,15 +0,0 @@
{% extends "shared/base.html" %}
{% block title %}{{ section.title }}{% endblock title %}
{% block content %}
{% include "shared/header.html" %}
<main id="content" class="maxview">
<article>
<h1 class="post-title">{{ section.title }}</h1>
{{ section.content | safe }}
</article>
</main>
{% endblock content %}

View file

@ -1,15 +0,0 @@
{% extends "shared/base.html" %}
{% block title %}{{ page.title }}{% endblock title %}
{% block content %}
{% include "shared/header.html" %}
<main id="content" class="maxview">
<article>
<h1 class="post-title">{{ page.title }}</h1>
{{ page.content | safe }}
</article>
</main>
{% endblock content %}

View file

@ -1,43 +0,0 @@
<!DOCTYPE html>
<html lang="{{ lang }}">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Language" content="{{ lang }}" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ config.title }} &middot; {% block title %}{% endblock title %}</title>
<meta name="description" content="{{ config.description }}" />
<link href="{{ config.base_url | safe }}/atom.xml" rel="alternate" type="application/atom+xml" title="{{ config.title }}" />
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="canonical" href="{{ current_url | safe }}" />
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/pure/2.0.3/base.min.css" integrity="sha512-AdMpi0OeNfx52R5VxegHFzDqd3HcfbRITcA1PwibceRawcsRM1grQbHrFA3SJ73oilitvIgw1jl0y7AbOySm5g==" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Raleway:wght@400&display=swap">
<link rel="stylesheet" type="text/css" href="{{ config.base_url | safe }}/css/app.css">
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="{{ config.base_url | safe }}/js/app.js"></script>
{% block head %}{% endblock head %}
</head>
<body>
{% block content %}{% endblock content %}
<footer>
<section>&copy; {{ config.title }}. All rights reserved. Powered by <a href="http://getzola.org" target="_blank">Zola</a>.</section>
</footer>
</body>
</html>

View file

@ -1,12 +0,0 @@
<header class="maxview">
<input type="checkbox" id="nav-check" />
{% include "shared/logo.html" %}
<nav class="nav">
<a href="/cheatsheet">Cheatsheet</a>
<a href="/cookbook">Cookbook</a>
<a href="https://docs.rs/clap" target="_blank">Reference</a>
<a href="https://github.com/clap-rs/clap" target="_blank">Code</a>
</nav>
</header>

View file

@ -1,13 +0,0 @@
<div>
<a href="/" id="logo">
<img src="{{ config.base_url | safe }}/images/media/clap.png" width="90" height="90"></img>
</a>
<div id="nav-btn">
<label for="nav-check">
<span></span>
<span></span>
<span></span>
</label>
</div>
</div>