Skip to content
This repository was archived by the owner on Jun 23, 2021. It is now read-only.

Commit 93694fe

Browse files
committed
Fix scrrenshots
1 parent c574cfd commit 93694fe

File tree

7 files changed

+27
-9
lines changed

7 files changed

+27
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Pastel is a PHP tool to generate beautiful documentation from Markdown. [Here's what the output looks like.](https://knuckleswtf.github.io/pastel)
77

88
<p align="center">
9-
<img src="./screenshots/pastel-screenshot-2.png">
9+
<img src="./screenshots/pastel-screenshot-1.png">
1010
</p>
1111

1212
This project is a fork of [Documentarian](https://github.com/knuckleswtf/pastel), which is itself a PHP port of [Slate](https://github.com/slatedocs/slate), the API documentation tool.

docs/css/style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,4 +964,22 @@ html {
964964

965965
.badge.badge-grey {
966966
background-color: grey;
967+
}
968+
969+
.fancy-heading-panel {
970+
background-color: lightgrey;
971+
border-radius: 5px;
972+
padding-left: 5px !important;
973+
padding-top: 5px !important;
974+
padding-bottom: 5px !important;
975+
margin-left: 25px;
976+
margin-right: 10px;
977+
width: 47%;
978+
}
979+
980+
@media screen and (max-width: 700px) {
981+
.fancy-heading-panel {
982+
width: 95%;
983+
}
984+
967985
}

docs/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@
4545
<li><a href='https://github.com/knuckleswtf/pastel'>Documentation powered by Pastel 🎨</a></li>
4646
</ul>
4747
<ul class="toc-footer" id="last-updated">
48-
<li>Last updated: April 10 2020</li>
48+
<li>Last updated: April 11 2020</li>
4949
</ul>
5050
</div>
5151
<div class="page-wrapper">
5252
<div class="dark-box"></div>
5353
<div class="content">
5454
<h1>Introduction</h1>
5555
<p>Welcome to the Kittn API! You can use our API to can get information on various cats, kittens, and breeds in our database.</p>
56-
<p>As you scroll, you'll see code examples for working with the API in Bash, Ruby, Python, and JavaScript in the dark area to the right (or as part of the content on mobile), and you can switch the programming language of the examples with the tabs in the top right (or from the nav menu at the top left on mobile).</p>
56+
<p>As you scroll, you'll see code examples for working with the API in Bash, PHP, Python, and JavaScript in the dark area to the right (or as part of the content on mobile), and you can switch the programming language of the examples with the tabs in the top right (or from the nav menu at the top left on mobile).</p>
5757
<p>This example API documentation page was borrowed from <a href="https://github.com/slatedocs/slate">Slate</a> and generated with <a href="https://github.com/knuckleswtf/pastel">Pastel</a>. Feel free to edit it and use it as a base for your own API's documentation.</p>
5858
<h1>Authentication</h1>
5959
<blockquote>
@@ -127,7 +127,7 @@ <h2>Get All Kittens</h2>
127127
<p>This endpoint retrieves all kittens.</p>
128128
<h3>HTTP Request</h3>
129129
<p><small class="badge badge-green">GET</small> <strong><code>http://example.com/api/kittens</code></strong></p>
130-
<h3>Query Parameters</h3>
130+
<h4 class="fancy-heading-panel"><b>Query Parameters</b></h4>
131131
<p>
132132
<code><b>include_cats</b></code>&nbsp; <i>Default: <code>false</code></i>
133133
<br>
@@ -170,7 +170,7 @@ <h2>Get a Specific Kitten</h2>
170170
<aside class="warning">Inside HTML code blocks like this one, you can't use Markdown, so use <code>&lt;code&gt;</code> blocks to denote code.</aside>
171171
<h3>HTTP Request</h3>
172172
<p><small class="badge badge-green">GET</small> <strong><code>http://example.com/kittens/&lt;ID&gt;</code></strong></p>
173-
<h3>URL Parameters</h3>
173+
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
174174
<p>
175175
<code><b>ID</b></code>
176176
<br>
@@ -202,7 +202,7 @@ <h2>Delete a Specific Kitten</h2>
202202
<p>This endpoint deletes a specific kitten.</p>
203203
<h3>HTTP Request</h3>
204204
<p><small class="badge badge-red">DELETE</small> <strong><code>http://example.com/kittens/&lt;ID&gt;</code></strong></p>
205-
<h3>URL Parameters</h3>
205+
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
206206
<p>
207207
<code><b>ID</b></code>
208208
<br>

screenshots/fancy-headings.png

30.4 KB
Loading
0 Bytes
Loading
-152 KB
Binary file not shown.

stubs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ This endpoint retrieves all kittens.
141141

142142
<small class="badge badge-green">GET</small> **`http://example.com/api/kittens`**
143143

144-
### Query Parameters
144+
<h4 class="fancy-heading-panel"><b>Query Parameters</b></h4>
145145
<p>
146146
<code><b>include_cats</b></code>&nbsp; <i>Default: <code>false</code></i>
147147
<br>
@@ -205,7 +205,7 @@ This endpoint retrieves a specific kitten.
205205

206206
<small class="badge badge-green">GET</small> **`http://example.com/kittens/<ID>`**
207207

208-
### URL Parameters
208+
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
209209
<p>
210210
<code><b>ID</b></code>
211211
<br>
@@ -256,7 +256,7 @@ This endpoint deletes a specific kitten.
256256

257257
<small class="badge badge-red">DELETE</small> **`http://example.com/kittens/<ID>`**
258258

259-
### URL Parameters
259+
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
260260
<p>
261261
<code><b>ID</b></code>
262262
<br>

0 commit comments

Comments
 (0)