Skip to content

Commit

Permalink
Upload site
Browse files Browse the repository at this point in the history
  • Loading branch information
ann0see committed Oct 22, 2020
1 parent f3c3745 commit 6170567
Show file tree
Hide file tree
Showing 102 changed files with 3,266 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Build and deploy jekyll site

on:
push:
branches:
- polyglot
# - source
# It is highly recommended that you only run this action on push to a
# specific branch, eg. master or source (if on *.github.io repo)

jobs:
jekyll:
runs-on: ubuntu-16.04 # can change this to ubuntu-latest if you prefer
steps:
- name: 📂 setup
uses: actions/checkout@v2
# include the lines below if you are using jekyll-last-modified-at
# or if you would otherwise need to fetch the full commit history
# however this may be very slow for large repositories!
# with:
# fetch-depth: '0'

- name: 💎 setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6 # can change this to 2.7 or whatever version you prefer

- name: 🔨 install dependencies & build site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
### Enables caching. Similar to https://github.com/actions/cache.
#
#format_output: false
### Uses prettier https://prettier.io to format jekyll output HTML.
#
# prettier_opts: '{ "useTabs": true }'
### Sets prettier options (in JSON) to format output HTML. For example, output tabs over spaces.
### Possible options are outlined in https://prettier.io/docs/en/options.html
#
# prettier_ignore: 'about/*'
### Ignore paths for prettier to not format those html files.
### Useful if the file is exceptionally large, so formatting it takes a while.
### Also useful if HTML compression is enabled for that file / formatting messes it up.
#
# jekyll_src: sample_site
### If the jekyll website source is not in root, specify the directory. (in this case, sample_site)
### By default, this is not required as the action searches for a _config.yml automatically.
#
# gem_src: sample_site
### By default, this is not required as the action searches for a _config.yml automatically.
### However, if there are multiple Gemfiles, the action may not be able to determine which to use.
### In that case, specify the directory. (in this case, sample_site)
###
### If jekyll_src is set, the action would automatically choose the Gemfile in jekyll_src.
### In that case this input may not be needed as well.
#
# key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
# restore-keys: ${{ runner.os }}-gems-
### In cases where you want to specify the cache key, enable the above 2 inputs
### Follows the format here https://github.com/actions/cache
#
# custom_opts: '--drafts --lsi'
### If you need to specify any Jekyll build options, enable the above input
### Flags accepted can be found here https://jekyllrb.com/docs/configuration/options/#build-command-options

- name: 🚀 deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
# if the repo you are deploying to is <username>.github.io, uncomment the line below.
# if you are including the line below, make sure your source files are NOT in the master branch:
# publish_branch: master
1 change: 1 addition & 0 deletions .nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

31 changes: 31 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
permalink: /404.html
lang: en
category: "hidden"
---
<!DOCTYPE html>
<!--[if IE 9]> <html class="ie9"> <![endif]-->
<html lang="{{ site.active_lang }}">

<head>
<title>404 Not found - Jamulus</title>
{% include headtags.html %}
</head>

<body>
<header class="fx-row fx-row-between-xs fx-text-center">
<div class="fx-col fx-text-center">
<img alt="{{ site.data.general.nav.altJamulusIcon }}" width="40" height="40" src="{{ 'assets/img/jamulus-icon-2020.svg'| relative_url }}" />
</div>
</header>
<main class="fx-row-center-xs">
<div class="fx-col-center-xs fx-txt-center">
<h1 class="red">404. There's nothing here</h1>
<p>Maybe this site was moved or deleted. Did you check if there was a typo?</p>
<p><a href="#" class="button red-bg" onclick="history.go(-1);return false;">Try going back</a></p>
</div>
</main>
{% include footer.html %}
</body>

</html>
12 changes: 12 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gem "jekyll"
group :jekyll_plugins do
gem "jekyll-polyglot"
end
gem "jekyll-minifier"
# gem "rails"
85 changes: 85 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.7)
cssminify2 (2.0.1)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
execjs (2.7.0)
ffi (1.13.1)
forwardable-extended (2.6.0)
htmlcompressor (0.4.0)
http_parser.rb (0.6.0)
i18n (1.8.5)
concurrent-ruby (~> 1.0)
jekyll (4.1.1)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 1.8)
jekyll-minifier (0.1.10)
cssminify2 (~> 2.0)
htmlcompressor (~> 0.4)
jekyll (>= 3.5)
json-minify (~> 0.0.3)
uglifier (~> 4.1)
jekyll-polyglot (1.3.3)
jekyll (>= 3.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
json (2.3.1)
json-minify (0.0.3)
json (> 0)
kramdown (2.3.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.2.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.4)
rouge (3.23.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.7.0)

PLATFORMS
ruby

DEPENDENCIES
jekyll
jekyll-minifier
jekyll-polyglot

BUNDLED WITH
2.1.4
14 changes: 14 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins:
- jekyll-polyglot
- jekyll-minifier
languages: ["en", "es", "de"]
default_lang: "en"
exclude_from_localization: ["assets", "images", "css", "README.md", "manifest.json", "humans.txt"]
parallel_localization: true
githubrepoeditbase: "https://github.com/gilgongo/jamulushome/edit/polyglot"
exclude: ["README.md", "Gemfile.lock", "Gemfile", "CONTRIBUTING.md"]
jekyll-minifier:
remove_intertag_spaces: true
remove_spaces_inside_tags: true
remove_multi_spaces: true
compress_json: true
11 changes: 11 additions & 0 deletions _data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#_data folder
Includes jekyll data.

currently used to translate the navigation in the wiki. See en/wiki/navigation.yml for structure.

## Translate new language

* Copy folder en/ to yourlanguagecode/
* Create translated yml files.
* yourlanguagecode/wiki holds all data of the navigation
* yourlanguagecode/general.yml holds data which is used around the page (currently only alt texts for the footer images)
12 changes: 12 additions & 0 deletions _data/de/general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
footer:
alt:
github: "Jamulus GitHub Repo"
facebook: "Jamulus Facebook Gruppe"
sourceforge: "Lade Jamulus von SourceForge.net herunter."
btnEditAlt: "Diese Seite bearbeiten"
tNoJSEnabled: "JavaScript ist in deinem Browser nicht aktiviert. Das ist kein Problem. Diese Website wurde so konzipiert, dass grundlegende Funktionen ohne JavaScript gegeben sind. Wenn du JavaScript aktivierst, erhälst du möglicherweise zusätzliche Funktionen auf dieser Seite."
nav:
btnOpenNavigation: "Navigationsmenü öffnen"
altJamulusIcon: "Jamulus Icon. Link zur Wiki Startseite"
wiki:
titleAdd: "– Jamulus Wiki"
40 changes: 40 additions & 0 deletions _data/de/navigation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
nav:
- title: Jamulus nutzen
subfolderitems:
- page: Schnellstart
url: /wiki/Getting-Started
subsubfolderitems:
- page: Windows
url: /wiki/Installation-for-Windows
- page: Macintosh
url: /wiki/Installation-for-Macintosh
- page: Linux
url: /wiki/Installation-for-Linux
- page: Fehlerbehebung
url: /wiki/Client-Troubleshooting
- title: Server
subfolderitems:
- page: Server Schnellstart
url: /wiki/Running-a-Server
- page: Server Typen
url: /wiki/Choosing-a-Server-Type
- page: Private Server
url: /wiki/Running-a-Private-Server
- page: Server Fehlerbehebung
url: /wiki/Server-Troubleshooting
- title: Mehr
subfolderitems:
- page: CLI
url: /wiki/Command-Line-Options
- page: Tipps & Tricks
url: /wiki/Tips-Tricks-More
- page: Kompilieren
url: /wiki/Compiling
- page: Demos
url: /wiki/Demos
- page: Mithelfen
url: /wiki/Contribution
- page: Datenschutz
url: /wiki/Privacy-Statement


12 changes: 12 additions & 0 deletions _data/en/general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
footer:
alt:
github: "Jamulus GitHub Repo"
facebook: "Jamulus Facebook Group"
sourceforge: "Get Internet Jam Session Software at SourceForge.net. Fast, secure and Free Open Source software downloads"
btnEditAlt: "Edit this site"
tNoJSEnabled: "Your browser has JavaScript disabled. That's totally fine. This site has been designed to provide basic functionality without JS. Enabling JavaScript may give you additional functionality on this site."
nav:
btnOpenNavigation: "Open navigation"
altJamulusIcon: "Jamulus Icon. Links to Wiki homepage"
wiki:
titleAdd: "– Jamulus Wiki"
40 changes: 40 additions & 0 deletions _data/en/navigation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
nav:
- title: Using Jamulus
subfolderitems:
- page: Getting Started
url: /wiki/Getting-Started
subsubfolderitems:
- page: Windows
url: /wiki/Installation-for-Windows
- page: Macintosh
url: /wiki/Installation-for-Macintosh
- page: Linux
url: /wiki/Installation-for-Linux
- page: Troubleshooting
url: /wiki/Client-Troubleshooting
- title: Running a Server
subfolderitems:
- page: Getting Started
url: /wiki/Running-a-Server
- page: Server Types
url: /wiki/Choosing-a-Server-Type
- page: Private Servers
url: /wiki/Running-a-Private-Server
- page: Troubleshooting
url: /wiki/Server-Troubleshooting
- title: More
subfolderitems:
- page: Configuration
url: /wiki/Command-Line-Options
- page: Tips & Tricks
url: /wiki/Tips-Tricks-More
- page: Compiling
url: /wiki/Compiling
- page: Demos
url: /wiki/Demos
- page: Contribution
url: /wiki/Contribution
- page: Privacy Statement
url: /wiki/Privacy-Statement


8 changes: 8 additions & 0 deletions _data/es/general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
footer:
alt:
github: "Repositorio Jamulus en GitHub"
facebook: "Grupo de Facebook de Jamulus"
sourceforge: "Descargar Jamulus de SourceForge.net"
btnEditAlt: "Edita esta página"
wiki:
titleAdd: "– Jamulus Wiki"
15 changes: 15 additions & 0 deletions _includes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# _includes folder
Holds fragments/files which are included in other sites.

general/languagecode folder: includes translated fragments which are included in every site.
wiki/languagecode folder: includes translated fragments which are included in the wiki.
general/nav.html file: template for the navigation in the wiki.
footer.html file: general template for the footer.
headtags.html file: holds tags which are included in every sites' <head>. This file can not be translated.
langselect.html file: holds template to generate a language picker.

## Translate new language

* **Important**: Every file in here is required to be translated. If the file doesn't exist, the jekyll build will be broken.
* copy wiki/en to wiki/languagecode and translate contents
* copy general/languagecode and translate contents
31 changes: 31 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<footer class="fx-row fx-row-around-xs" id="footer">
<div class="fx-col-100-xs fx-col-33-s fx-col-center-xs">
<a href="https://github.com/corrados/jamulus" target="_blank" rel="noreferrer">
<!-- https://icongr.am/fontawesome/github.svg?size=128&color=ffffff -->
<img src="{{ '/assets/img/github.svg'| relative_url }}" alt="{{ site.data.general.footer.alt.github }}" loading="lazy" class="fx-center" />
</a>
</div>
<div class="fx-col-100-xs fx-col-33-s fx-col-center-xs">
<!-- https://icongr.am/fontawesome/facebook-official.svg?size=128&color=ffffff -->
<a href="https://www.facebook.com/groups/619274602254947/" target="_blank" rel="noreferrer">
<img src="{{ '/assets/img/facebook.svg' | relative_url }}" alt="{{ site.data.general.footer.alt.facebook }}" id="fb_icon" loading="lazy" class="fx-center" />
</a>
</div>
<div class="fx-col-100-xs fx-col-33-s fx-col-center-xs">
<a href="https://sourceforge.net/projects/llcon" target="_blank" rel="noreferrer">
<img src="https://sourceforge.net/sflogo.php?type=17&amp;group_id=158367" alt="{{ site.data.general.footer.alt.sourceforge }}" class="fx-center" id="sflogo" />
</a>
</div>
<div id="copyright" class="fx-col-100-xs fx-row-center-xs">
{% include general/{{ site.active_lang }}/copyrightfooter.html %}
</div>
</footer>
<script>
var bl = window.navigator.language || window.navigator.userLanguage;
var dl = document.documentElement.lang;
var sl = "[{% for lng in site.languages %}'{{ lng }}',{% endfor %}]";
if (bl != dl && sl.includes(bl)) {
document.getElementById('langselect').classList.add('chlang');
document.getElementById('suglang').style.display = "block";
}
</script>
Loading

0 comments on commit 6170567

Please sign in to comment.