Renan Lucas 58951103b8 Update docs.md (#6162) il y a 2 ans
..
accounts e0560c74f7 Move documentation to the docs folder il y a 5 ans
assets e0560c74f7 Move documentation to the docs folder il y a 5 ans
config e0560c74f7 Move documentation to the docs folder il y a 5 ans
data e0560c74f7 Move documentation to the docs folder il y a 5 ans
localhost e0560c74f7 Move documentation to the docs folder il y a 5 ans
pages 58951103b8 Update docs.md (#6162) il y a 2 ans
plugins bdbaf3844c Fix misc. typos (#6045) il y a 3 ans
themes bdbaf3844c Fix misc. typos (#6045) il y a 3 ans
LICENSE.md e0560c74f7 Move documentation to the docs folder il y a 5 ans
README.md e0560c74f7 Move documentation to the docs folder il y a 5 ans
blueprints.yaml e0560c74f7 Move documentation to the docs folder il y a 5 ans
screenshot.jpg e0560c74f7 Move documentation to the docs folder il y a 5 ans

README.md

select2.org

https://select2.org

This is the repository for the documentation for Select2. It is built with the flat-file CMS Grav, using their RTFM skeleton.

Local installation

Step 1 - Install Grav

This application uses the Grav CMS. This repository does not contain a full Grav installation - rather, it just contains the contents of Grav's user directory, which is where all of our content, themes, and assets live. This was done as per the recommendation on Grav's blog, to make it easier to deploy changes to the live server.

To install this website on your computer, first install grav core in a project folder called select2-docs under your webserver's document root folder. Then, find the user folder inside of your project folder. Delete the contents of the user folder and clone this repository directly into the user folder.

When you're done it might look something like this:

htdocs/
└── select2-docs/
   ├── assets/
   ├── ...
   ├── user/
       ├── .git
       ├── accounts/
       ├── assets/
       ├── config/
       └── ...
   └── ...

Step 2

Grav needs your webserver to be able to write to certain directories. In OSX with XAMPP installed, this won't work by default. To deal with this:

Add default webserver user daemon to OSX's staff group (which already has the necessary permissions for writing to files/directories):

sudo dseditgroup -o edit -a daemon -t user staff

Step 3

Visit the local installation in your browser! For example, http://localhost/select2-docs.

Credits

Favicons were generated with https://realfavicongenerator.net/