Add introduction sections (#1497)
This commit is contained in:
parent
ba699dd29e
commit
c792f1b418
|
@ -130,10 +130,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Description paragraphs */
|
/* Description paragraphs */
|
||||||
& > pre ~ p,
|
& p {
|
||||||
& > ul ~ p,
|
|
||||||
& > iframe ~ p,
|
|
||||||
& > table ~ p {
|
|
||||||
background: $gray-bg;
|
background: $gray-bg;
|
||||||
color: $gray-text;
|
color: $gray-text;
|
||||||
|
|
||||||
|
@ -212,3 +209,55 @@ ul.-also-see.-also-see.-also-see {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.h3-section.-intro {
|
||||||
|
& > .body > p {
|
||||||
|
@include font-size(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
& > .body > ul > li {
|
||||||
|
padding-left: 16px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > .body > ul > li::before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// & > .body > ul > li:hover {
|
||||||
|
// background: rgba($base-b3, 0.1);
|
||||||
|
// }
|
||||||
|
|
||||||
|
& > .body > ul > li > a {
|
||||||
|
@include font-size(1);
|
||||||
|
display: block;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cover the full card
|
||||||
|
& > .body > ul > li > a::before {
|
||||||
|
content: '';
|
||||||
|
@include ion-md-arrow-forward(24px, $base-a3);
|
||||||
|
position: absolute;
|
||||||
|
right: 16px;
|
||||||
|
top: 50%;
|
||||||
|
margin-top: -12px;
|
||||||
|
}
|
||||||
|
& > .body > ul > li:hover > a::before {
|
||||||
|
@include ion-md-arrow-forward(24px, $base-a);
|
||||||
|
}
|
||||||
|
|
||||||
|
& > .body > ul > li > a::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
display: block;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > .body > ul > li em {
|
||||||
|
color: $base-mute;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -16,18 +16,13 @@
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
font-family: $body-font;
|
font-family: $body-font;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
& > h1 > em {
|
& > h1 > em {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
color: lighten($gray-text, 20%);
|
color: lighten($gray-text, 20%);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.main-heading.-center {
|
|
||||||
& > h1 {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
& > .pubbox {
|
& > .pubbox {
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
|
@ -42,6 +37,28 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.UseCompactHeader .main-heading {
|
||||||
|
@media (min-width: 769px) {
|
||||||
|
& {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-end;
|
||||||
|
margin-bottom: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > h1 {
|
||||||
|
flex: 1 0 auto;
|
||||||
|
text-align: left;
|
||||||
|
padding-right: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > .pubbox {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add some space in preview mode
|
* Add some space in preview mode
|
||||||
*/
|
*/
|
||||||
|
|
8
bash.md
8
bash.md
|
@ -18,6 +18,14 @@ Getting started
|
||||||
---------------
|
---------------
|
||||||
{: .-three-column}
|
{: .-three-column}
|
||||||
|
|
||||||
|
### Introduction
|
||||||
|
{: .-intro}
|
||||||
|
|
||||||
|
This is a quick reference to getting started with Bash scripting.
|
||||||
|
|
||||||
|
- [Learn bash in y minutes](https://learnxinyminutes.com/docs/bash/) _(learnxinyminutes.com)_
|
||||||
|
- [Bash Guide](http://mywiki.wooledge.org/BashGuide) _(mywiki.wooledge.org)_
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -11,12 +11,16 @@ keywords:
|
||||||
- wrap.setProps()
|
- wrap.setProps()
|
||||||
- "wrap.find().simulate('click')"
|
- "wrap.find().simulate('click')"
|
||||||
- "wrap.contains(<div/>)"
|
- "wrap.contains(<div/>)"
|
||||||
intro: |
|
|
||||||
[Enzyme](http://airbnb.io/enzyme) lets you write unit tests for React components. This guide covers Enzyme 3.x.
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
|
### Introduction
|
||||||
|
|
||||||
|
[Enzyme](http://airbnb.io/enzyme) lets you write unit tests for React components. This guide covers Enzyme 3.x.
|
||||||
|
|
||||||
|
- [Enzyme website](https://enzymejs.github.io/enzyme/) _(enzymejs.github.io)_
|
||||||
|
|
||||||
### Mounting
|
### Mounting
|
||||||
{: .-prime}
|
{: .-prime}
|
||||||
|
|
||||||
|
|
|
@ -5,13 +5,16 @@ layout: 2017/sheet
|
||||||
updated: 2017-10-12
|
updated: 2017-10-12
|
||||||
weight: -1
|
weight: -1
|
||||||
deprecated_by: /enzyme
|
deprecated_by: /enzyme
|
||||||
intro: |
|
|
||||||
[Enzyme](http://airbnb.io/enzyme) lets you write unit tests for React components. This guide covers Enzyme 2.x.
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
{: .-three-column}
|
{: .-three-column}
|
||||||
|
|
||||||
|
### Introduction
|
||||||
|
{: .-intro}
|
||||||
|
|
||||||
|
**(Deprecated)** [Enzyme](http://airbnb.io/enzyme) lets you write unit tests for React components. This guide covers a previous version (v2.x).
|
||||||
|
|
||||||
### Mounting
|
### Mounting
|
||||||
{: .-prime}
|
{: .-prime}
|
||||||
|
|
||||||
|
|
|
@ -3,21 +3,27 @@ title: Factory Bot
|
||||||
category: Ruby libraries
|
category: Ruby libraries
|
||||||
layout: 2017/sheet
|
layout: 2017/sheet
|
||||||
weight: -3
|
weight: -3
|
||||||
updated: 2020-06-24
|
updated: 2020-07-06
|
||||||
keywords:
|
keywords:
|
||||||
- "FactoryBot.define do"
|
- "FactoryBot.define do"
|
||||||
- "factory :user"
|
- "factory :user"
|
||||||
- "first_name 'John'"
|
- "first_name 'John'"
|
||||||
- "sequence(:username) { |n| \"user#{n}\" }"
|
- "sequence(:username) { |n| \"user#{n}\" }"
|
||||||
tags: [Featurable]
|
tags: [Featurable]
|
||||||
intro: |
|
|
||||||
[Factory Bot](http://www.rubydoc.info/gems/factory_bot/) is a helper for writing factories for Ruby tests.
|
|
||||||
It was previously known as Factory Girl. For older versions, use `FactoryGirl` instead of `FactoryBot`.
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Factories
|
## Factories
|
||||||
{: .-three-column}
|
{: .-three-column}
|
||||||
|
|
||||||
|
### Introduction
|
||||||
|
{: .-intro}
|
||||||
|
|
||||||
|
[Factory Bot](http://www.rubydoc.info/gems/factory_bot/) is a helper for writing factories for Ruby tests. It was previously known as Factory Girl. For older versions, use `FactoryGirl` instead of `FactoryBot`.
|
||||||
|
|
||||||
|
- [Factory Bot documentation](http://www.rubydoc.info/gems/factory_bot/) _(rubydoc.info)_
|
||||||
|
- [Getting started](https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md) _(github.com)_
|
||||||
|
- [Source code](https://github.com/thoughtbot/factory_bot) _(github.com)_
|
||||||
|
|
||||||
### Defining factories
|
### Defining factories
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
|
|
10
fastify.md
10
fastify.md
|
@ -3,12 +3,18 @@ title: Fastify
|
||||||
category: JavaScript libraries
|
category: JavaScript libraries
|
||||||
layout: 2017/sheet
|
layout: 2017/sheet
|
||||||
updated: 2017-09-23
|
updated: 2017-09-23
|
||||||
intro: |
|
|
||||||
[Fastify](https://github.com/fastify/fastify) lets you create HTTP servers in Node.js with good performance. This guide targets fastify v0.28.x.
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
|
### Introduction
|
||||||
|
{: .-intro}
|
||||||
|
|
||||||
|
[Fastify](https://github.com/fastify/fastify) lets you create HTTP servers in Node.js with good performance. This guide targets fastify v0.28.x.
|
||||||
|
|
||||||
|
- [Fastify source code](https://github.com/fastify/fastify) _(github.com)_
|
||||||
|
- [Documentation](https://github.com/fastify/fastify#documentation) _(github.com)_
|
||||||
|
|
||||||
### Hello world
|
### Hello world
|
||||||
{: .-prime}
|
{: .-prime}
|
||||||
|
|
||||||
|
|
18
go.md
18
go.md
|
@ -11,6 +11,13 @@ updated: 2020-06-21
|
||||||
## Getting started
|
## Getting started
|
||||||
{: .-three-column}
|
{: .-three-column}
|
||||||
|
|
||||||
|
### Introduction
|
||||||
|
{: .-intro}
|
||||||
|
|
||||||
|
- [A tour of Go](https://tour.golang.org/welcome/1) _(tour.golang.org)_
|
||||||
|
- [Go repl](https://repl.it/languages/go) _(repl.it)_
|
||||||
|
- [Golang wiki](https://github.com/golang/go/wiki/) _(github.com)_
|
||||||
|
|
||||||
### Hello world
|
### Hello world
|
||||||
{: .-prime}
|
{: .-prime}
|
||||||
|
|
||||||
|
@ -576,10 +583,17 @@ See: [Pointer receivers](https://tour.golang.org/methods/4)
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
||||||
|
### Official resources
|
||||||
|
{: .-intro}
|
||||||
|
|
||||||
- [A tour of Go](https://tour.golang.org/welcome/1) _(tour.golang.org)_
|
- [A tour of Go](https://tour.golang.org/welcome/1) _(tour.golang.org)_
|
||||||
- [Golang wiki](https://github.com/golang/go/wiki/) _(github.com)_
|
- [Golang wiki](https://github.com/golang/go/wiki/) _(github.com)_
|
||||||
- [Awesome Go](https://awesome-go.com/) _(awesome-go.com)_
|
|
||||||
- [Go by Example](https://gobyexample.com/) _(gobyexample.com)_
|
|
||||||
- [Effective Go](https://golang.org/doc/effective_go.html) _(golang.org)_
|
- [Effective Go](https://golang.org/doc/effective_go.html) _(golang.org)_
|
||||||
|
|
||||||
|
### Other links
|
||||||
|
{: .-intro}
|
||||||
|
|
||||||
|
- [Go by Example](https://gobyexample.com/) _(gobyexample.com)_
|
||||||
|
- [Awesome Go](https://awesome-go.com/) _(awesome-go.com)_
|
||||||
- [JustForFunc Youtube](https://www.youtube.com/channel/UC_BzFbxG2za3bp5NRRRXJSw) _(youtube.com)_
|
- [JustForFunc Youtube](https://www.youtube.com/channel/UC_BzFbxG2za3bp5NRRRXJSw) _(youtube.com)_
|
||||||
- [Style Guide](https://github.com/golang/go/wiki/CodeReviewComments) _(github.com)_
|
- [Style Guide](https://github.com/golang/go/wiki/CodeReviewComments) _(github.com)_
|
||||||
|
|
11
httpie.md
11
httpie.md
|
@ -6,10 +6,17 @@ weight: -3
|
||||||
updated: 2020-07-05
|
updated: 2020-07-05
|
||||||
description: |
|
description: |
|
||||||
$ http POST http://example.com name="John" Host:example.com — JSON, cookies, files, auth, and other httpie examples.
|
$ http POST http://example.com name="John" Host:example.com — JSON, cookies, files, auth, and other httpie examples.
|
||||||
intro: |
|
|
||||||
[HTTPie](https://httpie.org/) is a command-line HTTP client.
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### Intorduction
|
||||||
|
{: .-intro}
|
||||||
|
|
||||||
|
[HTTPie](https://httpie.org/) is a command-line HTTP client.
|
||||||
|
|
||||||
|
- [HTTPie website](https://httpie.org/) _(httpie.org)_
|
||||||
|
- [HTTPie documentation](https://httpie.org/docs) _(httpie.org)_
|
||||||
|
- [Try it online](https://httpie.org/run) _(httpie.org)_
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
7
sass.md
7
sass.md
|
@ -18,6 +18,13 @@ keywords:
|
||||||
## Basics
|
## Basics
|
||||||
{: .-three-column}
|
{: .-three-column}
|
||||||
|
|
||||||
|
### Introduction
|
||||||
|
{: .-intro}
|
||||||
|
|
||||||
|
This is a quick reference to [Sass stylesheets](https://sass-lang.com).
|
||||||
|
|
||||||
|
- [Sass documentation](https://sass-lang.com/documentation) _(sass-lang.com)_
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
```scss
|
```scss
|
||||||
|
|
6
xpath.md
6
xpath.md
|
@ -11,9 +11,11 @@ description: |
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
### Xpath test bed
|
### Xpath test bed
|
||||||
|
{: .-intro}
|
||||||
|
|
||||||
Test queries in the Xpath test bed:<br>
|
Test queries in the Xpath test bed:
|
||||||
[Xpath test bed](http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm) _(whitebeam.org)_
|
|
||||||
|
- [Xpath test bed](http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm) _(whitebeam.org)_
|
||||||
|
|
||||||
### Browser console
|
### Browser console
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue