Skip to content

Commit

Permalink
feat: rename …-cms to …_cms
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed May 1, 2023
1 parent 51036b3 commit ce6c1a8
Show file tree
Hide file tree
Showing 163 changed files with 64 additions and 64 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Please see the [Core CMS README].

- https://prod.a2cps.tacc.utexas.edu/
- https://prod.apcd.tacc.utexas.edu/ a.k.a. https://txapcd.org/<br />
<sup>code has moved to https://github.com/TACC/Core-CMS-Custom/blob/main/apcd-cms/</sup>
<sup>code has moved to https://github.com/TACC/Core-CMS-Custom/blob/main/apcd_cms/</sup>
- https://portal.brainmap.org/
- https://democratizingdata.ai/
- https://prod.ecep.tacc.utexas.edu/ a.k.a. https://ecepalliance.org/
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Otherwise, they will be unavailable to [Core CMS] loading this project.

## Directory Hierarchy

Where `name-of-project` is a CMS projects with custom static assets:
Where `name_of_project` is a CMS projects with custom static assets:

- `/name-of-project/static/name-of-project/...`
- `/name_of_project/static/name_of_project/...`

The redundancy is intentional:

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ This consistency lets us override templates in Django fashion.

## How to Write Template Path

Where `name-of-project` is a CMS projects with custom templates:
Where `name_of_project` is a CMS projects with custom templates:

- `/name-of-project/templates/___.html`
- `/name_of_project/templates/___.html`

### How to Overwrite Core Templates

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions a2cps-cms/settings_custom.py → a2cps_cms/settings_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

LOGO = [
"a2cps",
"a2cps-cms/img/org_logos/a2cps.png",
"a2cps_cms/img/org_logos/a2cps.png",
"",
"/",
"_self",
Expand All @@ -33,5 +33,5 @@
]

FAVICON = {
"img_file_src": "a2cps-cms/img/org_logos/favicon.ico"
"img_file_src": "a2cps_cms/img/org_logos/favicon.ico"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load static %}

<!-- To style old CMS content on new CMS -->
<link rel="stylesheet" href="{% static 'a2cps-cms/css/build/migrate.v1_v2.css' %}">
<link rel="stylesheet" href="{% static 'a2cps_cms/css/build/migrate.v1_v2.css' %}">
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion apcd-cms/README.md → apcd_cms/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## APCD CMS

This codebase has moved to https://github.com/TACC/Core-CMS-Custom as `apcd-cms`.
This codebase has moved to https://github.com/TACC/Core-CMS-Custom as `apcd_cms`.
File renamed without changes.
4 changes: 2 additions & 2 deletions apcd-cms/settings_custom.py → apcd_cms/settings_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

LOGO = [
"tacc",
"apcd-cms/img/org_logos/apcd-white.png",
"apcd_cms/img/org_logos/apcd-white.png",
"",
"/",
"_self",
Expand All @@ -33,7 +33,7 @@
]

FAVICON = {
"img_file_src": "apcd-cms/img/favicons/favicon.ico"
"img_file_src": "apcd_cms/img/favicons/favicon.ico"
}

########################
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

