Compare commits

...

6 Commits

Author SHA1 Message Date
avitex 94b119c217
add CNAME 2021-01-21 00:51:35 +11:00
avitex 87ee1311c6
improve project page 2021-01-21 00:48:43 +11:00
avitex 6ee12508b3
change workflow name 2021-01-21 00:33:48 +11:00
avitex 0276c114b1
update license 2021-01-21 00:25:56 +11:00
avitex 31431644d2
move to github actions 2021-01-21 00:25:44 +11:00
avitex 0a2ffbf403
update projects 2021-01-21 00:19:59 +11:00
8 changed files with 104 additions and 65 deletions

17
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: build
on:
push:
branches:
- source
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and deploy
uses: shalzz/zola-deploy-action@v0.12.0
env:
PAGES_BRANCH: master
BUILD_DIR: .
TOKEN: ${{ secrets.TOKEN }}

View File

@ -1,18 +0,0 @@
dist: bionic
language: minimal
before_script:
# Download and unzip the zola executable
- curl -s -L https://github.com/getzola/zola/releases/download/v0.10.1/zola-v0.10.1-x86_64-unknown-linux-gnu.tar.gz | sudo tar xvzf - -C /usr/local/bin
script:
- zola check && zola build
after_success: |
[ $TRAVIS_BRANCH = source ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
zola check &&
zola build &&
sudo pip install ghp-import &&
ghp-import -m "build ${TRAVIS_COMMIT}" -c 1bit.pw -n public -b master &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git master

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2018-2020 James Dyson
Copyright (c) 2018-2021 James Dyson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -3,20 +3,20 @@ base_url = "https://1bit.pw"
description = "Home of avitex"
compile_sass = true
highlight_code = true
highlight_theme = "1337"
build_search_index = true
generate_rss = true
taxonomies = [
{name = "blog/tags", rss = true},
]
taxonomies = [{ name = "blog/tags", rss = true }]
[markdown]
highlight_code = true
highlight_theme = "1337"
[link_checker]
skip_prefixes = [
"https://play.esea.net",
"https://letsplay.live",
"https://twitter.com"
"https://twitter.com",
]
[extra]
@ -25,25 +25,22 @@ author = "avitex"
[[extra.main_menu]]
name = "Blog"
url = "/blog"
sub = [
{name = "Latest", url = "/blog"},
{name = "Tags", url = "/blog/tags"}
]
sub = [{ name = "Latest", url = "/blog" }, { name = "Tags", url = "/blog-tags" }]
[[extra.main_menu]]
name = "Projects"
url = "/projects"
sub = [
{name = "Rust", url = "#rust"},
{name = "Elixir", url = "#elixir"},
{name = "Github", url = "https://github.com/avitex"}
{ name = "Rust", url = "#rust" },
{ name = "Elixir", url = "#elixir" },
{ name = "Github", url = "https://github.com/avitex" },
]
[[extra.main_menu]]
name = "About"
url = "/about"
sub = [
{name = "Overview", url = "/about"},
{name = "Bio", url = "/about/bio"},
{name = "Social", url = "/about/social"}
]
{ name = "Overview", url = "/about" },
{ name = "Bio", url = "/about/bio" },
{ name = "Social", url = "/about/social" },
]

View File

