Skip to content

Commit 3bce224

Browse files
committed
Default branch is now main
1 parent 8d01362 commit 3bce224

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

app/assets/stylesheets/contrib/solarized/langs.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Linuxfr default stylesheet for languages
3-
https://github.com/linuxfrorg/linuxfr.org/blob/master/app/assets/stylesheets/common/langs.css.scss
3+
https://github.com/linuxfrorg/linuxfr.org/blob/main/app/assets/stylesheets/common/langs.css.scss
44
*/
55
// Flags for the languages
66
li.link[lang="cn"] {

app/assets/stylesheets/contrib/solarized/statistics.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Linuxfr default stylesheet for statistics
3-
https://github.com/linuxfrorg/linuxfr.org/blob/master/app/assets/stylesheets/common/statistics.css.scss
3+
https://github.com/linuxfrorg/linuxfr.org/blob/main/app/assets/stylesheets/common/statistics.css.scss
44
*/
55
@mixin solarized_statistics(
66
$rebase03,

config/deploy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
task :prod do
3939
set :vserver, "prod"
4040
set :user, "linuxfr"
41-
set :branch, "master"
41+
set :branch, "main"
4242
set :rails_env, "production"
4343
end
4444

db/pages/aide.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ <h2 id="aide-karma">Système de karma <a href="#aide-karma" class="anchor">¶</a
313313

314314
<p>Le karma augmente donc lorsque l’on reçoit des notes « pertinent » (quel que soit le type de contenu ou le commentaire noté) ou que l’on publie des dépêches.</p>
315315

316-
<p>Le nombre d’avis quotidiens est déterminé à partir du karma. La formule mathématique est <code>max(0, min(3 + karma/10, 100))</code> (<a href="https://github.com/linuxfrorg/linuxfr.org/blob/master/app/models/account.rb">source</a>) et en français cela donne le tableau qui suit.</p>
316+
<p>Le nombre d’avis quotidiens est déterminé à partir du karma. La formule mathématique est <code>max(0, min(3 + karma/10, 100))</code> (<a href="https://github.com/linuxfrorg/linuxfr.org/blob/main/app/models/account.rb">source</a>) et en français cela donne le tableau qui suit.</p>
317317

318318
<table>
319319
<tr><th>Karma</th><th>Nombre d’avis quotidiens</th></tr>
@@ -328,7 +328,7 @@ <h2 id="aide-karma">Système de karma <a href="#aide-karma" class="anchor">¶</a
328328
<tr><td>970 ou plus</td><td>100</td></tr>
329329
</table>
330330

331-
<p>Le score de base des commentaires dépend du karma. La formule mathématique est <code>E(log10(karma)) - 1</code>, où <code>E()</code> est la partie entière inférieure si le karma est strictement positif. Et c’est <code>max(-10, -2 + E(karma/30))</code> pour un karma négatif ou nul. Avec un karma à 0, ça donne un score de -2 (<a href="https://github.com/linuxfrorg/linuxfr.org/blob/master/app/models/comment.rb">source</a>). En français cela donne le tableau qui suit.</p>
331+
<p>Le score de base des commentaires dépend du karma. La formule mathématique est <code>E(log10(karma)) - 1</code>, où <code>E()</code> est la partie entière inférieure si le karma est strictement positif. Et c’est <code>max(-10, -2 + E(karma/30))</code> pour un karma négatif ou nul. Avec un karma à 0, ça donne un score de -2 (<a href="https://github.com/linuxfrorg/linuxfr.org/blob/main/app/models/comment.rb">source</a>). En français cela donne le tableau qui suit.</p>
332332

333333
<table>
334334
<tr><th>Karma</th><th>Score de base des commentaires</th></tr>
@@ -350,13 +350,13 @@ <h2 id="aide-karma">Système de karma <a href="#aide-karma" class="anchor">¶</a
350350
<tr><td>10 milliards</td><td>10</td></tr>
351351
</table>
352352

353-
<p>Pour pouvoir écrire un journal, publier un lien ou discuter sur la tribune, il faut avoir un karma supérieur strictement à 0, et pour éditer une page de wiki, il faut un karma strictement supérieur à 20 (sources <a href="https://github.com/linuxfrorg/linuxfr.org/blob/master/app/models/diary.rb">journal</a>, <a href="https://github.com/linuxfrorg/linuxfr.org/blob/master/app/models/bookmark.rb">lien</a>, <a href="https://github.com/linuxfrorg/linuxfr.org/blob/master/app/models/wiki_page.rb">wiki</a> et <a href="https://github.com/linuxfrorg/linuxfr.org/blob/master/app/models/account.rb">tribune</a>).</p>
353+
<p>Pour pouvoir écrire un journal, publier un lien ou discuter sur la tribune, il faut avoir un karma supérieur strictement à 0, et pour éditer une page de wiki, il faut un karma strictement supérieur à 20 (sources <a href="https://github.com/linuxfrorg/linuxfr.org/blob/main/app/models/diary.rb">journal</a>, <a href="https://github.com/linuxfrorg/linuxfr.org/blob/main/app/models/bookmark.rb">lien</a>, <a href="https://github.com/linuxfrorg/linuxfr.org/blob/main/app/models/wiki_page.rb">wiki</a> et <a href="https://github.com/linuxfrorg/linuxfr.org/blob/main/app/models/account.rb">tribune</a>).</p>
354354

355-
<p>Pour pouvoir afficher l’adresse de courriel associée à son compte ou l’adresse de son site personnel ou de son compte Mastodon ou son adresse XMPP, il faut avoir un karma strictement supérieur à 0 (<a href="https://github.com/linuxfrorg/linuxfr.org/blob/master/app/helpers/users_helper.rb">source</a>).</p>
355+
<p>Pour pouvoir afficher l’adresse de courriel associée à son compte ou l’adresse de son site personnel ou de son compte Mastodon ou son adresse XMPP, il faut avoir un karma strictement supérieur à 0 (<a href="https://github.com/linuxfrorg/linuxfr.org/blob/main/app/helpers/users_helper.rb">source</a>).</p>
356356

357357
<p>Le karma a un effet sur les <a href="#aide-moteursderecherche">indications données aux moteurs de recherche externes</a> et un faible karma conduit à des commentaires et contenus non indexés.</p>
358358

359-
<p>La mise à jour du karma est <a href="https://github.com/linuxfrorg/linuxfr.org/blob/master/lib/tasks/linuxfr.rake">quotidienne</a>, ce qui entraîne donc un décalage temporel de son évolution, tandis que les notes sont mises à jour immédiatement.</p>
359+
<p>La mise à jour du karma est <a href="https://github.com/linuxfrorg/linuxfr.org/blob/main/lib/tasks/linuxfr.rake">quotidienne</a>, ce qui entraîne donc un décalage temporel de son évolution, tandis que les notes sont mises à jour immédiatement.</p>
360360

361361
<h2 id="aide-toolbar">Barre d’outils <a href="#aide-toolbar" class="anchor"></a></h2>
362362

deployment/linuxfr-img/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM docker.io/debian:bullseye-slim as build
33
LABEL org.opencontainers.image.title="LinuxFr.org image caching service"
44
LABEL org.opencontainers.image.description="Store external images into a cache to not flood external website"
55
LABEL org.opencontainers.image.source="https://github.com/linuxfrorg/img-LinuxFr.org"
6-
LABEL org.opencontainers.image.url="https://github.com/linuxfrorg/linuxfr.org/blob/master/Container.md"
6+
LABEL org.opencontainers.image.url="https://github.com/linuxfrorg/linuxfr.org/blob/main/Container.md"
77
LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
88
LABEL org.opencontainers.image.version="2.1"
99
LABEL org.opencontainers.image.authors="Adrien Dorsaz <adrien@adorsaz.ch>"

deployment/linuxfr.org/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM docker.io/debian:bullseye-slim
33
LABEL org.opencontainers.image.title="LinuxFr.org website"
44
LABEL org.opencontainers.image.description="Run LinuxFr.org Ruby on Rails website"
55
LABEL org.opencontainers.image.source="https://github.com/linuxfrorg/linuxfr.org"
6-
LABEL org.opencontainers.image.url="https://github.com/linuxfrorg/linuxfr.org/blob/master/Docker.md"
6+
LABEL org.opencontainers.image.url="https://github.com/linuxfrorg/linuxfr.org/blob/main/Docker.md"
77
LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
88
LABEL org.opencontainers.image.version="2.0"
99
LABEL org.opencontainers.image.authors="Adrien Dorsaz <adrien@adorsaz.ch>"

0 commit comments

Comments
 (0)