Skip to content

Commit

Permalink
Get newest data-catalog-app release via Github API (#40)
Browse files Browse the repository at this point in the history
* Use Stark as the default theme
  • Loading branch information
dgading authored Dec 18, 2023
1 parent f8b8ec0 commit 58d677e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion commands/web/dkan-frontend-install
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
FRONTEND_TMP='src/tmp'
FRONTEND_DOCROOT_DIR='docroot/frontend'
FRONTEND_VCS_URL='https://github.com/GetDKAN/data-catalog-app/'
FRONTEND_VCS_REF='1.3.0'

if [[ -L $FRONTEND_DOCROOT_DIR ]]; then
echo "ERROR: Symlink $FRONTEND_DOCROOT_DIR already exists."
Expand All @@ -29,6 +28,10 @@ if [ ! -z "$DKAN_MODULE_PATH" ]; then
fi
fi

echo " ** Finding latest tag for $FRONTEND_VCS_URL"

FRONTEND_VCS_REF=$(curl -s https://api.github.com/repos/getdkan/data-catalog-app/releases/latest | jq -r '.tag_name')

echo " ** Gathering frontend application: $FRONTEND_VCS_REF from $FRONTEND_VCS_URL"

mkdir -p $FRONTEND_TMP
Expand Down
4 changes: 2 additions & 2 deletions commands/web/dkan-site-install
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ drush config-set user.role.administrator is_admin true -y
drush user:role:add "administrator" admin

# Enable Claro and Olivero themes.
drush theme:enable claro olivero
drush theme:enable claro stark
drush config-set system.theme admin claro -y
drush config-set system.theme default olivero -y
drush config-set system.theme default stark -y
drush config-set node.settings use_admin_theme true -y

# Disable CSS/JS preprocessing
Expand Down

0 comments on commit 58d677e

Please sign in to comment.