Skip to content

Commit 27d12ff

Browse files
author
Khoubza Younes
committed
add doc
1 parent 198615b commit 27d12ff

27 files changed

+187671
-791
lines changed

.jekyll-metadata

44.2 KB
Binary file not shown.

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ group :jekyll_plugins do
1818
gem "jekyll-feed", "~> 0.12"
1919
gem "jekyll-sitemap"
2020
gem "jekyll-redirect-from"
21-
gem "jekyll-postcss"
2221
end
2322

2423
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem

Gemfile.lock

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ GEM
4747
kramdown-parser-gfm (1.1.0)
4848
kramdown (~> 2.0)
4949
liquid (4.0.3)
50-
listen (3.3.1)
50+
listen (3.3.3)
5151
rb-fsevent (~> 0.10, >= 0.10.3)
5252
rb-inotify (~> 0.9, >= 0.9.10)
5353
mercenary (0.4.0)
@@ -62,7 +62,7 @@ GEM
6262
rb-inotify (0.10.1)
6363
ffi (~> 1.0)
6464
rexml (3.2.4)
65-
rouge (3.25.0)
65+
rouge (3.26.0)
6666
safe_yaml (1.0.5)
6767
sassc (2.4.0)
6868
ffi (~> 1.9)
@@ -72,6 +72,7 @@ GEM
7272

7373
PLATFORMS
7474
ruby
75+
x86_64-linux
7576

7677
DEPENDENCIES
7778
jekyll (~> 4.1.1)
@@ -85,4 +86,4 @@ DEPENDENCIES
8586
wdm (~> 0.1.1)
8687

8788
BUNDLED WITH
88-
2.1.4
89+
2.2.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# php-notify.github.io
1+
# php-flasher.github.io

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ plugins:
22
- jekyll-feed
33
- jekyll-sitemap
44
- jekyll-redirect-from
5-
- jekyll-postcss
65
defaults:
76
- scope:
87
path: ""
@@ -14,6 +13,7 @@ defaults:
1413
exclude:
1514
- "*.config.js"
1615
- "package*.json"
17-
- assets
18-
- node_modules
19-
- "Gemfile*"
16+
- "assets"
17+
- "node_modules"
18+
- "Gemfile*"
19+
- ".idea"

_data/manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"/index.css": "/index.css?id=ca592cd16dfe21f81ba9"
3+
}

_data/manifest.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

_data/menu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
PHP Notify:
22
Introduction: '/docs/'
33
Installation: '/docs/installation/'
4-
<span class="github-link-icon"><img class="w-5 h-5 mr-1" src="/static/github.svg" /></span> Github: 'https://github.com/php-notify/notify'
4+
<span class="github-link-icon"><img class="w-5 h-5 mr-1" src="/static/github.svg" /></span> Github: 'https://github.com/php-flasher/flasher'
55

66
Frameworks:
77
Symfony: '/docs/framework/symfony/'
8-
Laravel: '/docs/framework/Laravel/'
8+
Laravel: '/docs/framework/laravel/'
99

1010
Adapters:
1111
Toastr: '/docs/adapter/toastr/'

_includes/leader-links.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p class="text-sm max-w-sm mx-auto mt-6 px-4 leading-very-loose">
22
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2 mr-1" href="/docs/">Docs</a>
3-
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2 mr-1" href="https://github.com/php-notify/notify">GitHub</a>
3+
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2 mr-1" href="https://github.com/php-flasher/flasher">GitHub</a>
44
<a class="bg-grey-lightest text-black shadow rounded py-1 px-2" href="https://twitter.com/yoeunes">Twitter</a>
55
</p>

