Documentation: Missing required webprofiler libraries

Created on 25 Nov 2016  路  7Comments  路  Source: Islandora/documentation

Related to #434

Need to install a couple libraries for webprofiler:
screenshot from 2016-11-25 02-52-29
screenshot from 2016-11-25 02-53-12

Some guidance here.

Vagrant newbie

Most helpful comment

https://github.com/Islandora-CLAW/claw_vagrant/pull/5

@MarcusBarnes has tested this.

@ruebot /Others Please review/test.

Thank you

All 7 comments

@ruebot

Additional Notes:

  • Adding ds3 (https://github.com/d3/d3/releases/tag/v4.4.4) to web/libraries/ds3 removes that warning
  • Adding highlight lib from here - https://www.drupal.org/files/issues/highlight.zip removes that warning, Note that webprofiler expects highlight.pack.js not highlight.js.

Not sure if these libraries will go into https://github.com/Islandora-CLAW/drupal-project/blob/8.x-1.x/composer.json or to some other vagrant config file!

@Natkeeran are you working on a PR? If so, I'm happy to assign this to you.

@ruebot
Not sure where to put this in. Does the creation of libraries go into https://github.com/Islandora-CLAW/claw_vagrant/blob/master/scripts/drupal.sh or here: https://github.com/Islandora-CLAW/drupal-project/blob/8.x-1.x/composer.json

Shell script to get these files into web/libraries.

if [ ! -d "$DRUPAL_HOME/web/libraries" ]; then
  mkdir "$DRUPAL_HOME/web/libraries"
fi

sudo chown -hR vagrant:www-data $DRUPAL_HOME/web/libraries
sudo chmod -R 755 $DRUPAL_HOME/web/libraries

cd $DRUPAL_HOME/web/libraries || exit

# Get d3.js
if [ ! -d "d3" ]; then
  mkdir "d3"
fi
cd "d3"
wget https://github.com/d3/d3/releases/download/v4.4.4/d3.zip
unzip d3.zip
rm *.zip


# Get highlight.pack.js
cd ".."
wget https://github.com/isagalaev/highlight.js/archive/9.9.0.zip
unzip 9.9.0.zip

mv "highlight.js-9.9.0" "highlightjs"
cd "highlightjs"
cp -R src/* ./
mv "highlight.js" "highlight.pack.js"
cd ".."
rm *.zip

Would have to test this bit further. Currently, the folders are owned by root.

@Natkeeran drupal.sh makes sense to me. Happy to test and do code review when you put in a PR.

https://github.com/Islandora-CLAW/claw_vagrant/pull/5

@MarcusBarnes has tested this.

@ruebot /Others Please review/test.

Thank you

@Natkeeran awesome! I might have some time tomorrow to put it through it's paces testing. If not, I can get around to it Monday morning. Or, if another @Islandora-CLAW/committers has time, go for it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Natkeeran picture Natkeeran  路  3Comments

ruebot picture ruebot  路  4Comments

dannylamb picture dannylamb  路  4Comments

dannylamb picture dannylamb  路  3Comments

dannylamb picture dannylamb  路  5Comments