1. 12 Aug, 2013 1 commit
  2. 10 Jul, 2013 1 commit
  3. 20 Jun, 2013 5 commits
  4. 13 Jun, 2013 1 commit
  5. 12 Jun, 2013 1 commit
  6. 05 Jun, 2013 1 commit
  7. 04 Jun, 2013 1 commit
  8. 03 Jun, 2013 2 commits
    • Change `task.invoke` to `Rake::Task.invoke` · 03a9765b
      Using `task()` reopens the definition of the task, and all we really
      need to do is get a reference to the task itself to invoke it.
      Nate Hardison committed
    • Preprocess assets as Django management command · 1001b315
      Rather than directly invoke command-line Python (and Mako) from the
      assets Rakefile, or call an external Python script, use a Django
      management command to preprocess all asset template files.
      
      An "asset template file" is defined as a static asset file with a
      file extension indicating that it needs to be run through a template
      engine prior to Sass/CoffeeScript compilation or packaging with other
      assets. The preprocess_assets management command will look through
      all of the files listed in the `STATICFILES_DIRS`, preprocessing each
      as needed. Preprocessing strips off the special template file
      extension, creating a new file in the process.
      
      Currently, the only variable accessible in an asset template file is
      the `THEME_NAME`, defined in the settings.
      Nate Hardison committed
  9. 30 May, 2013 1 commit
  10. 29 May, 2013 1 commit
  11. 23 May, 2013 1 commit
  12. 22 May, 2013 2 commits
    • Make Mako preprocessing a Rake task · 185ab4c3
      Per feedback from @cpennington. This way we'll only preprocess once,
      even if the Sass compilation is invoked multiple times.
      Nate Hardison committed
    • Add general theming capabilities · ea3506d2
      This commit adds the requisite settings and startup features to
      enable integration of themes into the edX platform. It does not
      yet provide hooks in any of the templates, but it does cause the
      main `lms/static/sass/application.scss` file to `@import` a theme's
      base Sass. Template hooks will come down the road.
      
      CHANGELOG
      ---------
      Define a new `MITX_FEATURE`, `USE_CUSTOM_THEME`, that when enabled,
      can be used in templates to determine whether or not custom theme
      templates should be used instead of the defaults.
      
      Also define a new setting, `THEME_NAME`, which will be used to
      locate theme-specific files. Establish the convention that themes
      will be stored outside of the `REPO_ROOT`, inside the `ENV_ROOT`,
      in a directory named `themes/`. `themes/<THEME_NAME>` will store
      the files for a particular theme.
      
      Provide a function, `enable_theme`, that modifies the template and
      static asset load paths appropriately to include the theme's files.
      
      Move the main LMS Sass file to a Mako template that conditionally
      `@import`s the theme's base Sass file when a theme is enabled.
      
      Add logic to the assets Rakefile to properly preprocess any Sass/
      Mako templates before compiling them.
      Nate Hardison committed
  13. 17 May, 2013 1 commit
  14. 15 May, 2013 2 commits