Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit abbb251

Browse files
customizing GitHub pages
1 parent 153dd15 commit abbb251

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

_config.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
theme: jekyll-theme-architect
2-
markdown: kramdown
3-
highlighter: pygments

assets/css/style.scss

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
---
3+
4+
@import "{{ site.theme }}";
5+
6+
7+
// Override the theme's two-column layout with a one-column layout
8+
section#main-content {
9+
float: none;
10+
width: auto;
11+
}
12+
13+
aside#sidebar {
14+
display: block;
15+
float: none;
16+
clear: both;
17+
width: 100%;
18+
background: none;
19+
border-top: solid 1px #2f74c2;
20+
min-height: 0;
21+
margin-top: 10em;
22+
padding: 2em;
23+
}
24+
25+
26+
// Make the code samples look better
27+
.highlight {
28+
background-color: white;
29+
}

docs/exports/Resource.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ The resource's data. This can be any value that is serializable as JSON, such a
5252

5353
Properties
5454
-----------------------
55+
5556
| Property Name | Data Type | Description
5657
|:--------------------|:------------------------|:-------------
5758
| `collection` | string | The resource's collection path. This property can be an empty string, if the resource is at the root of your API.<br><br> The collection path should always begin with a forward slash and should _not_ end with one. The `Resource` constructor automatically handles this normalization. For example, "pets/" becomes "/pets".

docs/middleware/mock.md

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ But what if your API has a path _without_ a `GET` operation? Or what if your `G
9595
This is where the [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) happens. Each HTTP method corresponds to a CRUD action, though the action varies depending on whether this is a resource operation or a collection operation.
9696

9797
##### Resources
98+
9899
| HTTP Method | CRUD action
99100
|:------------|:-------------
100101
| `GET` | Returns the resource. If no data exists, then an [HTTP 404 (Not Found)](http://httpstatusdogs.com/404-not-found) error is sent.
@@ -106,6 +107,7 @@ This is where the [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_
106107
| `OPTIONS` | `OPTIONS` is usually reserved for CORS preflight requests. If you're _not_ using the [CORS middleware](CORS.md), then `OPTIONS` is treated the same as `GET`
107108
108109
##### Collections
110+
109111
| HTTP Method | CRUD action
110112
|:------------|:-------------
111113
| `GET` | Returns all resources in the collection. If your API has `query` parameters, they can be used to filter the results (e.g. _/pets?age=4&type=dog_)

0 commit comments

Comments
 (0)