← Back to team overview

ubiquity-slideshow team mailing list archive

Defaults builder support, and alpha 3!

 

First, just a friendly reminder that alpha 3 is coming up really soon.
If you need to change any copy, now would be a great time to release
something because you'll get a lot of testing from people installing the
iso :)

Speaking of ISOs, I am proposing a merge for this branch over here:
https://code.launchpad.net/~dylanmccall/ubiquity-slideshow-ubuntu/defaults-builder-support/+merge/116035
I'd just like to make sure it doesn't bother anyone before I merge.

The merge request has an explanation of the changes. The quick
explanation is this changes the build directory so we can have an
"extra" directory, added by another package (such as
ubuntu-defaults-it), with custom slides and screenshots. Nothing outside
the slideshow itself (and, for that matter, slideshow.js) should need to
be concerned about this, but I might be missing something.

Some details:
      * directory.json and extra/directory.json are loaded using async
        ajax calls from slideshow.js. The slideshow does not appear
        until those are loaded. This shouldn't cause any problems, but
        it's worth noting extra/directory.json doesn't exist most of the
        time, so we pretty well expect a 404 error. It's a tad silly :)
              * For what it's worth, that can be solved if it ever
                becomes a problem. The slideshow can ship a default
                extra/directory.js and the defaults package just needs
                to do some of that fancy dpkg-divert stuff.
              * We know it's a problem if, at any point, ever, a user
                sees a blank page with an arrow (and nothing else)
                instead of a slideshow.
      * New hash parameter format: index.html#locale=it&rtl. (Instead of
        the previous weird index.html#?locale=it?rtl format). The
        slideshow supports both formats at this point.
      * I was originally planning a directory structure that
        mirrors /usr/share/help/, but that would have made it harder to
        quickly test the slideshow. So, slides, screenshots and icons
        not in the l10n directory are actually in the 'C' locale. The
        'extra' directory _does_ use the format I wanted, so you can
        have extra/C and that will override files for the C locale.
      * At the moment, the src attribute for every single img tag in the
        slideshow is rewritten by slideshow.js with the assumption that
        it's pointing at a local path. It might be a good idea to only
        do that for images with class="translatable", but I really don't
        like the idea of changing every slide in every slideshow to have
        that. If any images are being broken, let me know and we can
        make that change.

Okay, that's it!
Have a nice weekend :)

Dylan