_UTHSCSA_BRANDING = [
"uthscsa",
"brainmap-cms/img/org_logos/uthscsa-logo-white.png",
"brainmap_cms/img/org_logos/uthscsa-logo-white.png",
"branding-logo--short",
"https://www.uthscsa.edu/",
"_blank",
Expand All @@ -36,7 +36,7 @@

_SGCI_BRANDING = [
"sgci",
"brainmap-cms/img/org_logos/sgci-logo-sans-text.svg",
"brainmap_cms/img/org_logos/sgci-logo-sans-text.svg",
"branding-logo--short",
"https://sciencegateways.org/",
"_blank",
Expand Down Expand Up @@ -75,7 +75,7 @@

LOGO = [
"brainmap",
"brainmap-cms/img/org_logos/brainmap-logo--light-text-trans-bkgd--large-text.svg",
"brainmap_cms/img/org_logos/brainmap-logo--light-text-trans-bkgd--large-text.svg",
"",
"/",
"_self",
Expand All @@ -85,5 +85,5 @@
]

FAVICON = {
"img_file_src": "brainmap-cms/img/org_logos/brainmap-logo--dark-text-trans-bkgd--icon-only.png"
"img_file_src": "brainmap_cms/img/org_logos/brainmap-logo--dark-text-trans-bkgd--icon-only.png"
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
# WALKTHROUGH
########################

# To change LDAP auth settings for a custom CMS Project (e.g. `epoc-cms`):
# To change LDAP auth settings for a custom CMS Project (e.g. `epoc_cms`):
# 1. Copy the setting from `settings.py`
# 2. Assign the new value in `Core-CMS/taccsite_custom/epoc-cms/settings_custom.py`.
# 2. Assign the new value in `Core-CMS/taccsite_custom/epoc_cms/settings_custom.py`.
AUTH_LDAP_SERVER_URI = "ldap://cluster.ldap.tacc.utexas.edu"

# The same goes for other more commonly customized values like below.
Expand Down Expand Up @@ -58,7 +58,7 @@

TACC_BRANDING = [
"tacc",
"epoc-cms/img/org_logos/tacc-white.png",
"epoc_cms/img/org_logos/tacc-white.png",
"branding-tacc",
"https://www.tacc.utexas.edu/",
"_blank",
Expand All @@ -69,7 +69,7 @@

UTEXAS_BRANDING = [
"utexas",
"epoc-cms/img/org_logos/utaustin-white.png",
"epoc_cms/img/org_logos/utaustin-white.png",
"branding-utaustin",
"https://www.utexas.edu/",
"_blank",
Expand All @@ -80,7 +80,7 @@

# NSF_BRANDING = [
# "nsf",
# "epoc-cms/img/org_logos/nsf-white.png",
# "epoc_cms/img/org_logos/nsf-white.png",
# "branding-nsf",
# "https://www.nsf.gov/",
# "_blank",
Expand All @@ -91,7 +91,7 @@

# CUSTOM_BRANDING = [
# "epoc",
# "epoc-cms/img/org_logos/esnet-white-logo.png",
# "epoc_cms/img/org_logos/esnet-white-logo.png",
# "branding-logo--short",
# "https://www.es.net/",
# "_blank",
Expand All @@ -109,7 +109,7 @@

LOGO = [
"demdata",
"demdata-cms/img/org_logos/Demo-Data.svg",
"demdata_cms/img/org_logos/Demo-Data.svg",
"",
"/",
"_self",
Expand All @@ -119,6 +119,6 @@
]

FAVICON = {
"img_file_src": "demdata-cms/img/favicons/Favicon_64x64.svg"
"img_file_src": "demdata_cms/img/favicons/Favicon_64x64.svg"
}

File renamed without changes.
6 changes: 3 additions & 3 deletions ecep-cms/settings_custom.py → ecep_cms/settings_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

LOGO = [
"ecep",
"ecep-cms/img/org_logos/ecep-white-no_words.svg",
"ecep_cms/img/org_logos/ecep-white-no_words.svg",
"",
"/",
"_self",
Expand All @@ -75,7 +75,7 @@
]

FAVICON = {
"img_file_src": "ecep-cms/img/org_logos/favicon.ico"
"img_file_src": "ecep_cms/img/org_logos/favicon.ico"
}

########################
Expand Down Expand Up @@ -143,4 +143,4 @@
# CLIENT BUILD SETTINGS
########################

ROOT_URLCONF = 'taccsite_custom.ecep-cms.urls'
ROOT_URLCONF = 'taccsite_custom.ecep_cms.urls'
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
plugins:
postcss-env-function:
importFrom:
- 'taccsite_custom/ecep-cms/static/ecep-cms/css/src/_themes/ecep.json'
- 'taccsite_custom/ecep_cms/static/ecep_cms/css/src/_themes/ecep.json'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load staticfiles %}

{# TODO: FP-1487: Move this to a templates/*.html that extends a site_cms one #}
<link rel="stylesheet" href="{% static 'ecep-cms/css/build/site.css' %}">
<link rel="stylesheet" href="{% static 'ecep_cms/css/build/site.css' %}">
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions epoc-cms/settings_custom.py → epoc_cms/settings_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
# WALKTHROUGH
########################

# To change LDAP auth settings for a custom CMS Project (e.g. `epoc-cms`):
# To change LDAP auth settings for a custom CMS Project (e.g. `epoc_cms`):
# 1. Copy the setting from `settings.py`
# 2. Assign the new value in `Core-CMS/taccsite_custom/epoc-cms/settings_custom.py`.
# 2. Assign the new value in `Core-CMS/taccsite_custom/epoc_cms/settings_custom.py`.
AUTH_LDAP_SERVER_URI = "ldap://cluster.ldap.tacc.utexas.edu"

# The same goes for other more commonly customized values like below.
Expand Down Expand Up @@ -68,7 +68,7 @@

TACC_BRANDING = [
"tacc",
"epoc-cms/img/org_logos/tacc-white.png",
"epoc_cms/img/org_logos/tacc-white.png",
"branding-tacc",
"https://www.tacc.utexas.edu/",
"_blank",
Expand All @@ -79,7 +79,7 @@

UTEXAS_BRANDING = [
"utexas",
"epoc-cms/img/org_logos/utaustin-white.png",
"epoc_cms/img/org_logos/utaustin-white.png",
"branding-utaustin",
"https://www.utexas.edu/",
"_blank",
Expand All @@ -90,7 +90,7 @@

NSF_BRANDING = [
"nsf",
"epoc-cms/img/org_logos/nsf-white.png",
"epoc_cms/img/org_logos/nsf-white.png",
"branding-nsf",
"https://www.nsf.gov/",
"_blank",
Expand All @@ -101,7 +101,7 @@

CUSTOM_BRANDING = [
"epoc",
"epoc-cms/img/org_logos/esnet-white-logo.png",
"epoc_cms/img/org_logos/esnet-white-logo.png",
"branding-logo--short",
"https://www.es.net/",
"_blank",
Expand All @@ -118,7 +118,7 @@

LOGO = [
"epoc",
"epoc-cms/img/org_logos/epoc-color-logo.png",
"epoc_cms/img/org_logos/epoc-color-logo.png",
"",
"/",
"_self",
Expand All @@ -128,5 +128,5 @@
]

FAVICON = {
"img_file_src": "epoc-cms/img/org_logos/favicon.ico"
"img_file_src": "epoc_cms/img/org_logos/favicon.ico"
}
3 changes: 0 additions & 3 deletions frontera-cms/templates/assets_custom.html

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

_FRONTERA_TACC_BRANDING = [
"tacc",
"frontera-cms/img/org_logos/tacc-white.png", # TACC/Core-CMS#283 & #284
"frontera_cms/img/org_logos/tacc-white.png", # TACC/Core-CMS#283 & #284
"branding-tacc",
"https://www.tacc.utexas.edu/",
"_blank",
Expand Down Expand Up @@ -66,7 +66,7 @@

LOGO = [
"frontera",
"frontera-cms/img/org_logos/frontera-white-solo.png",
"frontera_cms/img/org_logos/frontera-white-solo.png",
"",
"/",
"_self",
Expand All @@ -76,5 +76,5 @@
]

FAVICON = {
"img_file_src": "frontera-cms/img/org_logos/favicon.ico"
"img_file_src": "frontera_cms/img/org_logos/favicon.ico"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ SRC: https://bitbucket.org/taccaci/frontera/src/master/client/css/frontera.scss
/* FAQ: Though CMS default font is `Benton Sans`, old content uses these */
@font-face {
font-family: BentonSansBold;
src: url("/static/frontera-cms/fonts/archive/BentonSans-Bold.otf");
src: url("/static/frontera_cms/fonts/archive/BentonSans-Bold.otf");
}

@font-face {
font-family: BentonSansMedium;
src: url("/static/frontera-cms/fonts/archive/BentonSans-Medium.otf");
src: url("/static/frontera_cms/fonts/archive/BentonSans-Medium.otf");
}

@font-face {
font-family: BentonSansItalic;
src: url("/static/frontera-cms/fonts/archive/BentonSans-MediumItalic.otf");
src: url("/static/frontera_cms/fonts/archive/BentonSans-MediumItalic.otf");
}

/* … */

/* HELP: Wesley assumes that old content uses these… but where? */
@font-face {
font-family: 'icon-worksregular';
src: url('/static/frontera-cms/fonts/archive/icon-works-webfont.eot');
src: url('/static/frontera-cms/fonts/archive/icon-works-webfont.eot?#iefix') format('embedded-opentype'),
url('/static/frontera-cms/fonts/archive/icon-works-webfont.woff') format('woff'),
url('/static/frontera-cms/fonts/archive/icon-works-webfont.svg#icon-worksregular') format('svg');
src: url('/static/frontera_cms/fonts/archive/icon-works-webfont.eot');
src: url('/static/frontera_cms/fonts/archive/icon-works-webfont.eot?#iefix') format('embedded-opentype'),
url('/static/frontera_cms/fonts/archive/icon-works-webfont.woff') format('woff'),
url('/static/frontera_cms/fonts/archive/icon-works-webfont.svg#icon-worksregular') format('svg');
font-weight: normal;
font-style: normal;
}
Expand Down
3 changes: 3 additions & 0 deletions frontera_cms/templates/assets_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% load static %}

<link rel="stylesheet" href="{% static 'frontera_cms/css/build/site.css' %}">
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
- Frontera was tested with this load order (so let it lie)
- Frontera is being redesigned (which will obviate this stylesheet)
-->
<link rel="stylesheet" href="{% static 'frontera-cms/css/build/migrate.v1_v2.css' %}">
<link rel="stylesheet" href="{% static 'frontera_cms/css/build/migrate.v1_v2.css' %}">
{% endblock assets_custom %}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
html { font-size: 62.5%; /* 1rem = 10px */ }
</style>

<link rel="stylesheet" href="{% static 'frontera-cms/css/build/template.home.css' %}">
<link rel="stylesheet" href="{% static 'frontera_cms/css/build/template.home.css' %}">
{% endblock assets_custom %}

{# FAQ: Common practice but unused, and template is unnecessary long-term #}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

LOGO = [
"portal",
"neuronex-cms/img/org_logos/logo.3dem.png",
"neuronex_cms/img/org_logos/logo.3dem.png",
"",
"/",
"_self",
Expand All @@ -74,5 +74,5 @@
]

FAVICON = {
"img_file_src": "neuronex-cms/img/org_logos/favicon.ico"
"img_file_src": "neuronex_cms/img/org_logos/favicon.ico"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
{{ block.super }}

<!-- To style old CMS content on new CMS -->
<link rel="stylesheet" href="{% static 'neuronex-cms/css/build/migrate.v1_v2.css' %}">
<link rel="stylesheet" href="{% static 'neuronex_cms/css/build/migrate.v1_v2.css' %}">
{% endblock assets_custom %}
File renamed without changes.
Loading

0 comments on commit ce6c1a8

Please sign in to comment.