Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8F4E10A68 for ; Wed, 7 Aug 2013 16:35:29 +0000 (UTC) Received: (qmail 42945 invoked by uid 500); 7 Aug 2013 16:35:29 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 42918 invoked by uid 500); 7 Aug 2013 16:35:29 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 42905 invoked by uid 99); 7 Aug 2013 16:35:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 16:35:28 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brian.leroux@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-ob0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 16:35:23 +0000 Received: by mail-ob0-f175.google.com with SMTP id xn12so2453654obc.20 for ; Wed, 07 Aug 2013 09:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=2QQuvXkqui5ksd/U72t7ThXqM+uz3SE/zSLZ4NGxKoY=; b=q8AtrKJChZymedirOXMt+IWm1ZNxUZc2XdqPIOo0qEVOIuFkA98rbDPJ6F5LhiUOW/ /z6tUQADVvxa3cLDdq2GsLGW7JqD7rKQX6ivwxyM5f7kS6NKqMB/ClsDpy6Zsj3rm/fQ zdq2/c1duZYQQzwrf2ZD8Xqd2nXgFzoxXXhqcg803tFx2JT+LTgnR5jHamRHUaoNvfIL B1vNnByHr74Pi6OcVPO5Yp+wpi3bSQMmEHvAzxmcjEVEzrBY4WqTyix/JlWjYFnTB71H KlInKvzHEMbQPbZRJ6E+Ep/SOVRx+HOw5GoAwT6GxSNLX0p4SKWAeJUNW6EiPKVoplOC GASw== MIME-Version: 1.0 X-Received: by 10.43.139.5 with SMTP id iu5mr278135icc.107.1375893302367; Wed, 07 Aug 2013 09:35:02 -0700 (PDT) Sender: brian.leroux@gmail.com Received: by 10.50.114.132 with HTTP; Wed, 7 Aug 2013 09:35:02 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Aug 2013 09:35:02 -0700 X-Google-Sender-Auth: hG_ImWTzvkvn3NsQ2T6ZvcE_C3I Message-ID: Subject: Re: Cordova Docs in a 3.0 World From: Brian LeRoux To: dev@cordova.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Ya, we were just discussing this in Adobe land. The current idea is that a plugin has a ./docs/ folder which contains all the markdown and *possibly* a config file. Something like this: ./plugin-whatever |-docs/ | |-en/ ... And then we'd have a viewer/transformer code and deal w/ publishing elsewhere. On Wed, Aug 7, 2013 at 9:12 AM, Filip Maj wrote: > I'd like to see docs and tests moved into the plugin repos eventually, > with us putting work into our tools to support documentation and testing > workflows. > > How that all shakes out still has to be determined :) > > Hopefully that will end up encouraging plugin authors to write docs/tests > :) > > On 8/7/13 8:44 AM, "Michal Mocny" wrote: > >>+1 to README bundled with the plugin, and having a `cordova docs`, so that >>we can have offline documentation. >> >>I would also like a way to have the guides available offline, but perhaps >>that could come in the form of a cordova-plugin-guides or come bundled >>with >>cordova-cli and be included with every 'cordova docs' as part of the >>template? >> >>-Michal >> >> >>On Wed, Aug 7, 2013 at 10:51 AM, Andrew Grieve >>wrote: >> >>> If we're releasing plugins independently (which is great!), then it >>>doesn't >>> make sense to have all of our plugin APIs documented as one, and under >>>the >>> same parent version. >>> >>> e.g. Right now we have: docs/3.0/File , docs/3.0/InAppBrowser, etc. >>> >>> One option is to switch away from having the version as the parent: >>> >>> docs/File/3.0 >>> docs/File/3.1 >>> docs/InAppBrowser/3.0 >>> ... >>> >>> Or even just fold version changes into the docs: >>> >>> docs/File >>> "File.moveToTrash (added in 3.1)" >>> >>> >>> Another option is to move the plugin docs into the plugins: >>> cordova-plugin-file/docs >>> >>> It looks like this has somewhat been attempted already, as there are >>>files >>> that exist here: >>> >>> > ~/git/cordova$ ls cordova-plugin-file/docs/ >>> > directoryentry/ file.md fileerror/ filereader/ >>> > fileuploadoptions/ filewriter/ localfilesystem/ >>> > directoryreader/ fileentry/ fileobj/ filesystem/ >>> > fileuploadresult/ flags/ metadata/ >>> >>> >>> but this format doesn't seem very user-friendly, and doesn't lend >>>itself to >>> supporting translations. >>> >>> Maybe we could fold all the docs for a plugin into a single README.md >>>file? >>> Other languages could have README-fr.md, README-pl.md, etc, all at the >>>root >>> of the repo (or under a translations/ subdirectory?) >>> >>> In this scheme guides would stay under cordova-docs, but all of the API >>> docs would live in the plugin repos. Perhaps we could have a "cordova >>>docs" >>> command that would convert all of your installed plugins into html, >>>create >>> an index page, and open it in a browser? >>> >>> Any other ideas? >>> >