unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: sirgazil <sirgazil@zoho.com>
To: 26006@debbugs.gnu.org
Subject: bug#26006: [Website] Integral update proposal
Date: Thu, 8 Jun 2017 14:06:47 -0500	[thread overview]
Message-ID: <57bc6255-c3a1-61e2-fee4-5b6f523a9885@zoho.com> (raw)
In-Reply-To: <pzFj7W63lwIY85c_wcCCmJBOZk6se9SVwTzz0VGqc-6LwpFUgAhyi6V3DmSTHgWQT-kdQ-FgLyF_B_P7qU7CCm1YggyVycXbTQS03i7qZc0=@protonmail.com>

Hi,

I have an incomplete implementation
(https://bitbucket.org/sirgazil/guixsd-website) of a static website that
includes the features illustrated in the mockups (the features that fit
in a static website).

Compared to the current website, this code has a different organization
(see the "Framework" section below). I'm sending this message because I
think this is as far as I can go with the implementation (found some
problems I haven't figured out how to solve, and I'm not skilled enough
to manipulate packages).

This implementation is missing the following parts:

1. New screenshots
2. Packages pages
   1. Package detail page
   2. Packages issues page
   3. Packages reproducibility page
   4. Packages JSON file

To complete part (1) someone could provide the screenshots (ideally
1920×1080 px) in JPG and add them to the "static/media/img" directory,
and update the list of screenshots in "apps/base/data.scm".

To complete (2), there are some package related procedures missing
(https://bitbucket.org/sirgazil/guixsd-website/issues?status=new&status=open).
I tried to use the code that is already in the current website, but
couldn't figure things out.

To complete part (2.1), there is an issue to solve: package pages go in
paths like "/packages/blender-3.0/", but running "haunt build" with
pages on paths that include "." will render the pages with all the HTML
content inside a pre element. David, the maintainer of Haunt, does not
know yet why this would happen. If this issue is solved, there are
already helper builders in "apps/packages/builders.scm" to generate all
the pages.

So, for now, the packages pages are working as in the current website,
but not using tables (to make it easier to adapt the page to several
screen widths), and packages are distributed in numbered pages to avoid
big HTML pages that take too long to load.

Also, the JavaScript code that gets package build status is not
integrated (couldn't figure this one out either).

To complete (2.2), (2.3), and (2.4) someone could add helper builders to
the packages app, and recycle the related SXML pages already used in the
current website.


Framework
=========

The website is composed by apps; for example, a base app, a blog app, a
packages app. An app is a directory with Scheme modules that *usually*
look like this:

apps/abc
├── builder.scm
├── types.scm
├── data.scm
├── utils.scm
└── templates
    ├── components.scm
    ├── some-page.scm
    └── another-page.scm

The builder file contains a Haunt builder procedure and helper builders
that build the web resources of an app. In the types file there are data
type definitions for the app (for example: screenshot, download,
lint-issue, etc.). The data file contains instances of the defined data
types. The utils file contains helper procedures for an application. The
template directory contains SHTML, SXML, SATOM, SJSON templates to build
the web resources provided by an application. The components module in
the templates directory has template components that are used in several
templates or even in other apps.

All apps are "plugged" to the website by adding their builders to the
site object in the "haunt.scm" file.

Currently, there is also an aux app that contains procedures not
particular to any app.

If you have some time, take a look at it and let me know what you think.
I can change *anything* that you think is inefficient, horrible or
whatever. I hope it is not a mess :)


Best,


-- 
https://sirgazil.bitbucket.io/

  parent reply	other threads:[~2017-06-08 18:50 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-07  2:02 bug#26006: [Website] Integral update proposal sirgazil
2017-03-07 11:16 ` ng0
2017-03-07 12:53 ` Catonano
2017-03-07 14:13 ` Ludovic Courtès
2017-03-10 16:46   ` sirgazil
2017-03-10 21:05     ` Ludovic Courtès
2017-10-01 11:02   ` ng0
2017-10-02  7:50     ` Ludovic Courtès
2017-10-02  8:36       ` ng0
2017-10-02  9:10         ` Ludovic Courtès
2017-06-08 19:06 ` sirgazil [this message]
2017-06-13 22:08   ` Ludovic Courtès
2017-06-14 20:36     ` sirgazil
2017-06-15  7:59       ` Ludovic Courtès
2017-06-16  2:52         ` sirgazil
2017-06-16  7:05           ` Ludovic Courtès
2017-06-16 14:46             ` sirgazil
2017-06-17  4:57               ` Catonano
2017-06-17  7:16                 ` Catonano
2017-06-17 15:46                   ` sirgazil
2017-06-17 16:09                     ` Catonano
2017-06-17 16:41                       ` sirgazil
2017-06-17 17:12                         ` Catonano
2017-06-17 18:11                           ` sirgazil
2017-06-17 15:19                 ` sirgazil
2017-06-17 15:19                   ` Catonano
2017-07-29 17:53               ` Ludovic Courtès
2017-08-01 22:13                 ` sirgazil
2017-12-06 17:10                   ` bug#26006: New web site is on line! Ludovic Courtès
2017-12-06 17:55                     ` Alex Sassmannshausen
2017-12-06 22:10                       ` Adonay Felipe Nogueira
2017-12-06 22:10                     ` Adonay Felipe Nogueira
2017-12-07  8:54                       ` Ludovic Courtès
2017-12-07  3:01                     ` sirgazil
2017-12-07  9:16                     ` Chris Marusich
2017-12-07 17:10                     ` pelzflorian (Florian Pelz)
2017-12-07 20:58                       ` Ludovic Courtès
2017-12-08 18:42                       ` Quiliro Ordonez Baca
2017-12-08 19:07                         ` pelzflorian (Florian Pelz)
2017-07-01 14:26   ` bug#26006: [Website] Integral update proposal Ludovic Courtès
2017-07-04 20:00     ` sirgazil
2017-07-04 20:09       ` Catonano
2017-07-05  0:45         ` sirgazil
2017-07-04 21:24       ` Ludovic Courtès
2017-07-05  1:26         ` sirgazil

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=57bc6255-c3a1-61e2-fee4-5b6f523a9885@zoho.com \
    --to=sirgazil@zoho.com \
    --cc=26006@debbugs.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).