blob: 8db15c4b71c3d65505221943a2fd686e766f42be [file] [log] [blame]
Scott Mainc4380822011-02-16 10:05:29 -08001<?cs include:"doctype.cs" ?>
2<?cs include:"macros.cs" ?>
Scott Maine05e6f92013-01-29 13:34:17 -08003<html<?cs if:devsite ?> devsite<?cs /if ?>>
Scott Mainc4380822011-02-16 10:05:29 -08004<?cs include:"head_tag.cs" ?>
Scott Maindc63dda2013-08-22 16:03:21 -07005<body class="gc-documentation develop samples" itemscope itemtype="http://schema.org/Article">
Scott Mainc4380822011-02-16 10:05:29 -08006<?cs include:"header.cs" ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -07007
8<div <?cs if:fullpage
9?>class="fullpage"<?cs elif:design||tools||about||sdk||distribute
10?>class="col-13" id="doc-col"<?cs else
11?>class="col-12" id="doc-col"<?cs /if ?> >
12
Dirk Dougherty981effc2013-08-22 21:26:54 -070013<!-- start breadcrumb block -->
14<div id="api-info-block">
15<div class="sum-details-links">
16
17<!-- related links -->
18<?cs if:projectStructure ?>
19<a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/index.html">Overview</a>
20&#124; Project<?cs else ?>Overview
21&#124; <a href="<?cs var:toroot ?>samples/<?cs var:projectDir ?>/project.html">Project</a>
22<?cs /if ?>
23&#124; <a href="<?cs var:toroot ?>downloads/samples/<?cs var:projectDir ?>.zip">Download</a>
24
25</div><!-- end sum-details-links -->
Dirk Dougherty4bddbb12013-10-29 14:33:15 -070026
Dirk Dougherty981effc2013-08-22 21:26:54 -070027</div><!-- end breadcurmb block -->
28
29<h1 itemprop="name"><?cs var:projectDir ?></h1>
Scott Maindc63dda2013-08-22 16:03:21 -070030
31<div id="jd-content">
32<?cs def:display_files(files) ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070033
Scott Maindc63dda2013-08-22 16:03:21 -070034 <?cs each:file = files ?>
35 <?cs if:file.Type != "dir" ?>
36 <div class="structure-<?cs var:file.Type ?>">
37 <a href="<?cs var:toroot ?><?cs var:file.Href ?>"><?cs var:file.Name ?></a>
38 </div>
39 <?cs else ?>
40 <div class="toggle-content opened structure-dir">
41 <a href="#" onclick="return toggleContent(this)">
42 <img src="<?cs var:toroot ?>assets/images/triangle-opened.png"
43 class="toggle-content-img structure-toggle-img" height="9px" width="9px" />
44 <?cs var:file.Name ?></a><?cs
45 if:file.SummaryFlag == "true" ?><span class="dirInfo"
46 >[&nbsp;<a href="file.SummaryHref">Info</a>&nbsp;]</a></span><?cs
47 /if ?>
48 <div class="toggle-content-toggleme structure-toggleme">
49 <?cs if:file.Sub.0.Name ?>
50 <?cs call:display_files(file.Sub) ?>
51 <?cs /if ?>
52 </div> <?cs # /toggleme ?>
53 </div> <?cs # /toggle-content ?>
54 <?cs /if ?>
55 <?cs /each ?>
56<?cs /def ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070057
58<?cs if:android.whichdoc == "online" ?>
Scott Maind4645ea2013-08-22 16:25:15 -070059 <?cs # If this is the online docs, build the src code navigation links ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070060
Dirk Dougherty981effc2013-08-22 21:26:54 -070061 <?cs if:projectStructure ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070062
Scott Maind4645ea2013-08-22 16:25:15 -070063 <?cs call:display_files(Files) ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070064
Scott Maind4645ea2013-08-22 16:25:15 -070065 <?cs else ?> <?cs # else not project structure doc ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070066
Scott Maind4645ea2013-08-22 16:25:15 -070067 <?cs var:summary ?>
Scott Mainc4380822011-02-16 10:05:29 -080068
Scott Maind4645ea2013-08-22 16:25:15 -070069 <?cs # Remove project structure from landing pages for now
70 # <h2>Project Structure</h2>
71 # <p>Decide what to do with this ...</p>
72 # <?cs call:display_files(Files) ?>
Scott Mainc4380822011-02-16 10:05:29 -080073
Dirk Dougherty981effc2013-08-22 21:26:54 -070074 <?cs /if ?> <?cs # end if projectStructure ?>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070075
76<?cs else ?><?cs
77 # else, this means it's offline docs,
78 so don't show src links (we dont have the pages!) ?>
79
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070080<?cs /if ?><?cs # end if/else online docs ?>
81
82 </div> <!-- end jd-content -->
Scott Mainc4380822011-02-16 10:05:29 -080083
84<?cs include:"footer.cs" ?>
Scott Mainc4380822011-02-16 10:05:29 -080085</div><!-- end doc-content -->
86
87<?cs include:"trailer.cs" ?>
88
89</body>
90</html>
Dirk Dougherty4f7e5152010-09-16 10:43:40 -070091
92