Skip to content

Commit f5667be

Browse files
authored
Restore custom README (#320)
1 parent d6683f1 commit f5667be

File tree

1 file changed

+35
-40
lines changed

1 file changed

+35
-40
lines changed

README.md

+35-40
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,51 @@
1-
# ![](https://avatars1.githubusercontent.com/u/8237355?v=2&s=50) Grav
1+
# Drupal Commerce Documentation
22

3-
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat)](https://github.com/phpstan/phpstan)
4-
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/cfd20465-d0f8-4a0a-8444-467f5b5f16ad/mini.png)](https://insight.sensiolabs.com/projects/cfd20465-d0f8-4a0a-8444-467f5b5f16ad)
5-
[![Discord](https://img.shields.io/discord/501836936584101899.svg?logo=discord&colorB=728ADA&label=Discord%20Chat)](https://chat.getgrav.org)
6-
[![Build Status](https://travis-ci.org/getgrav/grav.svg?branch=develop)](https://travis-ci.org/getgrav/grav) [![OpenCollective](https://opencollective.com/grav/backers/badge.svg)](#backers) [![OpenCollective](https://opencollective.com/grav/sponsors/badge.svg)](#sponsors)
3+
**Contents:**
4+
- [How to contribute to this documentation](#how-to-contribute-to-this-documentation)
5+
- [Before your first contribution](#before-your-first-contribution)
6+
- [Fast online contribution](#fast-online-contribution)
7+
- [Local setup](#local-setup)
78

8-
Grav is a **Fast**, **Simple**, and **Flexible**, file-based Web-platform. There is **Zero** installation required. Just extract the ZIP archive, and you are already up and running. It follows similar principles to other flat-file CMS platforms, but has a different design philosophy than most. Grav comes with a powerful **Package Management System** to allow for simple installation and upgrading of plugins and themes, as well as simple updating of Grav itself.
9+
## How to contribute to this documentation
910

10-
The underlying architecture of Grav is designed to use well-established and _best-in-class_ technologies to ensure that Grav is simple to use and easy to extend. Some of these key technologies include:
11+
### Before your first contribution
1112

12-
* [Twig Templating](https://twig.sensiolabs.org/): for powerful control of the user interface
13-
* [Markdown](https://en.wikipedia.org/wiki/Markdown): for easy content creation
14-
* [YAML](https://yaml.org): for simple configuration
15-
* [Parsedown](https://parsedown.org/): for fast Markdown and Markdown Extra support
16-
* [Doctrine Cache](https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/caching.html): layer for performance
17-
* [Pimple Dependency Injection Container](https://pimple.sensiolabs.org/): for extensibility and maintainability
18-
* [Symfony Event Dispatcher](https://symfony.com/doc/current/components/event_dispatcher/introduction.html): for plugin event handling
19-
* [Symfony Console](https://symfony.com/doc/current/components/console/introduction.html): for CLI interface
20-
* [Gregwar Image Library](https://github.com/Gregwar/Image): for dynamic image manipulation
13+
**Before contributing**, you should consider the following:
14+
- The documentation is written using [reStructuredText](http://docutils.sourceforge.net/rst.html) markup language. If you are not familiar with this format, read [this article](https://symfony.com/doc/current/contributing/documentation/format.html) for a quick overview of its basic features.
15+
- The documentation is hosted on [GitHub](https://github.com). You'll need a free GitHub user account to contribute to the documentation.
16+
- The documentation is published under a [Creative Commons BY-SA 4.0 License](https://github.com/drupalcommerce/commerce-docs/blob/master/LICENSE) and all your contributions will implicitly adhere to that license.
2117

22-
# Requirements
18+
### Fast online contribution
2319

24-
- PHP 7.1.3 or higher. Check the [required modules list](https://learn.getgrav.org/basics/requirements#php-requirements)
25-
- Check the [Apache](https://learn.getgrav.org/basics/requirements#apache-requirements) or [IIS](https://learn.getgrav.org/basics/requirements#iis-requirements) requirements
20+
If you're making a relatively small change - like fixing a typo or rewording something - the easiest way to contribute is directly on GitHub! You can do this while you're reading this documentation.
2621

27-
# QuickStart
22+
1. Click on the **Edit on GitHub** button on the upper right corner and you'll be redirected to GitHub: ![GitHub edit](./images/contributing/github-edit.png)
23+
2. Click the **edit icon** to edit the documentation: ![GitHub icon edit](./images/contributing/github-doc-icon-edit.png)
24+
3. You will be asked to fork the repo, click **Fork this repository and propose changes**: ![GitHub doc fork](./images/contributing/github-doc-fork.png)
25+
4. Edit the contents, describe your changes and click on the **Propose file change** button: ![GitHub doc propose change](./images/contributing/github-doc-propose-change.png)
26+
5. GitHub will now create a branch and a commit for your changes (forking the repository first if this is your first contribution) and it will also display a preview of your changes: ![GitHub doc create pull request](./images/contributing/github-doc-create-pr.png)If everything is correct, click on the **Create pull request** button.
27+
6. GitHub will display a new page where you can do some last-minute changes to your pull request before creating it. For simple contributions, you can safely ignore these options and just click on the **Create pull request** button again.
2828

29-
These are the options to get Grav:
29+
**Congratulations!** You just created a pull request to the official Drupal Commerce documentation! The community will now review your pull request and (possibly) suggest tweaks.
3030

31-
### Downloading a Grav Package
31+
But if you want to contribute heavily, we recommend you doing a local setup of the documentation.
3232

33-
You can download a **ready-built** package from the [Downloads page on https://getgrav.org](https://getgrav.org/downloads)
33+
### Local setup
34+
1. Run composer install
35+
7. In the terminal generate user for admin panel `bin/plugin login newuser`
36+
8. Add credentials
37+
![Adding Credentials](admin_grav.png)
38+
9. Login `php -S localhost:8000 system/router.php`
3439

35-
### With Composer
40+
### Edit using Visual Code Studio
41+
You can download Visual Code Studio and add the [reStructured Text](https://marketplace.visualstudio.com/items?itemName=lextudio.restructuredtext) plugin to have an editor with built in previews available.
3642

37-
You can create a new project with the latest **stable** Grav release with the following command:
43+
### Edit and review manually
44+
1. Execute `./build.sh`, this will generate documentation HTML inside `_build/html`.
45+
2. Now you can view the documentation locally, execute `php -S localhost:8000 -t _build/html` , and visit [http://localhost:8000/](http://localhost:8000/) from your browser.
3846

39-
```
40-
$ composer create-project getgrav/grav ~/webroot/grav
41-
```
42-
43-
### From GitHub
44-
45-
1. Clone the Grav repository from [https://github.com/getgrav/grav]() to a folder in the webroot of your server, e.g. `~/webroot/grav`. Launch a **terminal** or **console** and navigate to the webroot folder:
46-
```
47-
$ cd ~/webroot
48-
$ git clone https://github.com/getgrav/grav.git
49-
```
50-
51-
2. Install the **plugin** and **theme dependencies** by using the [Grav CLI application](https://learn.getgrav.org/advanced/grav-cli) `bin/grav`:
52-
```
53-
$ cd ~/webroot/grav
47+
That's it!
48+
/grav
5449
$ bin/grav install
5550
```
5651

0 commit comments

Comments
 (0)