Skip to content

Commit

Permalink
update folder structure and config for multilingual
Browse files Browse the repository at this point in the history
  • Loading branch information
merwynl committed Mar 24, 2024
1 parent 66867e5 commit 49d1f03
Show file tree
Hide file tree
Showing 28 changed files with 1,578 additions and 64 deletions.
149 changes: 149 additions & 0 deletions README-jp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
[[English](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README.md#readme)] [日本語] [[Português do Brasil](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-pt.md#readme)] [[français](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-fr.md#readme)]

## Mr. Green Jekyll テーマ

<!-- readme -->

[<img src="https://img.shields.io/github/issues/MrGreensWorkshop/MrGreen-JekyllTheme" alt="GitHub issues" data-no-image-viewer>](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/issues)
[<img src="https://img.shields.io/github/forks/MrGreensWorkshop/MrGreen-JekyllTheme" alt="GitHub forks" data-no-image-viewer>](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)
[<img src="https://img.shields.io/github/stars/MrGreensWorkshop/MrGreen-JekyllTheme" alt="GitHub stars" data-no-image-viewer>](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/README-jp.md#readme)
[<img src="https://img.shields.io/github/license/MrGreensWorkshop/MrGreen-JekyllTheme" alt="GitHub license" data-no-image-viewer>](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt)
[<img src="https://shields.io/badge/Github%20Sponsors-Support%20me-blue?logo=GitHub+Sponsors" alt="GitHubでスポンサーになる" data-no-image-viewer>](https://github.com/sponsors/MrGreensWorkshop "GitHubでスポンサーになる")
[<img src="https://shields.io/badge/Patreon-Support%20me-blue?logo=Patreon" alt="Patreonで支援" data-no-image-viewer>](https://patreon.com/MrGreenWorkshop "Patreonで支援")
[<img src="https://shields.io/badge/Ko--fi-Tip%20me-blue?logo=kofi" alt="Ko-fiで支援" data-no-image-viewer>](https://ko-fi.com/MrGreenWorkshop "Ko-fiで支援")

---

<div align="center">
<img src="https://jekyll-theme-mrgreen-demo.mrgreensworkshop.com/assets/img/posts/mock1.jpg" max-height="500" alt="screen_mock">
<br><br>
<a href="https://jekyll-theme-mrgreen-demo.mrgreensworkshop.com/ja" style="font-weight: bold;" >ライブデモはこちら</a>
</div>


### Introduction

<!-- outline-start -->

[Mr. Green](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme) は、[Jekyll](https://jekyllrb-ja.github.io) で生成された、[GitHub Pages](https://pages.github.com/) と完全に互換性のある多言語テーマです。

<!-- outline-end -->

私は自分のWebサイトを作るつもりでしたが、それをテンプレートとして作成すれば、オープンソースコミュニティと共有できると思い、テーマとして作ることにしました。 このプロジェクトの作成に多くの時間と労力を費やしました。そのため、[サポートする](#you-can-support-my-work)ことを考えて頂けたら嬉しいです。

### Features

- 多言語Webサイト
- 英語 (デフォルト)、日本語、ブラジルポルトガル語、フランス語
- おすすめの言語提供機能
- アイコン有効無効オプション付き自動ナビゲーションボタン追加機能
- `Home`, `About`, `Archives`, `Post-list`, `Links`, `Projects` 等々のレイアウト
- カラースキーム切替オプション (ダーク・ライト)
- 自動コンタクトオプション追加機能
- 自動画像参照(画像のフルパスを入れる必要なく、先頭に`:`を入れるだけで良い)
- 画像遅延読み込み、画像ビューア
- クリエイティブ・コモンズ 表示 4.0 国際 ライセンス付きイケてるフッター
- 投稿用可動式目次モーダルボックス
- 投稿共有オプション
- カテゴリー別、タグ別投稿一覧
- コメント投稿機能
- [Giscus](https://giscus.app)
- [Disqus](https://disqus.com)
- 番号付ページネーションまたはスクロールして読み込むタイプかを選択可能
- サイトマップ機能
- SEO(検索エンジン最適化)
- [Schema Markup](https://schema.org)
- [Open Graph](https://ogp.me)
- [Twitter](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary)
- アナリティクス (Google アナリティクス)
- クッキー使用同意機能
- お問い合わせフォーム機能 (Google フォーム)
- サイト内検索機能
- コード圧縮によるフットプリントの縮小 (`HTML` `JS` `SCSS`)
- モバイルアプリサポート
- モバイル端末対応 (Android と IOS でテスト済み)
- 開発者向けに整理されたフォルダ構造 (Chrome, Safari, FireFox でテスト済み)

### Installation

#### GitHub pages

1. [リポをフォークする](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/fork)
1. \_config.yml を編集し、`url` を以下のように変え、変更をプッシュする。

```yaml
url: "https://GitHubユーザー名.github.io"
```
1. リポ名を `GitHubユーザー名.github.io` に変える。
1. デプロイのステイタスは、リポ上の `Actions` タブで確認する。
1. 緑色に変わると、サイトは `https://GitHubユーザー名.github.io` で利用可能になる。

#### Local build

1. [Jekyll をインストール](https://jekyllrb-ja.github.io/docs/installation/)する。
1. リポをクローン、または [ダウンロード](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/releases/latest)し、コマンドプロンプトでフォルダに移動し、`bundle install` コマンドを実行する。
1. `bundle exec jekyll serve --watch --host 0.0.0.0 --safe`コマンドでビルドする。
- `--host 0.0.0.0` を指定すると、同じ LAN から Web サーバーにアクセスすることができる。
- `--safe`を指定すると、第三者のプラグインが追加されていないことが確認できる。(Github ページ開発用)
1. ページは `0.0.0.0:4000/` アドレスで稼働する。

### Documentation

YouTubeの[Mr. Green テーマチュートリアルのプレイリスト](https://www.youtube.com/playlist?list=PL8XOPe9jXvWOrg6XAulRzy9MQl_-A7Yns)を確認してみてください。

### Credits

自分のWebサイトを構築する機会を与えてくれたこれらのプロジェクトに感謝します。

- [Jekyll](https://jekyllrb-ja.github.io) は、静的サイトジェネレータ。好きなマークアップ言語で書かれたテキストを取り、静的なWebサイトを作成するためのレイアウトを使用している。自身でサイトのルック&フィール、URL、ページに表示されるデータなどを微調整することができる。ボランティアによって維持されている素晴らしいプロジェクト。

- [GitHub Pages](https://pages.github.com/) は、GitHub のリポジトリから直接ホスティングされる。変更をプッシュするだけで、サイトが自動生成。

このプロジェクト作成中に見つけた役立つサイトを紹介します。[リンクページへ](https://jekyll-theme-mrgreen-demo.mrgreensworkshop.com/ja/tabs/links.html)

### You Can Support My Work

何もないところからプロジェクトを立ち上げるのは、とても時間がかかるものです。私がこの様なプロジェクトに取り組み続け、皆さんに新しいコンテンツを提供できるよう、支援をご検討いただければ幸いです。

- [Patreon](https://patreon.com/MrGreenWorkshop "Patreonで支援")で支援する(月々)
- [Ko-fi](https://ko-fi.com/MrGreenWorkshop "Ko-fiで支援")で支援する (一回)
- [GitHubでスポンサー](https://github.com/sponsors/MrGreensWorkshop "GitHubでスポンサーになる")になる (一回/月々)

### Contribute

プルリクは大歓迎です。イシューとプルリクのテンプレートの手順を確認してください。

### Contributors

貢献していただきありがとうございます!

- ブラジルポルトガル語の翻訳 [Vitor DallAcqua](https://github.com/fandangos)。
- フランス語の翻訳修正 [Jean-Philippe Morissette](https://github.com/JPMorissette)。

### License

[MIT license](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/LICENSE.txt)でも示されている通り、ライセンス及び著作権表示をした上で、このテーマをどこでも使用することができます。

`Copyright (c) 2022 Mr. Green's Workshop https://www.MrGreensWorkshop.com`

ご利用の際に私のページへのリンクを貼ったり、フッターの "Pwrd by Mr. Green "のリンクを残したりして頂くと、私の作品に対してクレジットが得られます。

ありがとうございます。

### Other Licenses

Mr. Green Jekyll テーマには、以下のライブラリが組み込まれています。これらのライブラリがなければ、このテーマを完成させることができませんでした。

| Library | file |
| :----------------------------------- | ---- |
| [jQuery v3.6.0](https://github.com/jquery/jquery/tree/3.6.0), Copyright [OpenJS Foundation](https://openjsf.org) and other contributors. jQuery is distributed under the terms of the MIT License. | [jquery-3.6.0.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery-3.6.0.min.js) |
| [Bootstrap v3.3.7](https://github.com/twbs/bootstrap/tree/v3.3.7), Copyright (c) 2011-2016 Twitter, Inc. Bootstrap is distributed under the terms of the MIT License. | [bootstrap.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap.min.js), [bootstrap.min.css](assets/css/bootstrap.min.css) |
| [Bootstrap Table of Contents v0.4.1](https://github.com/afeld/bootstrap-toc/tree/v0.4.1), Copyright (c) 2015 Aidan Feldman Aidan Feldman. Bootstrap Table of Contents is distributed under the terms of the MIT License. | [bootstrap-toc.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/bootstrap-toc.min.js), [bootstrap-toc.min.css](assets/css/bootstrap-toc.min.css) |
| [Font Awesome v4.7.0](https://github.com/FortAwesome/Font-Awesome/tree/v4.7.0), Copyright (c) 2017 Dave Gandy. The Font Awesome font is distributed under the terms of the [SIL OFL 1.1](http://scripts.sil.org/OFL). Font Awesome CSS, LESS, and Sass files are distributed under the terms of the [MIT License](https://opensource.org/licenses/mit-license.html). | [font-awesome.min.css](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/css/font-awesome.min.css), [FontAwesome](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/fonts/) |
| [Lozad.js v1.16.0](https://github.com/ApoorvSaxena/lozad.js/tree/v1.16.0), Copyright (c) 2017 Apoorv Saxena. Lozad.js is distributed under the terms of the MIT License. | [lozad.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/lozad.min.js) |
| [Magnific Popup v1.1.0](https://github.com/dimsemenov/Magnific-Popup/tree/1.1.0), Copyright (c) 2014-2016 Dmitry Semenov, http://dimsemenov.com. Magnific Popup is distributed under the terms of the MIT License. | [jquery.magnific-popup.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/jquery.magnific-popup.min.js), [magnific-popup.css](assets/css/magnific-popup.css) |
| [Simple-Jekyll-Search v1.9.2](https://github.com/christian-fei/Simple-Jekyll-Search/tree/v1.9.2), Copyright (c) 2015 Christian Fei. Simple-Jekyll-Search is distributed under the terms of the MIT License. | [simple-jekyll-search-1.9.2.min.js](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/assets/js/simple-jekyll-search-1.9.2.min.js) |
| [Compress HTML in Jekyll v3.1.0](https://github.com/penibelst/jekyll-compress-html/tree/v3.1.0), Copyright (c) 2014 Anatol Broder. Compress HTML in Jekyll is distributed under the terms of the MIT License. | [compress.liquid](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/_layouts/util/compress.liquid) |

[Mr. Green Jekyll テーマ](https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme)
12 changes: 11 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ baseurl: ""
# If it has the same name as one of the files in folder `_data/locales`, the layout language will also be changed,
# otherwise, the layout language will use the default value of 'en'.
lang: en
default_language: en

# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
timezone: Australia/Sydney
Expand Down Expand Up @@ -135,7 +136,7 @@ collections:

defaults:
- scope:
path: "" # An empty string here means all files in the project
path: "_posts/en" # An empty string here means all files in the project
type: posts
values:
layout: post
Expand All @@ -145,6 +146,15 @@ defaults:
# to update the code of all other post links in this project.
permalink: /posts/:title/
- scope:
path: "*/_posts/" # An empty string here means all files in the project
type: posts
values:
layout: post
comments: true # Enable comments in posts.
toc: true # Display TOC column in posts.
# DO NOT modify the following parameter unless you are confident enough
# to update the code of all other post links in this project.
permalink: /:path
path: _drafts
values:
comments: false
Expand Down
1 change: 0 additions & 1 deletion _posts/.placeholder

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Pyside vs PySide2"
tags: [code, Auto, Automation, Py, python]
category: [code]
lang: en
ref: posts
---

# 1. PySide vs PySide2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Introduction to C++"
tags: [code, scripting, programming, cpp, c++, basics, 基本, 🔰初心者]
category: [code]
lang: en
ref: posts
---

# Process
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Intro to Gaea"
tags: [proceduralism, houdini, gamedev, ゲーム開発, basics, 基本, 🔰初心者]
category: [gamedev]
lang: en
ref: posts
---

# Introduction to Gaea
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Houdini Essentials 101"
tags: [proceduralism, houdini, gamedev, ゲーム開発, basics, 基本, 🔰初心者]
category: [gamedev]
lang: en
ref: posts
---

# Houdini Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Houdini Context"
tags: [proceduralism, houdini, gamedev, ゲーム開発, basics, 基本, 🔰初心者]
category: [gamedev]
lang: en
ref: posts
---

## Houdini Context
Expand Down
68 changes: 68 additions & 0 deletions _posts/en/opengl/2024-03-24-opengl-creating-a-window.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
title: "OpenGL #1: Creating a Window"
tags: [glsl, code, opengl, 基本, 🔰初心者]
category: [shaders, gamedev, ゲーム開発]
toc: true
lang: en
ref: posts
---

# About this series
For some time now I have been intending to come to terms with understanding the ins and outs of OpenGL and GLSL and its many quirks and intricacies. This all began many moons ago when I was first fidling my way through shading languages & graphics API's but I could not or *had* not afforded the time or headspace to fully dive down the rabbit hole. The goal of this series is to serve as a place to document my journey as I stumble my way through learning its fundamentals and figure things out in creating OpenGL applications and graphics programming.

I'll be primarily relying on the excellent [https://learnopengl.com](https://learnopengl.com) by Joey De Vries as the primary resource though there may be times where other resources are referenced. Those will be linked as I work my way through the many challenges and roadblocks that I'll inevitably come acrosss. Let's get started!

## Required Programs and files

- Some sort of IDE or code editor with Intellisense code completion and basic debugging. Some choices:
- [JetBrains Rider](https://www.jetbrains.com/rider/)
- [Microsoft Visual Studio Community](https://visualstudio.microsoft.com/vs/older-downloads/)
- [CMake](https://cmake.org/download/)
- [GLFW 3.3 Source Package](https://github.com/glfw/glfw/tree/3.3-stable)
- [GLAD1](https://glad.dav1d.de/)

I'm sticking with Rider as my preferred IDE of choice as I find its minimalist interface and integration with off the shelf engines easier to work with.


## Build GLFW


## Compile GLFW Libraries


## Resource Preparation


## Creating an Empty Project/Solution


## Linking


## Generating GLAD file


## Referencing GLAD


## Creating main function


## Initializing GLFW


## Creating a Window


## Initializing GLAD


## Creating frame buffer & glViewport


## Some basic error checks


## Running the application

---
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Notes on Textures & PBR"
tags: [pbr, shading, materials, textures, rendering, basics, 基本, 🔰初心者]
category: [gamedev]
lang: en
ref: posts
---

### Channel Packing Textures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Material Basics in Unreal"
tags: [pbr, shading, materials, textures, rendering, basics, 基本, 🔰初心者]
category: [shaders, gamedev, unreal, ゲーム開発]
lang: en
ref: posts
---

# Material Basics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "PBR Theory"
tags: [pbr, shading, materials, textures, rendering, basics, 基本, 🔰初心者]
category: [shaders, gamedev, unreal, unity, ゲーム開発]
lang: en
ref: posts
toc: true
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Shuriken Toolkit Dev Log 0.0.1"
tags: [code, Auto, Automation, Py, Tkinter]
category: [code]
lang: en
ref: posts
---

For a while, I’ve been searching for a way to speed up my own personal workflow. Hotkeys and shortcuts are great but sometimes you might want to just click away if certain tools are close enough within reach. Plus there’s only so many tools you can quickly hotkey. Jumping back and forth between different DCC’s also means having to recall a lot of different hotkeys. That’s not a bad thing but someone just starting out may find, having to remember dozens and dozens of different hotkeys to be a little overwhelming.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Importing Modules & Package Scripts in Maya"
tags: [code, Auto, Automation, Py]
category: [code]
lang: en
ref: posts
---

Importing & running external scripts is a key component in making scripts portable. Splitting your scripts into separate files is a convenient way of breaking a part large chunks of code & functionality into smaller pieces. Each separate python file that created is a module and a package is a collection of module/s.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: "Automated Folder Structure with TKinter & Python"
tags: [code, Auto, Automation, Py, python]
category: [code]
lang: en
ref: posts
---

I like organizing my folder structure based on different applications & disciplines. Having a clear idea of what your a project structure looks like will ensure that files & assets don’t go missing. I’ve been messing a bit with paths and directories and found that this would be a great opportunity to work a little on some of those skills with Python. The goal of this was to write something that was quick and simple though not necessarily optimal but leave plenty of room to improve and oh boy, I succeeded in that last part pretty well.
Expand Down
Loading

0 comments on commit 49d1f03

Please sign in to comment.