Skip to content

Commit

Permalink
build: common/static/css/xmodule -> xmodule/static/css
Browse files Browse the repository at this point in the history
Part of: #31624
  • Loading branch information
kdmccormick committed May 23, 2023
1 parent fa043aa commit 6a1038a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pavelib/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def get_theme_sass_dirs(system, theme_dir):

dirs.append({
"sass_source_dir": xmodule_sass_dir,
"css_destination_dir": path("common") / "static" / "css" / "xmodule",
"css_destination_dir": path("xmodule") / "static" / "css",
"lookup_paths": [
xmodule_lookup_dir,
*dependencies,
Expand Down Expand Up @@ -237,8 +237,8 @@ def get_system_sass_dirs(system):
dirs = []
sass_dir = path(system) / "static" / "sass"
css_dir = path(system) / "static" / "css"
xmodule_sass_dir = path("xmodule") / "sass" / system
xmodule_lookup_dir = path("xmodule") / "sass" / "include"
xmodule_sass_dir = path("xmodule") / "static" / "sass" / system
xmodule_lookup_dir = path("xmodule") / "static" / "sass" / "include"

dependencies = SASS_LOOKUP_DEPENDENCIES.get(system, [])
dirs.append({
Expand All @@ -252,7 +252,7 @@ def get_system_sass_dirs(system):

dirs.append({
"sass_source_dir": xmodule_sass_dir,
"css_destination_dir": path("common") / "static" / "css" / "xmodule",
"css_destination_dir": path("xmodule") / "static" / "css",
"lookup_paths": [
xmodule_lookup_dir,
*dependencies,
Expand Down
1 change: 1 addition & 0 deletions xmodule/static/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/css
4 changes: 2 additions & 2 deletions xmodule/util/xmodule_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def load_assets(self):
},
{
'name': 'AnnotatableBlockPreview.css',
'path': 'common/static/css/xmodule/AnnotatableBlockPreview.css',
'path': 'xmodule/static/css/AnnotatableBlockPreview.css',
'publicPath': '/static/css/xmodule/AnnotatableBlockPreview.css'
}
],
Expand All @@ -75,7 +75,7 @@ def load_assets(self):
"""
assets = super().load_assets()

css_path = "common/static/css/xmodule"
css_path = "xmodule/static/css"
css_files = listdir(css_path)

for css_file in css_files:
Expand Down

0 comments on commit 6a1038a

Please sign in to comment.