1
0
mirror of synced 2024-11-28 15:46:03 +03:00
select2/docs/README.md

48 lines
1.9 KiB
Markdown
Raw Normal View History

2017-09-07 22:52:24 +03:00
# select2.org
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
https://select2.org
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
This is the repository for the documentation for Select2. It is built with the flat-file CMS [Grav](http://getgrav.org), using their [RTFM skeleton](https://github.com/getgrav/grav-skeleton-rtfm-site#rtfm-skeleton).
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
## Local installation
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
### Step 1 - Install Grav
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
This application uses the [Grav](https://learn.getgrav.org/) 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](https://getgrav.org/blog/developing-with-github-part-2), to make it easier to deploy changes to the live server.
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
To install this website on your computer, first [install grav core](https://getgrav.org/downloads) 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.
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
When you're done it might look something like this:
2017-09-03 03:34:47 +03:00
```
2017-09-07 22:52:24 +03:00
htdocs/
└── select2-docs/
├── assets/
├── ...
├── user/
├── .git
├── accounts/
├── assets/
├── config/
└── ...
└── ...
2017-09-03 03:34:47 +03:00
```
2017-09-07 22:52:24 +03:00
### 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:
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
Add default webserver user `daemon` to OSX's `staff` group (which already has the necessary permissions for writing to files/directories):
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
`sudo dseditgroup -o edit -a daemon -t user staff`
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
### Step 3
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
Visit the local installation in your browser! For example, http://localhost/select2-docs.
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
## Credits
2017-09-03 03:34:47 +03:00
2017-09-07 22:52:24 +03:00
Favicons were generated with https://realfavicongenerator.net/
2017-09-03 03:34:47 +03:00