Browse Source

Order: output Core first

Artur Paikin 9 years ago
parent
commit
dfc76d6315
2 changed files with 16 additions and 16 deletions
  1. 1 1
      website/documentation.js
  2. 15 15
      website/src/api/docs.md

+ 1 - 1
website/documentation.js

@@ -5,7 +5,7 @@ var inject = require('mdast-util-inject');
 var chalk = require('chalk');
 var fs = require('fs');
 
-documentation('../src/index.js', {}, function (err, comments) {
+documentation('../src/index.js', {order: ['Core']}, function (err, comments) {
   if (err) console.log(err);
 
   documentationFormatter(comments, {}, function (err, output) {

+ 15 - 15
website/src/api/docs.md

@@ -6,21 +6,6 @@ title: "Generated API Docs"
 
 # Uppy Core & Plugins
 
-## DragDrop
-
-Drag & Drop plugin
-
-**Parameters**
-
--   `core`  
--   `opts`  
-
-### checkDragDropSupport
-
-Checks if the browser supports Drag & Drop
-
-Returns **object** true if Drag & Drop is supported, false otherwise
-
 ## Core
 
 Main Uppy core
@@ -66,3 +51,18 @@ Registers a plugin with Core
 -   `opts`  
 
 Returns **object** self for chaining
+
+## DragDrop
+
+Drag & Drop plugin
+
+**Parameters**
+
+-   `core`  
+-   `opts`  
+
+### checkDragDropSupport
+
+Checks if the browser supports Drag & Drop
+
+Returns **object** true if Drag & Drop is supported, false otherwise