2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/guix-artwork.git synced 2023-12-14 05:33:02 +01:00
Commit graph

828 commits

Author SHA1 Message Date
Florian Pelz
6933201109
website: media: Do not localize video page URLs.
* website/apps/media/types.scm (<video>, video):
Add new field for the page URL subpath.
* website/apps/media/data.scm (playlists): Use it.
* website/apps/media/utils.scm (video->url): Compute page URL from it.
2020-07-26 15:43:02 +02:00
Florian Pelz
877d54caf1
website: apps: Mark all files for translation.
* website/po/guix-website.pot: New file.
* website/apps/base/utils.scm (manual-url-with-language): New
procedure.
(locale-display-name): New procedure.
(guix-url): Use localized URLs by default.
* website/apps/base/templates/components.scm (manual-href,
manual-link-yellow): New procedures.
(breadcrumbs, contact->shtml, navbar): Mark for translation.
* website/apps/base/data.scm (contact-media): Mark for
translation.
* website/apps/base/templates/about.scm (about-t): Mark for
translation.
* website/apps/base/templates/contact.scm (contact-t): Mark for
translation.
* website/apps/base/templates/contribute.scm (contribute-t): Mark for
translation.
* website/apps/base/templates/donate.scm (donate-t): Mark for
translation.
* website/apps/base/templates/graphics.scm (graphics-t): Mark for
translation.
* website/apps/base/templates/help.scm (help-t): Mark for translation.
* website/apps/base/templates/home.scm (home-t): Mark for translation.
* website/apps/base/templates/irc.scm (irc-t): Mark for translation.
* website/apps/base/templates/menu.scm (menu-t): Mark for translation.
* website/apps/base/templates/security.scm (security-t): Mark for
translation.
* website/apps/base/templates/theme.scm (theme): Mark for translation.
* website/apps/blog/templates/components.scm (post-preview, sidebar):
Mark for translation.
* website/apps/blog/templates/feed.scm (atom-feed-t): Mark for
translation.
* website/apps/blog/templates/post-list.scm (post-list-t): Mark for
translation.
* website/apps/blog/templates/post.scm (post-t): Mark for translation.
* website/apps/blog/templates/tag.scm (tag-t): Mark for translation.
* website/apps/download/data.scm (home-t): Mark for translation.
* website/apps/download/templates/components.scm (system-downloads):
Mark for translation.
* website/apps/download/templates/download.scm (download-t): Mark for
translation.
* website/apps/download/templates/download-latest.scm (images,
image-download, download-latest-t): Mark for
translation.
* website/apps/media/data.scm (playlists, screenshots):
Mark for translation.
* website/apps/media/templates/components.scm (video->shtml,
video-content): Mark for translation.
* website/apps/base/templates/screenshot.scm (screenshot-t):
Mark for translation.
* website/apps/media/templates/screenshots-overview.scm
(screenshots-overview-t): Mark for translation.
* website/apps/media/templates/video.scm (video-t): Mark for translation.
* website/apps/media/templates/video-list.scm (video-list-t):
Mark for translation.
* website/apps/packages/templates/components.scm (detailed-package-preview,
letter-selector, sidebar, supported-systems->shtml): Mark for translation.
* website/apps/packages/templates/detailed-index.scm (detailed-index-t):
Mark for translation.
* website/apps/packages/templates/detailed-package-list.scm
(detailed-package-list-t): Mark for translation.
* website/apps/packages/templates/index.scm (index-t): Mark for translation.
* website/apps/packages/templates/package-list.scm (package-list-t):
Mark for translation.
* website/apps/packages/templates/package.scm (package-t): Mark for
translation.
2020-07-26 15:43:02 +02:00
Florian Pelz
eff4837177
website: Add custom xgettext to extract from nested sexps for i18n.
* website/po/POTFILES: New file.  List apps files here.
* website/po/LINGUAS: New file.  List en_US lingua.
* website/po/ietf-tags.scm: New file.  Add association for en_US lingua.
* website/scripts/sexp-xgettext.scm: New file for generating a POT file.
(<keyword-spec>, <po-entry>, <construct-fold-state>): New record types.
(combine-duplicate-po-entries, complex-keyword-spec?, parse-scheme-file,
po-equal?, write-po-entry, update-ecomments-string!, update-file-name!,
update-old-line-number!, update-line-number!, incr-line-number!,
incr-line-number-for-each-nl!, current-ref, make-simple-po-entry,
matching-keyword, nth-exp, more-than-one-exp?, token->string-symbol-or-keyw,
complex-marked-list->po-entries, construct-po-entries, tag,
construct-msgid-and-po-entries, scheme-file->po-entries): New procedures.
(%keyword-specs, %options, %comments-line, %ecomments-string, %file-name,
%old-line-number, %line-number, %files-from-port, %source-files,
%output-po-entries, %output-port): New variables.
* website/sexp-xgettext.scm: New file with module for looking up
translations.
(%complex-keywords, %simple-keywords, %plural-numbers, %linguas):
New variables.
(<construct-fold-state>, <deconstruct-fold-state>): New record types.
(set-complex-keywords!, set-simple-keywords!, gettext-keyword?, tag,
sexp->msgid, deconstruct): New procedures.
(sgettext, spgettext, sngettext, snpgettext): New macro helpers.
* website/apps/i18n.scm: New file.
(G_, N_, C_, NC_, ietf-tags-file-contents): New syntax to use for i18n.
(%current-ietf-tag, %current-lang, %current-lingua): New variables.
(builder->localized-builder, builders->localized-builders,
localized-root-path, first-value): New utility procedures.
(<asset>, <page>): New imports from Haunt.
* website/haunt.scm: Wrap each builder to build the locale set in LC_ALL.
* website/.guix.scm: Make Haunt build directory writable so Haunt can
overwrite duplicate assets.  Convert PO files to MO files and build for
each lingua.
* website/README: Adapt build instructions for i18n.
* website/i18n-howto: New file with usage instructions.
2020-07-26 15:43:01 +02:00
Florian Pelz
32de6f95a1
website: Refactor GUIX_WEB_SITE_ROOT_PATH handling.
* website/apps/base/utils.scm (guix-url): Move the logic that
computes which root path to use from the getter to ...
(guix-root-url-path): ... the setter here.
2020-07-26 15:43:01 +02:00
Florian Pelz
e612e97679
website: Handle GUIX_WEB_SITE_ROOT_PATH not ending in a slash.
* website/apps/base/utils.scm (guix-root-url-path): Add slash if missing.
2020-07-26 15:43:01 +02:00
Florian Pelz
58e9e29649
website: Fix building with GUIX_WEB_SITE_ROOT_PATH.
* website/.guix.scm: Retain GUIX_WEB_SITE_ROOT_PATH in the build expression.
2020-07-26 15:43:01 +02:00
Danjela Lura
b433d8452b
website: Add post about the Guix Data Service Outreachy internship.
* website/posts/improve-internationalization-support-for-the-guix-data-service.md:
New file
* website/static/blog/img/guix-data-service-audacity.png: New file.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-07-22 23:07:49 +01:00
Ludovic Courtès
d2e531d7b3
website: ganeti-on-guix: Mark Scheme snippets as such.
* website/posts/ganeti-on-guix.md: Use "```scheme" where appropriate.
2020-07-20 12:33:56 +02:00
Marius Bakke
74551fd90b
website: ganeti-on-guix: Tweak and publish.
* website/drafts/ganeti-on-guix.md: Do some final adjustments and move
from here ...
* website/posts/ganeti-on-guix.md: ... to here.
2020-07-17 14:50:32 +02:00
Marius Bakke
6a477cd952
website: Add draft of a Ganeti cluster post.
* website/drafts/ganeti-on-guix.md: New file.
2020-07-16 22:27:45 +02:00
Ludovic Courtès
7b96e28089
website: data: Add "guix-science" mailing list.
* website/apps/base/data.scm: Add "guix-science".
2020-07-14 15:25:00 +02:00
zimoun
35bb77108f
website: Add integrity to JSON sources.
* website/apps/packages/builder.scm (origin->json): Add integrity field using
SRI format.
(sources-json-builder): Add "revision" field to "sources.json".

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-07-06 12:19:32 +02:00
Mathieu Othacehe
0b92c81553
website: download: Add Hurd image.
* website/apps/download/templates/download-latest.scm (images): Add Hurd image.
2020-07-06 09:12:29 +02:00
Mathieu Othacehe
33a962e5a6
website: download: Add image label support.
* website/apps/download/templates/download-latest.scm (default-system): New
variable,
(<image>)[labels]: new field,
(images): adapt accordingly,
(image-download): use the new label field.
2020-07-06 09:12:29 +02:00
Ludovic Courtès
80ac321448
website: securing-updates: Fix typo.
* website/posts/securing-updates.md: Fix typo.
2020-07-01 17:49:13 +02:00
Ludovic Courtès
4b8834549e
website: securing-updates: Add illustration for introductions.
* website/posts/securing-updates.md: Add picture with introduction and
comment it.
* website/static/blog/img/commit-graph-intro.dot,
website/static/blog/img/commit-graph-intro.svg: New files.
2020-07-01 17:35:30 +02:00
Ludovic Courtès
09a79b0d43
website: securing-updates: Fix typos, tweak wording.
* website/posts/securing-updates.md: Fix typos, tweak wording.
2020-07-01 17:11:40 +02:00
Ludovic Courtès
2dbd8c2c1e
website: commit-authentication: Publish.
* website/drafts/commit-authentication.md: Rename to...
* website/posts/securing-updates.md: ... this.
* website/static/blog/img/commit-graph.svg: New file.
2020-07-01 16:48:04 +02:00
Ludovic Courtès
d26a1ab6e6
website: commit-authentication: Add header and footer.
* website/drafts/commit-authentication.md: Add header and footer.
2020-07-01 16:23:12 +02:00
Ludovic Courtès
b3d1e0f1fa
website: commit-authentication: Final words.
* website/drafts/commit-authentication.md: Finish related work and last
section.
2020-07-01 15:30:25 +02:00
Ludovic Courtès
d0b9db76df
website: commit-authentication: Start "Related work".
* website/drafts/commit-authentication.md: Begin "Related work".
2020-07-01 00:33:56 +02:00
Ludovic Courtès
363e6b0e0d
website: commit-authentication: Fix typos.
Thanks to Marius & Ricardo.

