This is The Library of Christ Mind Teachings website.
As of March 19, 2019, The Library includes the following teachings:
- A Course In Miracles Sparkly Edition (cmi-acim)
- A Course Of Love, partially included here because it is not officially approved (cmi-acol)
- The Impersonal Life (cmi-jsb)
- The Raj Material (cmi-raj)
- The Way of Mastery (cmi-wom)
This is a Jekyll site and with increasing size build times became longer and longer. As a result each teaching is developed as its own Jekyll site with the output directed to a subdirectory, named "t" in this project.
The project is hosted by Netlify which deploys to production from Github after a "master" branch push.
For local development clone the following repositories into a common parent directory.
- cmi-acim
- cmi-acol
- cmi-jsb
- cmi-raj
- cmi-wom
- cmi-www
Build the site and watch for changes by running the following command in the root directory of each repository.
$ npm start
Doing so will set JEKYLL_ENV=development and direct the output to cmi-www/_site/t. The full site can be tested from localhost:9999. The url of each teaching is given below.
- cmi-acim: t/acim
- cmi-acol: t/acol
- cmi-jsb: t/jsb
- cmi-raj: t/raj
- cmi-wom: t/wom
- cmi-www: /
This will build a publicly available site in a temporary Netlify domain.
Copy _build.dev.sh to the parent directory, the one containing all cloned repositories. Follow these steps:
-
Stop "npm start" command running in all repositories by pressing ^C.
-
Change directory to the parent, where _build.dev.sh was copied.
-
To build in development mode each project, run the command;
$ ./_build.dev.sh
The output from each project goes to cmi-www/t. This is included in the final build step, that of cmi-www and output to _site.
-
Change directory to cmi-www
-
Deploy to netlify by running:
$ netlify deploy
The process is nearly the same as the preview deploy.
-
Copy the _build.prod.sh script to the parent directory.
-
Make sure 'npm start' is not running for all repositories.
-
Change directory to parent and run
$ ./_build.prod.sh
-
Deploy to Netlify production by running:
$ netlify deploy --prod
-
The site will be available at https://www.christmind.info.
Note: The Auto deploy feature of Netlify is disabled so we don't have to track (git) the output of the separate build commands that are in cmi-www/t.