_layouts/after-widget.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@
1010
<title>{{ page.title }} - {{ site.data.project.title }}</title>
1111
{% if site.data.project.description %}
1212
<meta name="description" content="{{ site.data.project.description }}" />
13+
<meta name="google-site-verification" content="t3LQA1pQ-pzDXBua25DxF7oJ9ku5RcIX-mtQoG2r3pQ" />
1314
<link href="https://fonts.googleapis.com/css?family=Raleway|Varela+Round" rel="stylesheet" />
1415
{% endif %}
1516
{% unless site.data.dev.dev_mode %}
16-
<script async src="https://www.googletagmanager.com/gtag/js?id=XXXXXXXXX"></script>
17+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-T4D78SM7TC"></script>
1718
<script>
1819
window.dataLayer = window.dataLayer || [];
1920
function gtag() { dataLayer.push(arguments);}
2021
gtag('js', new Date());
21-
gtag('config', 'XXXXXXXX');
22+
gtag('config', 'G-T4D78SM7TC');
2223
</script>
23-
<base href="https://php-notify.github.io/" />
24+
<base href="https://php-flasher.github.io/" />
2425
{% endunless %}
25-
<link rel="stylesheet" href="{{ site.data.manifest['docs.css'] }}"/>
26+
<link rel="stylesheet" href="/dist/index.css"/>
2627
</head>
2728
<body class="bg-grey-lighter min-h-screen bg-squared leading-tight leader">
2829
{% include size-helper.html %}

_layouts/default.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
{% endif %}
1212
{% unless site.data.dev.dev_mode %}
1313
{% endunless %}
14-
<link rel="stylesheet" href="{{ site.data.manifest['docs.css'] }}"/>
14+
<link rel="stylesheet" href="/dist/index.css"/>
1515
<link rel="stylesheet" href="/static/prism.css"/>
16-
<base href="https://php-notify.github.io/">
16+
<base href="https://php-flasher.github.io/">
1717
</head>
1818
<body class="min-h-screen min-w-full pt-12 leading-normal bg-grey-lightest">
1919
<div class="h-16 fixed z-10 top-0 w-screen bg-white border-grey-light border-b">
2020
<div class="max-w-lg lg:max-w-2xl mx-auto px-4 py-2">
2121
<div class="flex items-center flex-no-shrink pt-1">
2222
<a href="/" class="flex items-center">
23-
<img class="fill-current h-10 w-10 mr-2" width="30" height="30" src="/static/php-notify.png"/>
24-
<span class="pr-2 font-normal font-heading leading-none text-3xl text-grey-darkest hidden sm:block">
23+
<img class="fill-current h-10 w-10 mr-2" width="30" height="30" src="/static/php-flasher.png"/>
24+
<span class="pr-2 font-normal font-normal leading-none text-3xl text-grey-darkest hidden sm:block">
2525
PHP<span class="text-red">Notify</span><sup class="text-xs relative text-grey-dark" style="top: -20px;">{{ site.data.project.version }}</sup>
2626
</span>
2727
</a>
@@ -46,7 +46,7 @@ <h2 class="cli-prefixed text-sm leading-loose tracking-wide text-grey uppercase"
4646
<ul class="list-reset mb-8">
4747
{% for link in section[1] %}
4848
<li>
49-
<a class="leading-loose text-md {% if page.url == link[1] %}text-red{% else %}text-grey-darker{% endif %}"
49+
<a class="leading-loose text-md {% if page.url == link[1] %}text-red{% else %}text-gray-900{% endif %}"
5050
href="{{ link[1] }}">{{ link[0] }}</a>
5151
</li>
5252
{% endfor %}

