Skip to content

Commit

Permalink
Added an automatically generated documentation website
Browse files Browse the repository at this point in the history
  • Loading branch information
Finesse committed Dec 12, 2018
1 parent 56d14d2 commit 35a4c35
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ If you need a dialect support please extend the `CommonGrammar` class and make a

## Documentation

The documentation is located in [the `docs` directory](docs/getting-started.md).
The documentation is available at [queryscribe.readthedocs.io](http://queryscribe.readthedocs.io).

Also all the classes, methods and properties has a PHPDoc comment in the code.

Expand Down
7 changes: 0 additions & 7 deletions docs/building-queries.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
* [Getting started](getting-started.md)
* **Building queries**
* [Table prefixes](table-prefixes.md)
* [Making SQL from query](making-sql.md)
* [Helpers](helpers.md)


# Building queries

## Select
Expand Down
7 changes: 0 additions & 7 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
* **Getting started**
* [Building queries](building-queries.md)
* [Table prefixes](table-prefixes.md)
* [Making SQL from query](making-sql.md)
* [Helpers](helpers.md)


# Getting started

## Installation
Expand Down
7 changes: 0 additions & 7 deletions docs/helpers.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
* [Getting started](getting-started.md)
* [Building queries](building-queries.md)
* [Table prefixes](table-prefixes.md)
* [Making SQL from query](making-sql.md)
* Helpers


# Helpers

## Escape LIKE special wildcard characters
Expand Down
4 changes: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Welcome to the Query Scribe documentation.

The available pages are listed in the menu.
The source code is available by clicking the «GitHub» link.
7 changes: 0 additions & 7 deletions docs/making-sql.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
* [Getting started](getting-started.md)
* [Building queries](building-queries.md)
* [Table prefixes](table-prefixes.md)
* **Making SQL from query**
* [Helpers](helpers.md)


# Making SQL from query

A `Query` object can be compiled to an SQL text with bindings using a grammar object.
Expand Down
7 changes: 0 additions & 7 deletions docs/table-prefixes.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
* [Getting started](getting-started.md)
* [Building queries](building-queries.md)
* **Table prefixes**
* [Making SQL from query](making-sql.md)
* [Helpers](helpers.md)


# Table prefixes

Use the `TablePrefixer` class to add prefixes to all the tables in a query:
Expand Down
10 changes: 10 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
site_name: Query Scribe
repo_url: http://github.com/Finesse/QueryScribe
theme: readthedocs
pages:
- Home: index.md
- Getting started: getting-started.md
- Building queries: building-queries.md
- Table prefixes: table-prefixes.md
- Making SQL from query: making-sql.md
- Helpers: helpers.md

0 comments on commit 35a4c35

Please sign in to comment.