Skip to content

Commit

Permalink
GH-245/GH-56: Move migration styles to submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Jul 9, 2021
1 parent 4b14872 commit abc1456
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 560 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,22 @@ To support multiple instances of the CMS on one machine (i.e. local development)
Some websites need static resources to supplement their migration.
1. Copy `taccsite_cms/templates/fullwidth.html` to `taccsite_custom/name-of-project/templates/fullwidth.html`.
2. Update `taccsite_custom/name-of-project/templates/fullwidth.html` to load migration static resources e.g., in `assets_custom` block add:
1. __If__ you did not [create your project by cloning `example-cms`](#custom-resources), __then__:
1. Copy `templates/fullwidth.html` from `taccsite_custom/example-cms/` to `taccsite_custom/name-of-project/`.
2. Copy `static/.../css/src/migrate.v1_v2.css` from `taccsite_custom/example-cms/` to `taccsite_custom/name-of-project/`.
2. Update `taccsite_custom/name-of-project/templates/fullwidth.html` to load migration assets e.g.:
- Change
```html
<link id="css-site-font" rel="stylesheet" href="{% static 'site_cms/css/build/migrate.v1_v2.css' %}">
<!-- To style old CMS content on new CMS -->
<!-- <link rel="stylesheet" href="{% static 'example-cms/css/build/migrate.v1_v2.css' %}"> -->
```
- To
```html
<!-- To style old CMS content on new CMS -->
<link rel="stylesheet" href="{% static 'name-of-project/css/build/migrate.v1_v2.css' %}">
```
## Run the CMS
Expand Down
3 changes: 0 additions & 3 deletions taccsite_cms/static/site_cms/css/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ _This directory exists in `static/` __only__ because it is customary, using Djan
| `site(.*).css` | styles that apply to the entire website i.e. global styles
| `template.*.css` | styles that apply only to certain templates
| `page.*.css` | styles that apply only to certain pages
| `migrate.*.css` | styles that apply to websites that have been migrated[^1]

[^1]: When sensible, use the migration folder name, i.e. `migrate.v1_v2.css`.

## Documentation Format

Expand Down
38 changes: 0 additions & 38 deletions taccsite_cms/static/site_cms/css/src/_migrations/README.md

This file was deleted.

This file was deleted.

Loading

0 comments on commit abc1456

Please sign in to comment.