* website/drafts/commit-authentication.md: Fix typos.
2020-07-01 00:32:52 +02:00
Jan (janneke) Nieuwenhuizen
09e39e7ad5
website: commit-authentication: Fix typos.
* website/drafts/commit-authentication.md: Fix typos.
2020-06-30 22:36:18 +02:00
Ludovic Courtès
e05a0e7559
website: commit-authentication: Add section on SHA-1.
* website/drafts/commit-authentication.md (SHA-1): New section.
2020-06-30 17:07:44 +02:00
Ludovic Courtès
437e0cbc16
website: commit-authentication: Write about the implementation and process.
* website/drafts/commit-authentication.md (A long process): Write.
2020-06-30 16:22:33 +02:00
Ludovic Courtès
93f11d6206
website: Add draft of a post about commit authentication & all.
* website/drafts/commit-authentication.md,
website/static/blog/img/commit-graph.dot: New files.
2020-06-29 22:35:02 +02:00
Mathieu Othacehe
c2b531a1e1
website: Use "guile" package from the latest Guix.
* website/.guix.scm (inferior-package): New procedure,
(latest-guile): new variable,
(haunt-with-latest-guile): renamed from haunt-with-guile-3.0.3, also use
"inferior-package" to make sure to use the same Guile as the one of latest
Guix,
(build): adapt accordingly.
2020-06-24 19:47:28 +02:00
Mathieu Othacehe
0efff67919
website: Fix build follow-up.
* website/.guix.scm: Use guile-3.0/libgc-7 package to build "guix-web-site".
2020-06-23 20:29:21 +02:00
Mathieu Othacehe
f5bbb601e5
website: Fix build.
* website/.guix.scm (haunt-with-guile-3.0.3): New variable,
(build): use it instead of "haunt".
2020-06-23 20:13:27 +02:00
Mathieu Othacehe
36fdde5b3e
website: download: Use a responsive design for latest downloads.
Replicate the "/download" page style which is responsive.