_layouts/leader.html

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,46 +13,46 @@
1313
<link href="https://fonts.googleapis.com/css?family=Raleway|Varela+Round" rel="stylesheet" />
1414
{% endif %}
1515
{% unless site.data.dev.dev_mode %}
16-
<script async src="https://www.googletagmanager.com/gtag/js?id=XXXXXX"></script>
16+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-T4D78SM7TC"></script>
1717
<script>
1818
window.dataLayer = window.dataLayer || [];
19-
function gtag() { dataLayer.push(arguments);}
19+
function gtag() { dataLayer.push(arguments); }
2020
gtag('js', new Date());
21-
gtag('config', 'XXXXXXXX');
21+
gtag('config', 'G-T4D78SM7TC');
2222
</script>
23-
<base href="https://php-notify.github.io/" />
23+
<base href="https://php-flasher.github.io/" />
2424
{% endunless %}
25-
<link rel="stylesheet" href="{{ site.data.manifest['docs.css'] }}"/>
25+
<link rel="stylesheet" href="/dist/index.css"/>
2626
</head>
2727
<body class="bg-grey-lighter min-h-screen bg-squared leading-tight leader">
2828
{% include size-helper.html %}
2929
<header id="leader" class="text-center md:py-10">
3030
<div id="teaser" class="pt-10 max-w-sm mx-auto text-center">
3131
<a href="/">
32-
<img class="mb-4 inline" id="logo" src="/static/php-notify.png" height="150px" width="150px" alt="PHP Notify">
32+
<img class="mb-4 inline" id="logo" src="/static/php-flasher.png" height="150px" width="150px" alt="PHP Flasher">
3333
</a>
3434
<h1 class="text-4xl">
35-
PHP<span class="text-red">Notify</span>.
35+
PHP<span class="text-red">Flasher</span>.
3636
</h1>
3737
<p class="text-xl max-w-sm mx-auto mt-4 px-8 leading-tight">
3838
Easy flash notifications for PHP
3939
</p>
4040
{% include leader-links.html %}
4141
<p class="pt-4">
42-
<a href="https://github.com/php-notify/notify">
43-
<img src="https://img.shields.io/badge/source-php--notify/notify-blue.svg?style=flat-square">
42+
<a href="https://github.com/php-flasher/flasher">
43+
<img src="https://img.shields.io/badge/source-php--flasher/flasher-blue.svg?style=flat-square">
4444
</a>
45-
<a href="https://github.com/php-notify/notify/releases">
46-
<img src="https://img.shields.io/github/tag/php-notify/notify.svg">
45+
<a href="https://github.com/php-flasher/flasher/releases">
46+
<img src="https://img.shields.io/github/tag/php-flasher/flasher.svg">
4747
</a>
48-
<a href="https://github.com/php-notify/notify/blob/master/LICENSE">
48+
<a href="https://github.com/php-flasher/flasher/blob/master/LICENSE">
4949
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg">
5050
</a>
51-
<a href="https://packagist.org/packages/php-notify/notify">
52-
<img src="https://img.shields.io/packagist/dt/php-notify/notify.svg">
51+
<a href="https://packagist.org/packages/php-flasher/flasher">
52+
<img src="https://img.shields.io/packagist/dt/php-flasher/flasher.svg">
5353
</a>
54-
<a href="https://packagist.org/packages/php-notify/notify">
55-
<img src="https://img.shields.io/packagist/php-v/php-notify/notify.svg?style=flat-square">
54+
<a href="https://packagist.org/packages/php-flasher/flasher">
55+
<img src="https://img.shields.io/packagist/php-v/php-flasher/flasher.svg?style=flat-square">
5656
</a>
5757
</p>
5858
</div>
@@ -65,7 +65,7 @@ <h1 class="text-4xl">
6565
</span>
6666
<div class="mb-2 leading-normal">
6767
<h2 class="text-3xl text-white leading-tight mb-2">
68-
Why use PHP Notify ?
68+
Why use PHP Flasher ?
6969
</h2>
7070
<p class="text-grey-dark text-lg mx-auto max-w-sm">
7171
This library is designed, so you can take full control when creating you notifications :
@@ -133,7 +133,7 @@ <h2 class="text-3xl text-white leading-tight mb-2">
133133
<h2 class="text-3xl text-black mb-2">
134134
Easy To use
135135
</h2>
136-
<p class="text-grey-darker text-lg mx-auto max-w-sm">
136+
<p class="text-gray-900 text-lg mx-auto max-w-sm">
137137
This library was developed with the idea that you should
138138
be able to add flash notification to your application with ease and with few lines of code.
139139
</p>
@@ -148,21 +148,21 @@ <h2 class="text-3xl text-black mb-2">
148148
use App\Post;
149149
use App\Http\Requests\PostRequest;
150150
use Illuminate\Database\Eloquent\Model;
151-
use Notify\Toastr\Producer\ToastrProducer;
151+
use Flasher\Toastr\Producer\ToastrProducer;
152152

