Agaric web development cooperative's main web site: https://agaric.coop
Find a file
David Valdez 6b631fd342 Remove the honeypot patch.
The last version of the module contains the fix to this issue.
https://www.drupal.org/node/2944843
2020-03-04 17:08:45 -06:00
.ddev Add rake and sassc to required packages 2020-03-02 03:01:27 -05:00
.gitlab/issue_templates Fix formatting in User Story template 2019-01-25 12:18:46 -07:00
box Create single method to provide all overridden values 2018-08-23 22:56:43 -04:00
config/sync Add 'white' as a backgronud color for paragraphs 2020-03-02 09:32:31 -05:00
drush Commit provisioning-updated drush yml file 2019-02-21 07:41:13 -05:00
provisioning Add rake tasks, provisioning, and templates 2019-02-20 15:55:38 -05:00
rakelib Add rake tasks, provisioning, and templates 2019-02-20 15:55:38 -05:00
web Update pattern library 2020-03-02 04:29:55 -05:00
.gitignore Put the libraries in a place where the browser can reach them. 2020-03-02 11:54:42 -06:00
.gitmodules Specify branch for pattern library submodule to prevent detached head 2018-09-05 16:11:36 -04:00
composer.json Remove the honeypot patch. 2020-03-04 17:08:45 -06:00
composer.lock THe lock file with the libraries in the web folder 2020-03-02 11:55:15 -06:00
Makefile Merge branch 'master' into 'add-rake-tasks' 2019-02-20 21:05:56 +00:00
phpunit.xml Add the proper configuration to run the tests 2018-08-24 15:46:37 -04:00
Rakefile Add rake tasks, provisioning, and templates 2019-02-20 15:55:38 -05:00
README.md Update link to pattern library 2019-03-31 12:41:31 -04:00
redirects.txt Add redirects.txt as expected per drutopia_host 2018-12-07 02:00:24 -05:00
SERVICES.md record our server and who it's named after 2019-03-10 10:03:51 -04:00
Vagrantfile Add all files needed to bring up VM and run agaric.com locally 2018-08-20 10:45:20 -04:00

Agaric's Flagship Site

See also SERVICES.md

Get submodules

This project includes the Agaric styleguide as a git submodule.

When cloning

git clone --recurse-submodules git@gitlab.com:agaric/sites/agaric-com.git

If you cloned without --recurse-submodules

If in your initial clone you didn't do as above, you can get the styleguide with:

git submodule init
git submodule update

Get started

To be able to import the configuration, you need to get the initializing database (where we will also be collaborating on content) from the test site pending resolution of drutopia#216.

vagrant ssh
composer install
drush -y sql-dump > /tmp/paranoia.sql && drush sql-drop && drush -y sql-sync @live @self && drush -y updb
drush -y rsync @live:%files @self:%files

Get updates

git pull
git submodule update --recursive --remote
vagrant ssh
composer install
drush -y sql-dump > /tmp/paranoia.sql && drush -y sql-drop && drush -y sql-sync @live @self && drush -y updb
drush -y rsync @live:%files @self:%files
drush cim -y

Theming

See web/themes/custom/agarica/README.md and web/themes/custom/agarica/patternlibrary/README.md

Deployment

Agaric is currently using a Platform as a Service version of Drutopia with additional modules.

Set up drutopia_host and hosting_private, as documented in hosting private.

Then use ahoy, from within the hosting_private directory.

Ensure all three related repositories are up-to-date with:

ahoy git-pull-all

If Agaric's Drutopia PaaS base has changed (the composer.lock in this directory), produce and push a new build:

ahoy deploy-build agaric

To deploy everything else (config, templates, styles):

ahoy deploy-site agaric_live

Then record the deployment. This applies to both deploy-site and deploy-build record keeping: Navigate to /drutopia_host/build/artifacts Add all new files generated with git add . Commit the files with a message on what you deployed with 'git commit -m ' Push the changes to the repo with git push

If you need to overwrite live configuration (only after confirming you've committed any parts you want to keep) you can use ahoy for that too with deploy-site-force.

Code Hightlight.

The prism.js library was added in the site and can be used like this:

<pre>
  <code class="language-css">
    p { color: red }
  </code>
</pre>

The suffix of the class needs to be changed depending of the language that is going to be highlighted eg: language-php, language-js etc.