* website/apps/download/templates/download-latest.scm (<image>)[title]: New
field,
[system]: turn into "systems",
(images): adapt accordingly,
(image-download): renamed from "image-table-row". Return a div block
representing an image, instead of a table row,
(download-latest-t): remove the image table, and call image-download.

* website/static/base/css/download.css (.detail-btn): New class copied from
.signature-btn.
2020-06-23 11:02:42 +02:00
Mathieu Othacehe
6b2e57b2e6
website: download: Filter on image system.
* website/apps/download/templates/download-latest.scm (<image>)[system]: New
field,
(build-query, build-detail-url, build-product-download-url): add a system
argument and use it in the query,
(image-table-row): adapt accordingly.
2020-06-22 13:57:23 +02:00
Mathieu Othacehe
3eb673ae05
website: Filter on successful builds.
* website/apps/download/templates/download-latest.scm (build-query): New
procedure,
(build-detail, build-product-download-url): get the query string from the
above procedure.
2020-06-22 13:49:44 +02:00
Mathieu Othacehe
31afa39afb
website: Update build script.
Do not use deprecated packages in build script.

* website/.guix.scm: Do not use deprecated Guile 3.0 transition packages.
2020-06-22 10:52:06 +02:00
Mathieu Othacehe
7fb003ddb1
website: Use static links for latest downloads.
CI build products links are created at build-time, by using Cuirass api. This
can not work if the website is built as a derivation, without network access.

Do not rely on "latest-builds" procedure and use the new static Cuirass routes
"/search/latest" and "/search/latest/<build-product>" to provide static
download links.

