Skip to content

Commit 88268ca

Browse files
SomethingNew71phated
authored andcommitted
Docs: Add front-matter to each file (#2109)
1 parent a4e8d48 commit 88268ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+227
-20
lines changed

docs/API.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- front-matter
2+
id: api
3+
title: API
4+
-->
5+
16
## gulp API docs
27

38
* [gulp.src](#gulpsrcglobs-options) - Emit files matching one or more globs

docs/CLI.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- front-matter
2+
id: cli
3+
title: CLI
4+
-->
5+
16
## gulp CLI docs
27

38
### Flags
@@ -105,7 +110,7 @@ Output:
105110

106111
Command: `gulp --tasks-simple`
107112

108-
Output:
113+
Output:
109114
```shell
110115
one
111116
two

docs/FAQ.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- front-matter
2+
id: faq
3+
title: FAQ
4+
-->
5+
16
# FAQ
27

38
## Why gulp? Why not ____?

docs/getting-started.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- front-matter
2+
id: getting-started
3+
title: Getting Started
4+
-->
5+
16
# Getting Started
27

38
*If you've previously installed gulp globally, run `npm rm --global gulp` before following these instructions.* For more information, read this [Sip](https://medium.com/gulpjs/gulp-sips-command-line-interface-e53411d4467).

docs/recipes/automate-release-workflow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- front-matter
2+
id: automate-release-workflow
3+
title: Automate Release Workflow
4+
-->
5+
16
# Automate release workflow
27

38
If your project follows a semantic versioning, it may be a good idea to automatize the steps needed to do a release.

docs/recipes/browserify-multiple-destination.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- front-matter
2+
id: browserify-multiple-destination
3+
title: Browserify + Globs
4+
-->
5+
16
# Browserify + Globs (multiple destination)
27

38
This example shows how to set up a task of bundling multiple entry points into multiple destinations using browserify.

docs/recipes/browserify-transforms.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- front-matter
2+
id: browserify-transforms
3+
title: Browserify + Transforms
4+
-->
5+
16
# Browserify + Transforms
27

38
[Browserify](https://github.com/browserify/browserify) has become an important and indispensable

docs/recipes/browserify-uglify-sourcemap.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
<!-- front-matter
2+
id: browserify-uglify-sourcemap
3+
title: Browserify + Uglify2 with Sourcemaps
4+
-->
5+
16
# Browserify + Uglify2 with sourcemaps
27

38
[Browserify](https://github.com/browserify/browserify) has become an important and indispensable
49
tool but requires being wrapped before working well with gulp. Below is a simple recipe for using
510
Browserify with full sourcemaps that resolve to the original individual files.
611

7-
See also: the [Combining Streams to Handle Errors](https://github.com/gulpjs/gulp/blob/master/docs/recipes/combining-streams-to-handle-errors.md) recipe for handling errors with browserify or uglify in your stream.
12+
See also: the [Combining Streams to Handle Errors](https://github.com/gulpjs/gulp/blob/master/docs/recipes/combining-streams-to-handle-errors.md) recipe for handling errors with browserify or uglify in your stream.
813

914
A simple `gulpfile.js` file for Browserify + Uglify2 with sourcemaps:
1015

docs/recipes/browserify-with-globs.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- front-matter
2+
id: browserify-with-globs
3+
title: Browserify + Globs
4+
-->
5+
16
# Browserify + Globs
27

38
[Browserify + Uglify2](https://github.com/gulpjs/gulp/blob/master/docs/recipes/browserify-uglify-sourcemap.md) shows how to setup a basic gulp task to bundle a JavaScript file with its dependencies, and minify the bundle with UglifyJS while preserving source maps.

docs/recipes/combining-streams-to-handle-errors.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- front-matter
2+
id: combining-streams-to-handle-errors
3+
title: Combining Streams to Handle Errors
4+
-->
5+
16
# Combining streams to handle errors
27

38
By default, emitting an error on a stream will cause it to be thrown unless it already has a listener attached to the `error` event. This gets a bit tricky when you're working with longer pipelines of streams.

0 commit comments

Comments
 (0)