Skip to content

Commit

Permalink
Revert "Fix segmentation in 1-Index (#970)"
Browse files Browse the repository at this point in the history
This reverts commit 256a678.
  • Loading branch information
ignotus666 committed Dec 1, 2023
1 parent 8e93885 commit 9ddd997
Show file tree
Hide file tree
Showing 29 changed files with 107 additions and 119 deletions.
1 change: 1 addition & 0 deletions 1-de-index.html
1 change: 0 additions & 1 deletion 1-de-index.md

This file was deleted.

1 change: 1 addition & 0 deletions 1-es-index.html
1 change: 0 additions & 1 deletion 1-es-index.md

This file was deleted.

1 change: 1 addition & 0 deletions 1-fr-index.html
1 change: 0 additions & 1 deletion 1-fr-index.md

This file was deleted.

1 change: 1 addition & 0 deletions 1-index.html
1 change: 0 additions & 1 deletion 1-index.md

This file was deleted.

1 change: 1 addition & 0 deletions 1-it-index.html
1 change: 0 additions & 1 deletion 1-it-index.md

This file was deleted.

1 change: 1 addition & 0 deletions 1-ko_KR-index.html
1 change: 0 additions & 1 deletion 1-ko_KR-index.md

This file was deleted.

1 change: 1 addition & 0 deletions 1-nb_NO-index.html
1 change: 0 additions & 1 deletion 1-nb_NO-index.md

This file was deleted.

1 change: 1 addition & 0 deletions 1-nl-index.html
1 change: 0 additions & 1 deletion 1-nl-index.md

This file was deleted.

1 change: 1 addition & 0 deletions 1-pt_BR-index.html
1 change: 0 additions & 1 deletion 1-pt_BR-index.md

This file was deleted.

1 change: 1 addition & 0 deletions 1-pt_PT-index.html
1 change: 0 additions & 1 deletion 1-pt_PT-index.md

This file was deleted.

1 change: 1 addition & 0 deletions 1-zh_CN-index.html
1 change: 0 additions & 1 deletion 1-zh_CN-index.md

This file was deleted.

57 changes: 26 additions & 31 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.5)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0)
concurrent-ruby (1.2.2)
concurrent-ruby (1.1.10)
cssminify2 (2.0.1)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
execjs (2.9.1)
ffi (1.16.3)
execjs (2.8.1)
ffi (1.15.5)
forwardable-extended (2.6.0)
google-protobuf (3.24.4)
htmlcompressor (0.4.0)
http_parser.rb (0.8.0)
i18n (1.14.1)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jekyll (4.3.2)
jekyll (4.2.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3, >= 2.3.1)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (>= 0.3.6, < 0.5)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (>= 3.0, < 5.0)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
terminal-table (~> 2.0)
jekyll-minifier (0.1.10)
cssminify2 (~> 2.0)
htmlcompressor (~> 0.4)
Expand All @@ -42,43 +40,40 @@ GEM
uglifier (~> 4.1)
jekyll-paginate-v2 (3.0.0)
jekyll (>= 3.0, < 5.0)
jekyll-polyglot (1.6.0)
jekyll (>= 4.0, >= 3.0)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-polyglot (1.5.1)
jekyll (>= 3.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
json (2.6.3)
json (2.6.2)
json-minify (0.0.3)
json (> 0)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.8.0)
liquid (4.0.3)
listen (3.7.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 (5.0.3)
rake (13.0.6)
public_suffix (5.0.0)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.6)
rouge (4.1.3)
rexml (3.2.5)
rouge (3.30.0)
safe_yaml (1.0.5)
sass-embedded (1.69.4)
google-protobuf (~> 3.23)
rake (>= 13.0.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.5.0)
webrick (1.8.1)
unicode-display_width (1.8.0)

PLATFORMS
ruby
Expand Down
3 changes: 0 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ default_lang: "en"
exclude_from_localization: ["assets", "images", "css", "README.md", "manifest.json", "humans.txt", "sitemap.xml", "robots.txt", "404.html", "CNAME", "LICENSE.md"]
parallel_localization: true
a_rootpage: "https://jamulus.io"
markdown: kramdown
kramdown:
input: GFM

# Jamulus release binary links
download_root_link: "https://github.com/jamulussoftware/jamulus/releases/download/r3_10_0/"
Expand Down
8 changes: 4 additions & 4 deletions _po4a-tools/po4a-add-language.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ echo Creating .po files for "$new_lang"
# Go to root directory
cd ../

# Create symlinks for 1-index.md file
ln -s -r ./wiki/$new_lang/1-index.md ./1-$new_lang-index.md
# Create symlinks for 1-index.html file
ln -s -r ./wiki/$new_lang/1-index.html ./1-$new_lang-index.html
if [ $(echo $?) == 0 ] ; then
echo ''
echo 1-"$new_lang"-index.md symlink created for "$new_lang" in /
echo 1-"$new_lang"-index.html symlink created for "$new_lang" in /
else
echo Error creating 1-"$new_lang"-index.md symlink in /
echo Error creating 1-"$new_lang"-index.html symlink in /
exit 1
fi

Expand Down
10 changes: 5 additions & 5 deletions _po4a-tools/po4a-create-all-targets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ process_with_po4a () {
if [ $ext == yml ] ; then
FILE_FORMAT=yaml
OPTION="skip_array"
elif [[ $ext == html || "$filename" == *'-index' ]] ; then # '-index.md' has a markdown extension but is actually html and should be processed as such by po4a
elif [ $ext == html ] ; then
FILE_FORMAT=xml
OPTION="ontagerror=warn"
elif [ $ext == md ] ; then
Expand All @@ -128,11 +128,11 @@ process_with_po4a () {
echo "$filename.$ext" translated into "$lang"
fi

# Check if language is set correctly in '1-$lang-index.md'
# Check if language is set correctly in '1-$lang-index.html'
if [ $filename == '1-index' ] ; then
if ! grep -Fxq 'lang: "'$lang'"' "$WIKI_DIR/$lang/1-index.md" ; then
echo replacing incorrect language tag in 1-"$lang"-index.md;
sed -i '0,/lang: "[^"]*"/s/lang: "[^"]*"/lang: "'$lang'"/' "$WIKI_DIR/$lang/1-index.md"
if ! grep -Fxq 'lang: "'$lang'"' "$WIKI_DIR/$lang/1-index.html" ; then
echo replacing incorrect language tag in 1-"$lang"-index.html;
sed -i '0,/lang: "[^"]*"/s/lang: "[^"]*"/lang: "'$lang'"/' "$WIKI_DIR/$lang/1-index.html"
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion _po4a-tools/po4a-update-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ while IFS= read -r -d '' doc ; do
if [ $ext == yml ] ; then
FILE_FORMAT=yaml
OPTION="skip_array"
elif [[ $ext == html || "$filename" == *'-index' ]] ; then # '-index.md' has a markdown extension but is actually html and should be processed as such by po4a
elif [ $ext == html ] ; then
FILE_FORMAT=xml
OPTION="ontagerror=warn"
elif [ $ext == md ] ; then
Expand Down
60 changes: 60 additions & 0 deletions wiki/en/misc/1-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
title: "Jamulus ‒ Play music online. With friends. For free."
lang: "en"
permalink: /
layout: mainhomepage
ldjAppCategory: "Music"
ldjSlogan: "Play music online. With friends. For free."
ldjCreator: "Volker Fischer and contributors"
metadescription: "Jamulus is free and open source software that lets musicians perform music, rehearse or jam together, in real time over the Internet."
mAltProgIcon: "Jamulus icon"
mTSlogan: "Play music online. With friends. For free."
mTGetStartedNow: "Get started now!"
mTDownloadNow: 'Download now for'
mTPlatformsAnd: 'and'
mTOtherPlatforms: 'other platforms'
---
<div class="fx-row fx-row-center-xs" id="firstrow">
<div class="fx-col-100-xs">
<div itemprop="abstract">
<h2>What is Jamulus?</h2>
Jamulus lets you play, rehearse, or jam with your friends, your band, or anyone you find online. Play together remotely in time with high quality, low-latency sound on a normal broadband connection. <a href="wiki/Getting-Started" target="_blank" rel="noreferrer">Download it here</a>!
</div>
</div>
</div>
<div class="fx-row fx-row-center-xs" id="bannercontainer">
<div class="fx-col-100-xs">
<a href="wiki/Getting-Started">
<img alt="Jamulus Banner. Links to getting started page" src="{{ '/assets/img/jamulusbannersmall.png' | relative_url }}" id="jamulusbanner" loading="lazy" />
</a>
</div>
</div>
<div class="fx-row fx-row-center-xs">
<div class="fx-col-100-xs fx-col-50-l">
<h2>Jamulus worldwide</h2>
All over the world Jamulus allows choirs to rehearse and rock bands to play. Jamulus brings folk and classical musicians together. It's being used for remote music lessons,
in schools and universities, in private and in public — all in real time on the Internet, as if you were there in person.
<h2>Help needed?</h2>
<p>
Check out the <a href="wiki/Getting-Started" target="_blank" rel="noreferrer">documentation</a> and consider the <a href="wiki/Client-Troubleshooting"
target="_blank" rel="noreferrer">troubleshooting section</a>!
You can also ask on the <a href="https://github.com/jamulussoftware/jamulus/discussions" target="_blank" rel="noreferrer">forums</a>.
</p>
</div>
<div class="fx-col-100-xs fx-col-50-l">
<h2>Want to get involved?</h2>
<p>
Ideas? Found a bug? Want to contribute some code or help <a href="https://github.com/jamulussoftware/jamulus/blob/main/docs/TRANSLATING.md" title="Documentation for translation Jamulus">translating</a> Jamulus into your language? Since Jamulus is <a href="https://www.gnu.org/philosophy/free-sw.en.html" target="_blank" rel="noreferrer" title="What is free software?">free and open source software</a> (FOSS) licensed under the <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html" title="GNU General Public License, version 2" target="_blank" rel="noreferrer">GPL</a>, you can help us!<br>
Take a look at our <a href="wiki/Contribution">contribution guidelines</a> to find out how. Everybody is welcome!
</p>
<p>
<em>
For detailed information on how Jamulus works, see <a
href="/PerformingBandRehearsalsontheInternetWithJamulus.pdf">this paper by Volker Fischer (PDF)</a>.
</em>
</p>
</div>
<div class="fx-col-100-xs fx-txt-center">
<a href="wiki/Getting-Started" class="button" rel="noreferrer">{{ page.mTGetStartedNow }}</a>
</div>
</div>
64 changes: 0 additions & 64 deletions wiki/en/misc/1-index.md

This file was deleted.

0 comments on commit 9ddd997

Please sign in to comment.