Skip to content

Commit

Permalink
Merge pull request #17 from prooph/restructure_docs
Browse files Browse the repository at this point in the history
Restructure docs
  • Loading branch information
codeliner authored Oct 15, 2017
2 parents 33f1252 + 397d345 commit 6557ed3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ before_script:
- phpenv config-rm xdebug.ini
- VENDOR=$(echo $DB | cut -d'_' -f 1)
- if [[ $DB == 'mysql_5.7' ]]; then bash .travis.install-mysql-5.7.sh; fi
- if [[ $DB == 'mariadb_10.2' ]]; then bash .travis.install-mariadb-10.2.sh; fi
- if [[ $DRIVER == 'pdo_mysql' ]]; then mysql -e 'create database snapshot_tests;'; fi
- if [[ $DRIVER == 'pdo_mysql' ]]; then mysql -e 'create database snapshot_tests;'; fi
- if [[ $DRIVER == 'pdo_pgsql' ]]; then psql -c 'create database snapshot_tests;' -U postgres; fi
- composer self-update
- composer update --prefer-dist $DEPENDENCIES
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@
"scripts": {
"check": [
"@cs",
"@test"
"@test",
"@docheader"
],
"cs": "php-cs-fixer fix -v --diff --dry-run",
"cs-fix": "php-cs-fixer fix -v --diff",
"docheader": "docheader check src/ tests/",
"test": "phpunit"
}
}
7 changes: 4 additions & 3 deletions docs/bookdown.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"title": "Prooph PDO SnapshotStore",
"title": "PDO Snapshot Store",
"content": [
{"intro": "../README.md"},
{"snapshots": "setup.md"},
{"intro": "introduction.md"},
{"interop_factories": "interop_factories.md"}
],
"tocDepth": 1,
"numbering": false,
"target": "./html",
"template": "../vendor/prooph/bookdown-template/templates/main.php"
}
12 changes: 11 additions & 1 deletion docs/setup.md → docs/introduction.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# Setup
# Overview

PDO implementation of snapshot store

## Installation

```bash
composer require prooph/pdo-snapshot-store
```

## Setup

The PDO SnapshotStore is currently tested with 3 backends, MariaDB, MySQL and Postgres.

Expand Down

0 comments on commit 6557ed3

Please sign in to comment.