hypothesis / wordpress-theme-hypothesis

Hypothesis WordPress Theme
MIT License
5 stars 1 forks source link

New navigation design for WordPress #39

Closed robertknight closed 8 years ago

robertknight commented 8 years ago

This updates the navigation (header and footer) in the WordPress Theme to match the main site and adds tools to make it easier to keep them in sync in future.

The user-visible changes are:

The shared theme is implemented as follows:

  1. The templates and styles in the main repository have been split out into components so that the header and footer can be re-used in the blog.
  2. header.php and footer.php have been changed to be simple wrappers that include footer.html and header.html which are compiled versions of the corresponding Jinja2 templates from the main repository.
  3. Compiling the relevant assets from the main repository (templates, styles, scripts) is done using the /assets/vendor/update-hypothesis-shared.py script. This takes a path to a checkout of the H repo and compiles the relevant styles into an SCSS bundle, the templates are compiled to plain HTML and the JS is Browserified into a small bundle.
  4. /assets/manifest.json references the compiled bundles

Instructions for updating the theme to reflect any changes in hypothesis/h are in 'update-hypothesis-shared.py'.

nickstenning commented 8 years ago

Closing this because it's half a year old ;)