[
https://issues.apache.org/jira/browse/CB-10552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15145383#comment-15145383
]
ASF GitHub Bot commented on CB-10552:
-------------------------------------
Github user sarangan12 commented on a diff in the pull request:
https://github.com/apache/cordova-docs/pull/493#discussion_r52804754
--- Diff: tools/bin/fetch_docs.js ---
@@ -0,0 +1,144 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+"use strict";
+
+var fs = require("fs");
+var fse = require("fs-extra");
+var https = require("https");
+var path = require("path");
+var child_process = require("child_process");
+var yaml = require("js-yaml");
+
+// constants
+var DEFAULT_REPO_PATH = "README.md";
+
+function generateFrontMatter (useDirectSrcURI, filePath, name, version) {
+ var obj = {};
+
+ if(useDirectSrcURI) {
+ filePath =
filePath.replace("https://raw.githubusercontent.com/", "");
+ var filePathSplit = filePath.split("/");
+ name = filePathSplit[0] + "/" + filePathSplit[1];
+ version = filePathSplit[2];
+ filePath = filePathSplit.slice(3).join("/");
+ }
--- End diff --
Done
> Pull all the plugin docs to Cordova
> -----------------------------------
>
> Key: CB-10552
> URL: https://issues.apache.org/jira/browse/CB-10552
> Project: Apache Cordova
> Issue Type: Task
> Reporter: Sarangan Rajamanickam
> Assignee: Sarangan Rajamanickam
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]