* website/apps/download/templates/download-latest.scm (default-spec): New
variable,
(build-detail-url): remove url argument and use "/search/latest" route,
(build-product-download-url): remove url and use
"/search/latest/<build-product>" route,
(products-latest-urls): remove it,
(download-latest-t): adapt accordingly.
2020-06-22 10:25:08 +02:00
Mathieu Othacehe
2e2f2ba7e7
website: Add "latest" downloads.
* website/apps/download/templates/download-latest.scm: New file.
* website/apps/download/builder.scm (download-latest-builder): New variable,
(builder): add it.
* website/apps/base/templates/components.scm (navbar): Add a dropdowm menu for
"Download" with "Stable" and "Latests" items.
* website/static/base/css/common.css (download-table-box): New class.
2020-06-17 16:10:25 +02:00
Jan (janneke) Nieuwenhuizen
85584ac2bb
website: further-reduced-binary-bootstrap: Fix broken link.
* website/posts/further-reduced-binary-bootstrap.md: Remove double
prefix in "again decided to sponsor this work" link.
2020-06-16 08:46:08 +02:00
Jan (janneke) Nieuwenhuizen
bd1cbad80d
website: further-reduced-binary-bootstrap: Publish.
* website/drafts/further-reduced-binary-bootstrap.md: Move to...
* website/posts/further-reduced-binary-bootstrap.md: ... here.
2020-06-15 11:49:59 +02:00
Jan (janneke) Nieuwenhuizen
48cb6beacc
website: further-reduced-binary-seed: Several updates.
* website/drafts/further-reduced-binary-bootstrap.md: Add some urls,
use MiB, add some ancient version numbers, center ascii graph.
2020-06-15 08:13:33 +02:00
Jan (janneke) Nieuwenhuizen
ec9098bed6
website: Update draft further-reduced binary seed post.
* website/drafts/further-reduced-binary-bootstrap.md: Mention
"trusting trust" as a symptom and and add additions by Danny
Milosavljevic and Timothy Sample.
2020-06-14 09:12:26 +02:00
Royce Strange
bfec2a3208
website: Fix duplicated packages in the package-list
Fixes <https://bugs.gnu.org/36394>.

* website/apps/packages/data.scm (%package-list):
Filter out replaced packages.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-06-13 22:41:59 +02:00
Ludovic Courtès
f8670f9507
website: Remove stale references to hydra.gnu.org.
Fixes <https://bugs.gnu.org/41783>.
Reported by Xu Chunyang <xuchunyang56@gmail.com>.

* website/apps/base/data.scm,
website/apps/base/templates/contribute.scm,
website/apps/packages/templates/components.scm,
website/apps/packages/templates/detailed-index.scm,
website/apps/packages/templates/index.scm,
website/static/packages/js/build-status.js: Refer to ci.guix.gnu.org
instead of hydra.gnu.org.
2020-06-13 22:24:39 +02:00
Jan (janneke) Nieuwenhuizen
f780cdfcb3
website: Update draft further-reduced binary seed post.
* website/drafts/further-reduced-binary-bootstrap.md: Update with
additions by Ludovic Courtès.
2020-06-13 09:34:46 +02:00
Jan (janneke) Nieuwenhuizen
ce65d93a09
website: Add draft post about the further-reduced binary bootstrap.
* website/drafts/further-reduced-binary-bootstrap.md: New file.
2020-06-12 13:02:55 +02:00
zimoun
991684dfa5
website: Add fetch methods to JSON sources and packages list.
* website/apps/packages/builder.scm (origin->json): Add 'url-fetch/tarbomb',
  'url-fetc/zipbomb', 'svn-multi-fetch' and 'hg-fetch' methods.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-06-06 12:28:51 +02:00
Ludovic Courtès
4efa5ce1cc
website: grafts-continued: Fix typos.
Thanks to Nicolò Balzarotti and Timothy Sample.

* website/posts/grafts-continued.md: Fix typos.
2020-05-17 23:55:05 +02:00
17fd2bc147
website: Add post about shepherd user services 2020-05-17 22:16:29 +03:00
Ludovic Courtès
f8896dc5b1
website: contribute: Link more prominently to issues.guix.gnu.org.
* website/apps/base/templates/contribute.scm (contribute-t): Add links
to issues.guix.gnu.org.
2020-05-13 22:00:46 +02:00
Gábor Boskovits
b3584ebbf9
website: Add post about Outreachy and GSoC 2020. 2020-05-12 11:45:55 +02:00
Ludovic Courtès
d8c7ec6db0
website: grafts-continued: Add "About" footer.
* website/posts/grafts-continued.md (About GNU Guix): New section.
2020-05-06 16:04:30 +02:00
Ludovic Courtès
cb2422de87
website: grafts-continued: Publish.
* website/drafts/grafts-continued.md: Move to...
* website/posts/grafts-continued.md: ... here.  Add date and tag.
2020-05-06 14:49:41 +02:00