adapt_authoring icon indicating copy to clipboard operation
adapt_authoring copied to clipboard

Custom LESS is not included in import

Open canstudios-nicolaw opened this issue 6 years ago • 1 comments

Expected Behaviour

If I have a course with custom LESS, I should be able to export/import it and retain the custom LESS.

Actual Behaviour

The custom LESS does not get imported.

Steps to Reproduce

  1. Create a course with custom LESS
  2. Export it, note that the less is contained in src/theme/[theme name]/less/zzzzz/
  3. Import the course, note that the LESS has not been imported

Versions

  • Authoring Tool Version: 0.10.2

Note: it seems that this has been a problem in the past https://github.com/adaptlearning/adapt_authoring/issues/2088

canstudios-nicolaw avatar Jan 09 '20 16:01 canstudios-nicolaw

Expanding on this. If the custom less is defined under project settings in the AAT, this is exported as a custom less file under zzzz. This is, in my view, the wrong behaviour for the export as it should export the custom less in the course config files not in a less file. The less file should only be output as part of the build (not source export).

This way the custom less would be put back where it was defined in the AAT interface.

The only way the custom less can be imported currently is if the theme version on the AAT you are importing into is behind that of the source.

davetaz avatar Sep 27 '22 10:09 davetaz