Comments

mukhsim created an issue.

fishfree’s picture

I also expect this upgrade.

captaindav’s picture

I am working on a Drupal 8 version of this module, I have renamed it "static_generator", as "static" is a reserved word in PHP.

The new module is available at: Drupal.org/project/static_generator

samuel.mortenson’s picture

Hey there! I'm the maintainer of Tome, which is a static site generator that also stores your content/config statically.

The part of Tome that generates static HTML doesn't need to live in Tome, and I'd be happy to roll a patch ports it over to the Static module.

I started working on Tome before I saw @captaindav's work on the static_generator module, so I'm sorry that we've been doing work in parallel. Tome's static generator has quite a lot of features, but I'm not sure where the overlap with static_generator is.

Tome's features include:

  1. Support for all public facing routes (Views, custom module routes) and all entities with a canonical route.
  2. Translation support for all translatable content entities, and the homepage if you are using URL negotiation.
  3. Support for Views pagers - I took inspiration from this module for that.
  4. Concurrency support - you can generate multiple pages in parallel, by default five pages are generated concurrently. If your system can handle it there's no limit for the concurrency.
  5. Only the files a page needs are copied.
  6. Support for image style rendering - if an image style derivative doesn't exist in the files directory, a new request to Drupal is made
  7. Support for files referenced in CSS or inline style attributes - I copied the logic from this module to accomplish this (with credit of course)
  8. Test coverage for most of the static generator's features.

To test out Tome, just download/enable it on any Drupal 8 site and run "drush tome:static --run-server".

To proceed, I'd leave it to the Static module maintainers to see how they would like to move forward. As I mentioned I'm happier if the static generation code in Tome lived here, since this module has so many Drupal 7 users that are waiting for an upgrade. If you want Tome's code ported over, I'd ask to become a maintainer of Static so I can roll releases and address issues.

Let me know what you think!

im0000’s picture

@samuel.mortenson Tome is great, but I'm using Drupal with this Static Generator module, you mentioned about views pagers - inspired from this module, how did you do that, I can't find any way to support views pagers, would you please write something about that? thank you very much.

update:

My bad, not all views wasn't updated, but only the overwrited taxonomy views (built in with the views module /taxonomy/term/% ) didn't get updated.