Skip to content

Commit 345c224

Browse files
Switch to Beautiful Jekyll theme and revamp site (#11)
* Switch to Beautiful Jekyll theme This also downgrades Jekyll from 4.2 to 3.9.2 * Cleanup title and subtitle on homepage * Remove custom footer and header * Use large nav bar only on homepage * Remove duplicate top-level heading from pages * Move FAQ from repo wiki to site * Redirect docs index page to homepage Since the docs page are on the navbar, there's no need for the index. * Cleanup mapping standards page * Restructure mapping standards page Examples are now in admonition-like blocks. Explanatory text for each standard are now paragraphs outside of a list. * Move notes/admonitions CSS to separate file This allows their reuse across all other pages. * Fix indents and trailing spaces on maven repo page * Fix indents and spaces in review process page * Fix trailing spaces in versions policy page * Remove commented out CSS in about page * Change to Orion's new GH username * Separate icon whitespace for notes into new class * Switch to 'page' layout for about page * Add the Getting Started page * Move Jekyll plugins to proper group * Add README with basic instructions * Fix livereload on Windows This forces the eventmachine gem to use the non-platform-specific 1.2.7, instead of 1.2.7-x64-mingw. * Add livereload option to README * Add better homepage Now we have a link to the getting started page, as well as three 'features' of Parchment mappings highlighted. * Disable pagination Since we hide the blog posts (for now), we don't need pagination. Also, this is currently causing a warning since we have an index.md, not an index.html which it needs. * Center version badges table * Elaborate on headings of version badges table This also makes the table wider without using CSS properties, to take up more of the whitespace around the table. * Move style blocks to end of pages * Remove unused media query from about page * Simplify the getting started page There are now step-by-step instructions for Forge and Fabric. * Add jekyll-tabs * Use tabs in getting started page * Add Discord invite to navbar * Remove numbering from headers in getting started Since we only have two headers at that level, no sense to add numbering. * Unify use of double quotes in Gemfile * Add mention of lambda param stripping in FAQ Co-authored-by: Alex O'Neill <[email protected]> Co-authored-by: Alex O'Neill <[email protected]>
1 parent 07ea61c commit 345c224

File tree

19 files changed

+861
-338
lines changed

19 files changed

+861
-338
lines changed

Gemfile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,35 @@ source "https://rubygems.org"
77
#
88
# This will help ensure the proper Jekyll version is running.
99
# Happy Jekylling!
10-
gem "jekyll", "~> 4.2"
10+
gem "jekyll", "~> 3.9.2"
1111
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
1212
# uncomment the line below. To upgrade, run `bundle update github-pages`.
1313
# gem "github-pages", group: :jekyll_plugins
1414
# If you have any plugins, put them here!
1515
group :jekyll_plugins do
16-
gem 'jekyll-paginate'
17-
gem 'jekyll-feed'
18-
gem 'jekyll-seo-tag'
19-
gem 'jekyll-sitemap'
16+
gem "jekyll-paginate"
17+
gem "jekyll-feed"
18+
gem "jekyll-seo-tag"
19+
gem "jekyll-sitemap"
20+
gem "jekyll-redirect-from"
21+
gem "jekyll-mentions", "1.5.1"
22+
gem "jekyll-watch"
23+
gem "jekyll-tabs"
2024
end
2125

2226
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
2327
# and associated library.
2428
platforms :mingw, :x64_mingw, :mswin, :jruby do
25-
gem "tzinfo", "~> 1.2"
29+
gem "tzinfo", "~> 2.0"
2630
gem "tzinfo-data"
2731
end
2832

2933
# Performance-booster for watching directories on Windows
3034
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
3135

3236
# Custom gems
33-
gem "jekyll-yamt"
34-
gem 'jekyll-watch'
3537
gem "webrick", "~> 1.7"
36-
gem "jekyll-redirect-from"
37-
gem "jekyll-mentions"
38+
gem "beautiful-jekyll-theme", "5.0.0"
39+
40+
# Fix eventmachine on Windows (https://stackoverflow.com/a/65547010/14416954)
41+
gem "eventmachine", "1.2.7", git: "https://github.com/eventmachine/eventmachine.git", tag: "v1.2.7"

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,33 @@
11
# Website
2+
23
Contains the webpage that is displayed at parchmentmc.net and parchmentmc.org
4+
5+
## Usage
6+
7+
### Installation
8+
9+
Install the Bundler and Jekyll gems by following the [installation instructions at Jekyll](https://jekyllrb.com/docs/installation/).
10+
11+
Install the gems used by the website:
12+
13+
```text
14+
bundle install
15+
```
16+
17+
### Building
18+
19+
For building the site, run the following command and find the site files under the `_site` folder.
20+
21+
```text
22+
bundle exec jekyll build
23+
```
24+
25+
### Development
26+
27+
For site development, the following command builds and reloads the site on each change and serves the site through a local webserver.
28+
29+
```text
30+
bundle exec jekyll serve --livereload
31+
```
32+
33+
Note that changes to the `_config.yml` file requires a full restart of Jekyll (exit and rerun the above command).

_config.yml

Lines changed: 101 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,109 @@
1+
2+
theme: beautiful-jekyll-theme
3+
14
title: ParchmentMC
2-
3-
description: >- # this means to ignore newlines until "baseurl:"
4-
Open community-sourced parameter names and javadocs
5-
baseurl: "" # the subpath of your site, e.g. /blog
6-
url: ""
7-
twitter_username: mc_parchment
8-
github_username: ParchmentMC
9-
author:
10-
name: ParchmentMC
11-
12-
# Build settings
13-
theme: jekyll-yamt
14-
15-
#Plugins
16-
plugins: [jekyll-paginate, jekyll-feed, jekyll-seo-tag, jekyll-sitemap, jekyll-redirect-from, jekyll-mentions]
17-
18-
#Pagination
19-
paginate: 3
20-
paginate_path: "/page:num/"
21-
22-
#SEO
23-
twitter:
24-
username: ParchmentMC
25-
card: summary
26-
logo: /assets/img/logo.png
27-
social:
28-
links: #List your social links here
29-
- https://twitter.com/ParchmentMC
30-
- https://www.github.com/ParchmentMC
31-
lang: en_US
32-
33-
#Highlighter
5+
author: The ParchmentMC Team
6+
7+
navbar-links:
8+
Getting Started: "docs/getting-started"
9+
Documentation:
10+
- Mapping Standards: "docs/mappings"
11+
- Maven Repository and Artifacts: "docs/maven"
12+
- Review Process: "docs/review"
13+
- Version Policy: "docs/versions"
14+
FAQ: "faq"
15+
Discord: https://discord.parchmentmc.org/
16+
About: "about"
17+
18+
avatar: "/assets/img/logo.png"
19+
round-avatar: false
20+
21+
# If you want to have an image logo in the top-left corner instead of having the title of the website
22+
#title-img: /path/to/image
23+
24+
social-network-links:
25+
26+
rss: true
27+
github: ParchmentMC
28+
twitter: ParchmentMC
29+
30+
rss-description: Open community-sourced parameter names and javadocs
31+
32+
excerpt_length: 50
33+
feed_show_excerpt: false
34+
feed_show_tags: true
35+
post_search: false
36+
navbar-var-length: false
37+
# The keywords to associate with your website, for SEO purposes
38+
#keywords: "my,list,of,keywords"
39+
40+
# Colour values can be any valid CSS colour
41+
navbar-col: "#FFE4B9"
42+
navbar-text-col: "#404040"
43+
navbar-border-col: "#DDDDDD"
44+
page-col: "#FCFCFC"
45+
text-col: "#404040"
46+
link-col: "#008AFF"
47+
hover-col: "#0085A1"
48+
footer-col: "#FCFCFC"
49+
footer-text-col: "#777777"
50+
footer-link-col: "#404040"
51+
footer-hover-col: "#0085A1"
52+
53+
# Alternatively, the navbar, footer, and page background can be set to an image
54+
#navbar-img: "/assets/img/bgimage.png"
55+
#footer-img: "/assets/img/bgimage.png"
56+
#page-img: "/assets/img/bgimage.png"
57+
58+
# Suggest a colour for mobile browsers to use as the browser's theme. This is only supported by a few mobile browsers.
59+
#mobile-theme-col: "#0085A1"
60+
61+
site-css:
62+
- "/assets/css/notes.css"
63+
- "/assets/css/tabs.css"
64+
site-js:
65+
- "/assets/js/tabs.js"
66+
67+
# Ruby Date Format to show dates of posts
68+
date_format: "%B %-d, %Y"
69+
70+
timezone: "Etc/UTC"
71+
markdown: kramdown
72+
highlighter: rouge
73+
#paginate: 5 # Do not paginate, since that requires index.html but we use an index.md
74+
3475
kramdown:
3576
input: GFM
36-
syntax_highlighter: rouge
3777

38-
syntax_highlighter_opts:
39-
css_class: 'highlight'
40-
span:
41-
line_numbers: false
42-
block:
43-
line_numbers: false
44-
start_line: 1
78+
defaults:
79+
-
80+
scope:
81+
path: ""
82+
type: "posts"
83+
values:
84+
layout: "post"
85+
nav-short: true
86+
-
87+
scope:
88+
path: "" # any file that's not a post will be a "page" layout by default
89+
values:
90+
layout: "page"
91+
nav-short: true
92+
93+
# Exclude these files from production site
94+
exclude:
95+
- Gemfile
96+
- Gemfile.lock
97+
- LICENSE
98+
- README.md
4599

46-
#Sass
47-
sass:
48-
style: compressed
49-
sourcemap: never
100+
plugins:
101+
- jekyll-paginate
102+
- jekyll-sitemap
103+
- jekyll-redirect-from
104+
- jekyll-mentions
105+
- jekyll-tabs
50106

51107
# Collections
52108
collections:
53-
- team_members # ParchmentMC team members
109+
- team_members # ParchmentMC team members

_includes/footer.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

_includes/header.html

Lines changed: 0 additions & 27 deletions
This file was deleted.

_team_members/oriononline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
name: OrionOnline
33
role: System Admin
44
teams: Toolchain
5-
github: OrionDevelopment
5+
github: marchermans
66
---

about.md

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
11
---
2-
layout: default
2+
layout: page
33
title: About
44
---
55

66
**ParchmentMC** is a community project to provide a cohesive set of mappings of parameter names and javadocs, to augment the official names released by Mojang.
77

88
## The Team
99

10+
<div class="team-container">
11+
{% for team_member in site.team_members %}
12+
<div class="member">
13+
{% capture avatar %}https://github.com/{{ team_member.github }}.png{% endcapture %}
14+
{% if team_member.avatar %} {% assign avatar = team_member.avatar %} {% endif %}
15+
<img class="avatar" src="{{ avatar }}">
16+
<div class="name">
17+
{% if team_member.github %} <a href="https://github.com/{{ team_member.github }}"> {% endif %}
18+
{{ team_member.name }}
19+
{% if team_member.github %} </a> {% endif %}
20+
</div>
21+
<div class="role">{{ team_member.role }}</div>
22+
<div class="teams">{{ team_member.teams }}</div>
23+
</div>
24+
{% endfor %}
25+
</div>
26+
1027
<style>
1128
.team-container {
1229
margin: 1em auto;
13-
/* display: grid; */
14-
/* grid-template-columns: repeat(4, 1fr); */
15-
/* column-gap: 1em; */
16-
/* row-gap: 1em; */
1730
display: flex;
1831
flex-flow: row wrap;
1932
justify-content: space-evenly;
@@ -53,23 +66,4 @@ title: About
5366
font-style: italic;
5467
font-size: 0.8em;
5568
}
56-
57-
@media (max-width)
5869
</style>
59-
60-
<div class="team-container">
61-
{% for team_member in site.team_members %}
62-
<div class="member">
63-
{% capture avatar %}https://github.com/{{ team_member.github }}.png{% endcapture %}
64-
{% if team_member.avatar %} {% assign avatar = team_member.avatar %} {% endif %}
65-
<img class="avatar" src="{{ avatar }}">
66-
<div class="name">
67-
{% if team_member.github %} <a href="https://github.com/{{ team_member.github }}"> {% endif %}
68-
{{ team_member.name }}
69-
{% if team_member.github %} </a> {% endif %}
70-
</div>
71-
<div class="role">{{ team_member.role }}</div>
72-
<div class="teams">{{ team_member.teams }}</div>
73-
</div>
74-
{% endfor %}
75-
</div>

assets/css/notes.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/* Admonition-like 'notes'
2+
3+
Example usage:
4+
5+
> Some text inside the example note
6+
{:.note.example-icon}
7+
8+
*/
9+
10+
.note { /* Base admonition class */
11+
color: inherit;
12+
font-style: inherit;
13+
background-color: rgba(77, 170, 221, 0.1);
14+
border-radius: 1rem;
15+
padding: 1rem 1.5rem;
16+
margin: 0.75rem 1.25rem;
17+
}
18+
19+
.note > p:last-child { /* Remove margin if last tag is a paragraph */
20+
margin-bottom: 0;
21+
}
22+
23+
.icon { /* Base class for notes with an icon (see below) */
24+
padding-left: 3rem;
25+
}
26+
27+
/* Example icon (lightbulb) */
28+
29+
.note-example {
30+
position: relative; /* This is where the icon's absolute positioning anchors to */
31+
}
32+
33+
.note-example::before {
34+
display: inline-block;
35+
position: absolute;
36+
left: 0.85rem;
37+
width: 1.5em;
38+
height: 1.5em;
39+
content: "";
40+
background-color: currentColor;
41+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' style='width:24px%3Bheight:24px' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 2C8.13 2 5 5.13 5 9C5 11.38 6.19 13.47 8 14.74V17C8 17.55 8.45 18 9 18H15C15.55 18 16 17.55 16 17V14.74C17.81 13.47 19 11.38 19 9C19 5.13 15.87 2 12 2M14 13.58V16H13V11.41L14.71 9.71C15.1 9.32 15.1 8.68 14.71 8.29C14.32 7.9 13.68 7.9 13.29 8.29L12 9.59L10.71 8.29C10.32 7.9 9.68 7.9 9.29 8.29C8.9 8.68 8.9 9.32 9.29 9.71L11 11.41V16H10V13.58C8.23 12.81 7 11.05 7 9C7 6.24 9.24 4 12 4S17 6.24 17 9C17 11.05 15.77 12.81 14 13.58M9 20H15V21C15 21.55 14.55 22 14 22H10C9.45 22 9 21.55 9 21V20Z' /%3E%3C/svg%3E");
42+
}
43+
44+
.note-example > p:first-of-type:not(:last-child) { /* For examples, the first paragraph is usually "Example:" */
45+
margin-bottom: 1rem;
46+
}

0 commit comments

Comments
 (0)