Skip to content

Commit

Permalink
ref: figured out how to properly register a theme
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Aug 10, 2023
1 parent 804d7cc commit 180a350
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/dcor_theme/css/make_dcor_main_css.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def main():

dcor_css_path.write_text(main_css_data)

print("Make sure to set 'ckan.theme=dcor_theme_main' "
print("Make sure to set 'ckan.theme=dcor_theme_main/dcor_theme_main' "
+ "in the CKAN ini config!")


Expand Down
3 changes: 3 additions & 0 deletions ckanext/dcor_theme/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ def update_config(self, config_):
toolkit.add_public_directory(config_, 'public')
toolkit.add_resource('assets', 'dcor_theme')
toolkit.add_resource('assets_theme', 'dcor_theme_main')
# Add the custom theme directory to the public directories,
# so CKAN can find the css file.
toolkit.add_public_directory(config_, "assets_theme")

0 comments on commit 180a350

Please sign in to comment.