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 16D6F10F1C for ; Thu, 8 Aug 2013 01:18:41 +0000 (UTC) Received: (qmail 10078 invoked by uid 500); 8 Aug 2013 01:18:40 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 10051 invoked by uid 500); 8 Aug 2013 01:18:40 -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 10042 invoked by uid 99); 8 Aug 2013 01:18:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Aug 2013 01:18:40 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of agrieve@google.com designates 209.85.192.178 as permitted sender) Received: from [209.85.192.178] (HELO mail-pd0-f178.google.com) (209.85.192.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Aug 2013 01:18:34 +0000 Received: by mail-pd0-f178.google.com with SMTP id w10so1988943pde.23 for ; Wed, 07 Aug 2013 18:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=lSKJZIOGimzqNQbYAcvAxjA4/Z6cHyj6HsCiinjo65Y=; b=ENDdpRQnsu8b7cm4oEy2A0BNjRk+CeOvsaQcggM6jGMaXXE1vlOhVlNV7kg0UnLChM dYCc6bANMVaQnMTBrmE4pWHfb1fuvOMYKavI1ocZkAmIMfsqQ/YqwoS4Z94JDNDtXG7P oclIzGIh9dcLlnwfA7gtTdbvHvHHF4qSOkkJxYV4JV6qS4sonF4VovkT/cMWvWzvFSGx HE0S+rOxu0l4m6Lj0HvV+GaUxQdTerhDsN/vFOFBlNvcYPPZ2hihCiPeR1mkemwjkqca D0d/H66qhPP6+Fhy9ik89vQ5oyV1JYh+SVMbSpBnAef+GDHqcoZRVED1YFL/kGdz8hwf qmZA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=lSKJZIOGimzqNQbYAcvAxjA4/Z6cHyj6HsCiinjo65Y=; b=W/HIQvuXkYb/1o6DZ9GDhgRTzgmHQswZeGrLPpKCEMjZ/wOsk8GjUDnpHr/y1qm5GI VJNAROlMFg1UxHDv6lwKtKOhGGv4yIk2DD3yuqFM625wrq+ltcRDGIwkqTQTn1nBEzH1 Tun+aRIG1WvEYhYEurNu1/PU3p+4wU6LZtwyY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=lSKJZIOGimzqNQbYAcvAxjA4/Z6cHyj6HsCiinjo65Y=; b=AIwrBvkBClIkACQ5ouBJvL6nJp6aZHnzlXiy7VyS6eAaj1sN3bH8pe32I8QIkUm9q5 3jJji/qwQW/KvgZ7MQVVrrllD7Jqllcvf0gjb/HRxKEj5JBABqfmhMYClS8hQk8ogY2C fRFNIG4Cz9UTk1zQLQyCZngUS776Hcf9C3+kvOSAjwnqhaeBUGk2ii7QpXJKg/AIfvr2 4O+FEMhbj0yBkmrHamgKBod077av3CBaWLdg7IbPBF85JlkkGBYcXOGnZ7kCWy442+IR 0j4Sfed58uPgcFY6JzMhE/c84J9urWI1JMCTfKVBpWtnbczuqDdQVXxUADoUulJFecM6 NQRQ== X-Gm-Message-State: ALoCoQk4NaFAI+5Ec67dJ3WV98Xhe5n3cpv0E3hUItiGGkCnItSt+w7mdOrmHBZpm2q6Ha6cT9pqJ9koIC567RWR1AXRKquwvNxWlBmvfyyyE7VKcf880g6gLG7Ur8+pTzdRGr7QPDmEzY1tTmczUXdcBDDvRGLtWhyJXgiKHcvBMhqwJN0GgTP7Zb7cfKRtAvou7wWalzHuGhldGaAOgfWFs0dy6kIsUg== X-Received: by 10.66.120.145 with SMTP id lc17mr3250098pab.182.1375924693104; Wed, 07 Aug 2013 18:18:13 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.68.28.33 with HTTP; Wed, 7 Aug 2013 18:17:53 -0700 (PDT) In-Reply-To: References: From: Andrew Grieve Date: Wed, 7 Aug 2013 21:17:53 -0400 X-Google-Sender-Auth: -hqKq6j0BmRLjOPYe36MCJF_PkU Message-ID: Subject: Re: Cordova Docs in a 3.0 World To: dev Content-Type: multipart/alternative; boundary=e89a8ffbaca1921be104e3656e1d X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ffbaca1921be104e3656e1d Content-Type: text/plain; charset=ISO-8859-1 Sounds great! On Wed, Aug 7, 2013 at 8:27 PM, Michael Brooks wrote: > Thanks for kicking this off Andrew. > > As Brian mentioned, we've now gone some cycles to work on this problem and > I'd be happy to lead it forward. > > I'll put together a *cringe* wiki article *cringe* summarizing the goals > forward, but here is the breakdown that I see: > > Plugins should bundle their own documentation. As Braden mentioned, we > should let git deal with the versioning. The directory structure should be: > cordova-plugin-name/doc/en/ > > Platforms should bundle their own documentation. Same format as above. > > Cordova Docs repository will be slimmed down only include guides. Same > format as above. > > We will create a node-based tool to pull documentation from multiple > sources and render the documentation to HTML. This tool can be used > standalone to generate the documentation that can be published somewhere. > Additionally, the tool can be used as a module by cordova-cli to generate > offline documentation from cache libraries and plugins. > > Michael > > > On Wed, Aug 7, 2013 at 11:19 AM, Brian LeRoux wrote: > > > yes, exactly so, and it separates the concern of documenting vs > > publishing meaning we can experiment w/ the publishing side without > > getting caught w/ our docs lagging behind > > > > On Wed, Aug 7, 2013 at 11:04 AM, Braden Shepherdson > > > wrote: > > > +1 to that folder structure, especially with the languages. Plugins > come > > > with up-to-date documentation; no need to insert separate versions > here. > > > Git can handle the versioning better than having separate directories. > > > > > > Braden > > > > > > > > > On Wed, Aug 7, 2013 at 10:08 AM, Michal Mocny > > wrote: > > > > > >> I like that folder structure. > > >> > > >> > > >> On Wed, Aug 7, 2013 at 12:35 PM, Brian LeRoux wrote: > > >> > > >> > 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 < > > agrieve@chromium.org> > > >> > >>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? > > >> > >>> > > >> > > > > >> > > > >> > > > --e89a8ffbaca1921be104e3656e1d--