@ -1,4 +1,4 @@
status = { experimental = "red", development = "orange", published = "green" }
status = { experimental = "red", development = "orange", hibernation = "inactive", maintained = "green" }
###############################################################################
# Rust
@ -6,80 +6,98 @@ status = { experimental = "red", development = "orange", published = "green" }
[project.rust-badgen]
lang = "rust"
crate = "badgen"
status = "published"
status = "hibernation"
github = "avitex/rust-badgen"
ci = false
published = true
[project.rust-dangerous]
lang = "rust"
crate = "dangerous"
status = "published"
status = "maintained"
github = "avitex/rust-dangerous"
ci = true
published = true
[project.rust-zc]
lang = "rust"
crate = "zc"
status = "published"
status = "maintained"
github = "avitex/rust-zc"
ci = true
published = true
[project.rust-aliasable]
lang = "rust"
crate = "aliasable"
status = "published"
status = "maintained"
github = "avitex/rust-aliasable"
ci = true
published = true
[project.rust-arae]
lang = "rust"
crate = "arae"
status = "experimental"
github = "avitex/rust-arae"
ci = false
published = true
[project.rust-dnscat]
lang = "rust"
crate = "dnscat"
status = "published"
status = "development"
github = "avitex/rust-dnscat"
ci = false
published = true
[project.rust-public-ip]
lang = "rust"
crate = "public-ip"
status = "published"
status = "maintained"
github = "avitex/rust-public-ip"
ci = false
published = true
[project.mdbook-tera]
lang = "rust"
crate = "mdbook-tera"
status = "published"
status = "maintained"
github = "avitex/mdbook-tera"
[project.rust-xlff]
lang = "rust"
crate = "xlff"
status = "development"
github = "avitex/rust-xlff"
ci = false
published = true
[project.rust-abuseipdb]
lang = "rust"
crate = "abuseipdb"
status = "published"
status = "maintained"
github = "avitex/rust-abuseipdb"
ci = false
published = true
[project.rust-aliasable-deref-trait]
lang = "rust"
crate = "aliasable_deref_trait"
status = "published"
status = "maintained"
github = "avitex/rust-aliasable-deref-trait"
ci = false
published = true
[project.rust-feast]
lang = "rust"
crate = "feast"
status = "experimental"
github = "avitex/rust-feast"
ci = false
published = true
[project.battlelayer]
lang = "rust"
crate = "battlelayer"
status = "development"
status = "hibernation"
github = "avitex/battlelayer"
ci = false
published = false
###############################################################################
# Elixir
@ -87,29 +105,39 @@ github = "avitex/battlelayer"
[project.elixir-glicko]
lang = "elixir"
hex = "glicko"
status = "published"
status = "maintained"
github = "avitex/elixir-glicko"
ci = false
published = true
[project.elixir-rcon]
lang = "elixir"
hex = "rcon"
status = "published"
status = "maintained"
github = "avitex/elixir-rcon"
ci = false
published = true
[project.elixir-vultr]
lang = "elixir"
hex = "vultr"
status = "published"
status = "hibernation"
github = "avitex/elixir-vultr"
ci = false
published = true
[project.elixir-gitlab]
lang = "elixir"
hex = "gitlab"
status = "development"
status = "hibernation"
github = "avitex/elixir-gitlab"
ci = false
published = false
[project.typed-struct-cast]
lang = "elixir"
hex = "typed-struct-cast"
status = "development"
status = "hibernation"
github = "avitex/typed-struct-cast"
ci = false
published = false

1
static/CNAME Normal file
View File

@ -0,0 +1 @@
1bit.pw

View File

@ -28,8 +28,8 @@
{%- endif -%}
{% endmacro meta_desc %}
{% macro status_badge(status, desc, link, color) %}
{{ self::badge(type="badge", scope="status-" ~ status ~ "-" ~ color, desc=desc, link=link) }}
{% macro status_badge(status, desc, link, color, label="status") %}
{{ self::badge(type="badge", scope=label ~ "-" ~ status ~ "-" ~ color, desc=desc, link=link) }}
{% endmacro status_badge %}
{% macro badge(type, scope, desc, link) %}

View File

@ -7,29 +7,43 @@
<th>Links</th>
<th>Package</th>
<th>Maintenance</th>
<th>Status</th>
<th>Issues</th>
<th>Pull Requests</th>
<th>Builds</th>
</tr>
</thead>
<tbody>
{% for project_name, project in data.project %}
{% for project_name, project in data.project %}
{% if project.lang == lang %}
<tr>
<td><code>{{ project_name }}</code></td>
<td><a href="https://github.com/{{ project.github }}">github</a></td>
<td>
{% if project.crate %}
{% if project.crate and project.published %}
{{ macros::badge(type="crates/v", scope=project.crate, desc="Rust crate", link="https://crates.io/crates/" ~ project.crate) }}
{% endif %}
{% if project.hex %}
{% if project.hex and project.published %}
{{ macros::badge(type="hexpm/v", scope=project.hex, desc="Hex package", link="https://hex.pm/packages/" ~ project.hex) }}
{% endif %}
{% if not project.published %}
Not published
{% endif %}
</td>
<td>
{{ macros::status_badge(status=project.status, color=data.status[project.status], desc="Project status", link=false) }}
</td>
<td>
{{ macros::badge(type="github/issues", scope=project.github, desc="Github issues", link="https://github.com/" ~ project.github ~ "/issues") }}
{{ macros::badge(type="travis/com", scope=project.github ~ "/master", desc="Build status", link="https://travis-ci.com/" ~ project.github) }}
</td>
<td>
{{ macros::badge(type="github/issues-pr", scope=project.github, desc="Github PRs", link="https://github.com/" ~ project.github ~ "/pulls") }}
</td>
<td>
{% if project.ci %}
{{ macros::badge(type="github/workflow/status", scope=project.github ~ "/build", desc="Build status", link="https://github.com/" ~ project.github ~ "/actions?query=workflow:build") }}
{% else %}
{{ macros::status_badge(label="build", status="unknown", color="inactive", desc="Build status", link=false) }}
{% endif %}
</td>
</tr>
{% endif %}