Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "_docs"]
path = _docs
url = https://github.com/scorbett123/docs.git
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would need to be changed to a custom docs repo, however I thought that a submodule would mean that the docs could be separated out meaning that they are easier to contribute to.

2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
kamiblue.org
lambda-client.com
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ISC License

Copyright (c) 2020, kami-blue
Copyright (c) 2020, lambda-client

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
source 'https://rubygems.org'

gemspec

gem "webrick", "~> 1.7"
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<img src="https://github.com/kami-blue/assets/blob/assets/assets/icons/kami.svg" align="left" width="120"/>
<img src="https://github.com/lambda-client/assets/blob/assets/assets/icons/Lambda.png" align="left" width="120"/>

# Website for kami-blue/client
# Website for lambda-client/client

### A Minecraft utility mod for anarchy servers.

https://kamiblue.org
https://lambda-client.com

### API

Be sure to check https://kamiblue.org/download for the latest API version, in case this is out of date
Be sure to check https://lambda-client.com/download for the latest API version, in case this is out of date

https://kamiblue.org/api/v1/downloads.json
https://https://lambda-client.com/download/api/v1/downloads.json

32 changes: 25 additions & 7 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,38 @@
title: KAMI Blue
title: lambda-client
description: A Minecraft utility mod for anarchy servers
show_downloads: true
google_analytics: UA-157505961-1
github:
repository_url: https://github.com/kami-blue/client
website_url: https://github.com/kami-blue/website
jar_url: https://github.com/kami-blue/client/releases/download/2.04.01/kamiblue-2.04.01.jar
jar_sig_url: https://github.com/kami-blue/client/releases/download/2.04.01/kamiblue-2.04.01.jar.sig
beta_jar_url: https://github.com/kami-blue/nightly-releases/releases/download/2.04.21-3c581c22b/kamiblue-2.04.21-3c581c22b.jar
repository_url: https://github.com/lambda-client/lambda
website_url: https://github.com/lambda-client/website
jar_url: https://github.com/lambda-client/client/releases/download/2.04.01/kamiblue-2.04.01.jar
jar_sig_url: https://github.com/lambda-client/client/releases/download/2.04.01/kamiblue-2.04.01.jar.sig
beta_jar_url: https://github.com/lambda-client/nightly-releases/releases/download/2.04.21-3c581c22b/kamiblue-2.04.21-3c581c22b.jar
cur_ver: 2.04.01
beta_ver: 2.04.21-3c581c22b
discord_url: https://kamiblue.org/discord
discord_url: https://lambda-client.com/discord
downloads_api_ver: v1
build_number: 895
theme: jekyll-theme-cayman
include:
- _docs
gems:
- jekyll-seo-tag
- jekyll-redirect-from
- liquid
defaults:
- scope:
path: _docs
values:
layout: docs
- scope:
path: ''
values:
layout: default

collections:
docs:
output: true



1 change: 1 addition & 0 deletions _docs
Submodule _docs added at b51728
13 changes: 13 additions & 0 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% if site.google_analytics %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];

function gtag() {
dataLayer.push(arguments);
}

gtag('js', new Date());
gtag('config', '{{ site.google_analytics }}');
</script>
{% endif %}
10 changes: 10 additions & 0 deletions _includes/options.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class=scrollArea>
<div class="scrollBar">
<div class="internalScrollArea">
<a href=".././">
<div class="project-name">Lambda-client</div>
</a>
{% include subnav.html nav=site.data.nav %}
</div>
</div>
</div>
31 changes: 31 additions & 0 deletions _includes/seo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% seo %}

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#9b90ff">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">

<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="lambda-client">
<meta itemprop="description" content="A Minecraft utility mod for anarchy servers">
<meta itemprop="image"
content="https://raw.githubusercontent.com/lambda-client/assets/assets/assets/icons/kamiSmall.png">

<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://lambda-client.com">
<meta property="og:type" content="website">
<meta property="og:title" content="lambda-client">
<meta property="og:description" content="A Minecraft utility mod for anarchy servers">
<meta property="og:image"
content="https://raw.githubusercontent.com/lambda-client/assets/assets/assets/icons/kamiSmall.png">

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="lambda-client">
<meta name="twitter:description" content="A Minecraft utility mod for anarchy servers">
<meta name="twitter:image"
content="https://raw.githubusercontent.com/lambda-client/assets/assets/assets/icons/kamiSmall.png">

<!-- Embed icon -->
<meta content="/favicon.png" property="og:image">
19 changes: 19 additions & 0 deletions _includes/subnav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{% for item in include.nav %}
{% if item.title %}

<a {% if item.url %} href="{{ item.url }}" {% endif %}>

<div {% if item.url== page.url %} class="currentDoc" {% else %} {% if item.subnav %} class="hasSubnav" {% endif %}{%
endif %} style="padding: 5px 5px;"> {{ item.title }}
</div>


