unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luis Felipe <sirgazil@zoho.com>
To: guix-devel <guix-devel@gnu.org>
Subject: Recommended way of packaging web themes
Date: Wed, 8 Nov 2023 23:10:51 +0000	[thread overview]
Message-ID: <a225d6f5-aceb-139c-84a2-fb8380dfc424@zoho.com> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 1690 bytes --]

Hi,

With "web theme" I mean a directory containing CSS, JavaScript, images 
and other files that define a particular look and feel for a website, 
web application or other kinds of products that use web technologies.

For example, I'm looking into packaging the current Guix's website theme 
and a new theme that I've been planning to develop (based on the 
former). If these were packaged, I think it would be easier for other 
Guix websites and services (e.g. CI, QA, DATA) to use them and hopefully 
achieve a more uniform look and feel for the network of Guix web fronts.

I've experimented a bit and packaged both themes:

https://codeberg.org/luis-felipe/guix-channel-x/src/branch/trunk/luflac-x/packages/web-themes.scm

Once installed, I can access both themes from a custom path indicated by 
a non-standard environment variable (WEB_THEMES_PATH, currently set by 
the defined packages):

#+begin_example
❯ guix shell -L luflac-x guile guix-website-theme-initial 
guix-website-theme-aureus
❯ guile
...
 > (getenv "WEB_THEMES_PATH")
$1 = "/gnu/store/gc0szk5h3s45d605ikzyxxxc4z2b9l3l-profile/www/themes"
 > (define guix-icon-path (string-append $1 "/aureus/base/img/icon.svg"))
 > (file-exists? guix-icon-path)
$2 = #t
#+end_example

However, while this seems to work alright, I'm not confident it is the 
right thing to do...

How would you recommend packaging these kinds of themes?

Are there any standard paths and environment variables for web themes? 
Or should one use Freedesktop.org's XDG_DATA_DIRS and their specified 
locations instead?

Thanks in advance,

-- 
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2881 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

             reply	other threads:[~2023-11-08 23:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-08 23:10 Luis Felipe [this message]
2023-11-08 23:44 ` Recommended way of packaging web themes Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-11-09  7:56   ` Tomas Volf
2023-11-09 15:11     ` Luis Felipe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a225d6f5-aceb-139c-84a2-fb8380dfc424@zoho.com \
    --to=sirgazil@zoho.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).