153153
class PostController extends Controller
154154
{
155-
public function store(PostRequest $request, ToastrProducer $notify)
155+
public function store(PostRequest $request, ToastrProducer $flasher)
156156
{
157157
$post = Post::create($request->only(['title', 'body']));
158158

159159
if ($post instanceof Model) {
160-
$notify->success('Data has been saved successfully!');
160+
$flasher->success('Data has been saved successfully!');
161161

162162
return redirect()->route('posts.index');
163163
}
164164

165-
$notify->error('An error has occurred please try again later.');
165+
$flasher->error('An error has occurred please try again later.');
166166

167167
return back();
168168
}

assets/index.css renamed to assets/index.pcss

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@tailwind utilities;
44

55
img {
6-
@apply .inline;
6+
@apply inline;
77
vertical-align: initial;
88
}
99

@@ -72,7 +72,7 @@ img {
7272
}
7373

7474
body {
75-
@apply text-grey-darkest font-body;
75+
@apply text-gray-900;
7676
font-size: 15px;
7777
font-weight: 400;
7878
font-stretch: 100%;
@@ -85,34 +85,32 @@ body {
8585
}
8686

8787
a {
88-
@apply text-red;
88+
@apply text-red-600;
8989
}
9090

9191
h1, h2, h3 {
9292
font-weight: normal;
93-
@apply font-heading;
93+
@apply font-normal;
9494
}
9595

9696
a {
9797
text-decoration: none;
9898
}
9999

100100
article h1 {
101-
@apply text-red text-4xl leading-tight;
101+
@apply text-red-600 text-4xl leading-tight;
102102
}
103103

104104
article h2 {
105-
@apply text-red
106-
text-2xl;
105+
@apply text-red-600 text-2xl;
107106
}
108107

109108
article h3 {
110-
@apply text-red
111-
text-xl mt-6;
109+
@apply text-red-600 text-xl mt-6;
112110
}
113111

114112
article table {
115-
@apply text-left p-4 bg-white border-l-4 border-grey-darker mb-4 shadow-md;
113+
@apply text-left p-4 bg-white border-l-4 border-gray-900 mb-4 shadow-md;
116114
width: 100%;
117115
border-spacing: 0;
118116
border-collapse: collapse;
@@ -124,15 +122,15 @@ article p, article table {
124122
}
125123

126124
article table td {
127-
@apply border-t border-grey;
125+
@apply border-t border-gray-900;
128126
}
129127

130128
article table th, article table td {
131129
@apply p-2;
132130
}
133131

134132
article blockquote {
135-
@apply p-4 bg-white border-l-4 border-grey-darker mb-4 shadow;
133+
@apply p-4 bg-white border-l-4 border-gray-900 mb-4 shadow;
136134
}
137135

138136
article ul, article ol {
@@ -177,7 +175,7 @@ article blockquote :last-child {
177175
left: calc(50% + 20px);
178176
right: 0;
179177
z-index: -1;
180-
@apply bg-white border border-grey-light border-r-0;
178+
@apply bg-white border border-gray-200 border-r-0;
181179
}
182180
.md\:left-half-bg-black:before {
183181
position: absolute;
@@ -188,15 +186,15 @@ article blockquote :last-child {
188186
right: calc(50% + 20px);
189187
left: 0;
190188
z-index: -1;
191-
@apply bg-white border border-grey-light border-l-0;
189+
@apply bg-white border border-gray-200 border-l-0;
192190
}
193191
}
194192

195193
.highlight {
196194
@apply text-left;
197195
}
198196

199-
@screen -lg {
197+
@screen lg {
200198
#main-article div.highlight {
201199
margin-left: -1rem;
202200
margin-right: -1rem;

0 commit comments

Comments
 (0)