{% if item.subnav %}
<div style="padding-left:1rem; padding-bottom:1px;">
{% include subnav.html nav=item.subnav %}
</div>
{% endif %}

</a>
{% endif %}
{% endfor %}
39 changes: 3 additions & 36 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,11 @@
<html lang="{{ site.lang | default: "en-US" }}">
<head>

{% if site.google_analytics %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ site.google_analytics }}');
</script>
{% endif %}
{% include analytics.html %}
<script data-ad-client="ca-pub-7708188084469659" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<meta charset="UTF-8">

{% seo %}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#9b90ff">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">

<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="KAMI Blue">
<meta itemprop="description" content="A Minecraft utility mod for anarchy servers">
<meta itemprop="image" content="https://raw.githubusercontent.com/kami-blue/assets/assets/assets/icons/kamiSmall.png">

<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://kamiblue.org">
<meta property="og:type" content="website">
<meta property="og:title" content="KAMI Blue">
<meta property="og:description" content="A Minecraft utility mod for anarchy servers">
<meta property="og:image" content="https://raw.githubusercontent.com/kami-blue/assets/assets/assets/icons/kamiSmall.png">

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="KAMI Blue">
<meta name="twitter:description" content="A Minecraft utility mod for anarchy servers">
<meta name="twitter:image" content="https://raw.githubusercontent.com/kami-blue/assets/assets/assets/icons/kamiSmall.png">

<!-- Embed icon -->
<meta content="/favicon.png" property="og:image">
{% include seo.html %}
</head>
<body>
<a id="skip-to-content" href="#content">Skip to the content.</a>
Expand All @@ -59,6 +25,7 @@ <h2 class="project-tagline">{{ page.description | default: site.description | de
<a href="/modules">Modules</a>
<a href="/contributing">Contributing</a>
<a href="/support">Support</a>
<a href="/docs/docs">Docs</a>
</nav>

<main id="content" class="main-content" role="main">
Expand Down
23 changes: 23 additions & 0 deletions _layouts/docs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: " en-US" }}">
<head>


<script data-ad-client="ca-pub-7708188084469659" async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<meta charset="UTF-8">

{% include seo.html %}
</head>
<body>

<main id="content" class="grid" role="main">
<div>
{% include options.html %}
</div>
<div class="docContent">{{ content }}</div>


</main>
</body>
</html>
52 changes: 52 additions & 0 deletions _plugins/loadDocList.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
module Options
Jekyll::Hooks.register :site, :pre_render do |site|

site.data["nav"] = []
x = site.pages

x = x.sort_by { |x| x.url.split("/") } # make sure entries are in a nice order
x.each { |page|
if page.url.index("/_docs") == 0 # only run when it is a doc

title = page.url.dup
title[".html"] = "" # remove .html from the end of file names.
title["/_docs/"] = ""
site.data["nav"] << do_for_sub(site.data["nav"], title.dup, page.url)

end
}

end

def Options.do_for_sub(current, title, full_url)
if title.split("/").length() > 1
x = get_pos_in_array(current, title.partition("/").first)
if x != nil
if current[x]["subnav"] != nil
current[x]["subnav"] << do_for_sub(current[x]["subnav"], title.partition("/").last, full_url)
else
current[x]["subnav"] = do_for_sub([], title.partition("/").last, full_url)
end
else
current << { "title" => title.partition("/").first, "subnav" => do_for_sub([], title.partition("/").last, full_url) }
end
else
current << { "title" => title.partition("/").first, "url" => full_url }

end
return current
end

def Options.get_pos_in_array(array, title)
array.each_with_index do |item, i|
if item.is_a? Array
next
end
if item["title"] == title
return i
end
end

nil
end
end
71 changes: 71 additions & 0 deletions _sass/jekyll-theme-cayman.scss
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ a {
.project-name {
margin-top: 0;
margin-bottom: 0.1rem;
color: white;

&:hover {
color: white;
}

@include large {
font-size: 3.25rem;
Expand Down Expand Up @@ -476,3 +481,69 @@ h2 {
h1 {
font-size: 2rem;
}

.grid {
display: grid;
grid-template-columns: 20% auto;
}

.scrollBar {
max-height: 100vh;
overflow-y: auto;
overflow-x: hidden;
position: fixed;
width: 20%
}

.scrollArea {
background-color: $header-bg-color;
height: 100%;
position: fixed;
width: 20%
}

.internalScrollArea {
padding: 1rem;
color: $header-heading-color;
height: 100%;

a {
color: #848197;

&:hover {
color: white;
text-decoration: none;
}
}

.hasSubnav {
color: white;
}
}

.currentDoc {
background-color: blue;
border-radius: 3px;
padding: 5px 5px;
color: white;
}

.docContent {
padding: 1rem
}

::-webkit-scrollbar {
width: 10px;
}

::-webkit-scrollbar-track {
background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
background: #888;
}

::-webkit-scrollbar-thumb:hover {
background: #555;
}
Loading