Scott Main
f009385738
fix a couple bugs in sidenav for samples.
...
Previously, clicking a link still invoked the expand collapse behavior.
Previously, collapsing a parent item did not also collapse its children.
Change-Id: Iac0b9208bfbab79e9715850f9a192c22250d0673
2013-08-22 11:37:11 -07:00
Scott Main
498d710a4f
modify sample template and add new css/script for new numbered code.
...
The line numbers are included inside the <pre> block initially, but
hidden, so this script moves the numbers to a separate block on
the left and makes them non-selectable. Also includes script for
features like single-click to highlight a line of code and double-click
to invoke the link for that line.
Change-Id: I17ebb1255ff036948028b4722cc8e9758fb96553
2013-08-21 16:12:26 -07:00
Scott Main
ad08f07cf2
new version of script to build sidenav lists dynamically.
...
This is currently used only by the samples nav, but we'll
later update to handle the Google reference nav as well
Change-Id: I907ea8cb096148ba50808623ed872c8defc9a135
2013-08-20 17:01:42 -07:00
Dirk Dougherty
f5ffd4a40c
Clean up core css changes brought in with samples css.
...
Change-Id: I0920695be4f6ed7085508a4451c13bc7d9e65d9a
2013-08-19 12:26:07 -07:00
Dirk Dougherty
4f7e515940
doc change: Samples browsing: basic support in templates and js/css.
...
Change-Id: Ie2323f5323c624420c90c8c782b840f183238f7c
2013-08-19 11:28:59 -07:00
Scott Main
52dd206715
fix two bugs in site script.
...
1. Fix URL path check for reference docs to initalize api level and sidenav.
Previously, this condition was never true, so the sidenav would not be initialized
under default conditions and the reference drag bar would not appear.
2. Fix the recent change to the 'scroll into view' script so that it works
properly in a multi-pane sidenav (reference docs) by again making the offset
measurement relative to the parent container (but much better than was done before).
Change-Id: I2a31ed59d772346651c2432f0ed26530983c49ff
2013-08-15 12:22:28 -07:00
Scott Main
3b90aff04c
add fixed size to training icons (and remove whitespaces)
...
Change-Id: Iad8b597b9f181833d9f1d63e128abb49486fa543
2013-08-01 18:21:31 -07:00
Scott Main
c774a31235
Merge "fix sidebar autoscroll when the selected doc is not visible. bug: 9676913" into jb-mr2-docs
2013-07-31 01:14:34 +00:00
Scott Main
bc72957e92
fix sidebar autoscroll when the selected doc is not visible.
...
bug: 9676913
This was not working for third generation list items. Switching
the position measurement to be relative to the entire page rather than
the parent container fixes it. I then added 125px to account for
the site header and set the threshold and placement of scrolled items
to be at 80% the nav height.
Change-Id: Idda1896d11069e56325ba830ed745dae9e0fc483
2013-07-30 18:00:51 -07:00
Scott Main
5eccda8d6b
add 'wide' version of design/develop cross-link buttons.
...
Primarily for training pages, which have a wider TOC box
Change-Id: I29644596e72e43432f7bd00fd6a5aabf7e3a6bb7
2013-07-30 14:56:45 -07:00
Joe Fernandez
3c1da3e2c9
DO NOT MERGE
...
cherrypick from jb-mr2-ub-dev
docs: small fix for NDK download table
Change-Id: Ib014e0310960cf10566a6d04aee2acb81346a20c
2013-07-25 18:21:00 -07:00
Dirk Dougherty
48e3f1d6e4
Add new table rows for legacy ndk downloads.
...
Change-Id: If8ebc459415a22719d351d87a55ddeb4ddb6b3ba
2013-07-25 15:54:26 -07:00
Scott Main
5430d20dda
fix the api level filter (wasn't greying out APIs on page load)
...
Change-Id: Iaafe8c0652856eaff6725491f21581969e94f430
2013-07-23 20:48:54 -07:00
Scott Main
701a07fd33
remove margin changes for paragraphs in collapse container
...
Change-Id: I5ee51699cb473334e1c3cfb520c8145466eea265
2013-07-23 12:41:25 -07:00
Scott Main
98a2a71f9e
edit code-caption style margin
...
Change-Id: I63c58015ca9037621c5d4c3929620ebd2203f5ad
2013-07-17 13:15:04 -07:00
Scott Main
e80ddbe976
fix design/develop boxes float
...
Change-Id: Id6de3e74667f5cc485290509919e0f5cce689505
2013-07-12 19:22:24 -07:00
Scott Main
27403b8036
add style to add nexus 4 frame to screenshots
...
Change-Id: I1e96cbd755c4c6f88c807160b9a86b77a5ebed74
2013-07-10 16:36:05 -07:00
Dirk Dougherty
8c01be686c
am ccc15faf
: am 56811475
: am 5386532e
: Merge "Doc change: Move butterbar css to template assets." into jb-mr1.1-ub-dev
...
* commit 'ccc15faf56ad46f973800cb6bd41b4634b9192a0':
Doc change: Move butterbar css to template assets.
2013-07-08 17:33:58 -07:00
Dirk Dougherty
5386532e03
Merge "Doc change: Move butterbar css to template assets." into jb-mr1.1-ub-dev
2013-07-09 00:28:40 +00:00
Dirk Dougherty
4c2dfcfd6d
Doc change: Move butterbar css to template assets.
...
Change-Id: Ifa116fe304150c7c663b8088e00349ffdc69017c
2013-07-08 16:05:05 -07:00
Scott Main
7672ccb3d7
am fb2bb3d8
: am 51852a3f
: am 8c0f5b3a
: enable download box style for qv sidebox
...
* commit 'fb2bb3d867fcdd3add7e30d1cbb6b956d3fce89e':
enable download box style for qv sidebox
2013-07-08 15:28:53 -07:00
Scott Main
8c0f5b3aef
enable download box style for qv sidebox
...
Change-Id: I209e9971d886e45498aab0b4d43241ded5285f24
2013-07-08 15:12:02 -07:00
Scott Main
cef39240fb
align sidebox with content body
...
Change-Id: Id6cd8cdd1b21b8ceda2a6931bb69f096c0d6deb1
2013-06-19 20:29:47 -07:00
Scott Main
d19c2c82c1
update design/develop link icons to 2x for high res display
...
Change-Id: I09560c395088e0f8d835199a6eb4267af50bddaa
2013-06-19 18:48:27 -07:00
Scott Main
aaf7664d88
add style for links to Design docs from developer docs
...
Change-Id: I0f7e561c98277fb1b6b9c0b95a2ed7eef890c6db
2013-06-19 18:39:16 -07:00
Scott Main
d7026f7a5f
add new script to toggle visibility of nested list items.
...
call hideNestedItems(), giving it the parent list to toggle and the <a> element that performs the toggle
Change-Id: I6f1ee74b957f88c23550145c6ed057d8e7797c99
2013-06-17 15:09:57 -07:00
Dirk Dougherty
686f55a596
am 5b146f22
: am e5862e8a
: Doc change: css for distribute links.
...
* commit '5b146f227a3dfaa62b8e40f3a2b7a21991c09a4a':
Doc change: css for distribute links.
2013-05-15 04:25:47 -07:00
Dirk Dougherty
e5862e8a1e
Doc change: css for distribute links.
...
Change-Id: Ifc74ea3f6099484b9c7549f8e8684dda4aeaf96f
2013-05-15 02:20:53 -07:00
Scott Main
382b121c0c
am 3d2121f0
: am 0b2db169
: add \'go-link\' style for "next" style arrows w/o the javascript effects
...
* commit '3d2121f0c951c6e6b621bd892da5836f005f00e1':
add 'go-link' style for "next" style arrows w/o the javascript effects
2013-05-15 01:25:00 -07:00
Scott Main
0b2db169cb
add 'go-link' style for "next" style arrows w/o the javascript effects
...
Change-Id: I2950579b2657bdacfe038790668959d607a60277
2013-05-15 01:15:50 -07:00
Scott Main
9bfcd733cf
adjustments to developer notice style
...
Change-Id: Id5ffd85524afc79c005dc3884e442e777fe54b5f
2013-05-14 09:33:19 -07:00
Scott Main
d2af6d2284
add styles for crosslink from design to develop docs
...
Change-Id: Ia6ad4f03cec5a26fd9b7585be05f46efa2eeca7e
2013-05-13 18:47:03 -07:00
Dirk Dougherty
0b026ce6eb
Update cs file to use devsite-compatible lowercase lang ids.
...
Change-Id: Ie20e5977464199648fd91515ebe71c250162c0ee
2013-05-04 13:13:21 -07:00
Scott Main
0e76e7e4dd
provide search suggestions for api guides, training, etc.
...
also:
- demote deprecated APIs in suggestions
- focus search bar with / and exit search with ESC
Change-Id: I78818d76375d63b9eb42922d6c20ebbea30c353b
2013-05-02 10:38:45 -07:00
Scott Main
8aa725e694
re-add styles for xml definition lists.
...
used in manifest reference pages and was lost during switch to DAC2
Change-Id: I0fcaebc37fe1665bfced4b109945c9dbf6389818
2013-04-25 11:12:51 -07:00
Dirk Dougherty
a32f1bb4e4
am 547d9e93
: Doc change: css for checklist more resources blocks.
...
* commit '547d9e93b21e62f1153aaac49c22b1f648b4fef5':
Doc change: css for checklist more resources blocks.
2013-04-15 20:30:00 -07:00
Dirk Dougherty
547d9e93b2
Doc change: css for checklist more resources blocks.
...
Change-Id: If0678b08d135f708bf6ecee49831ef233a862389
2013-04-15 18:45:42 -07:00
Dirk Dougherty
48732d9aaa
am bec14294
: Doc change: css for policy docs.
...
* commit 'bec142949a33bf7d195d022e9ec99a1a84197065':
Doc change: css for policy docs.
2013-04-15 15:34:05 -07:00
Dirk Dougherty
bec142949a
Doc change: css for policy docs.
...
Change-Id: I5d8609d7e20315e5bb022f057704b2814ad9e172
2013-04-11 21:48:54 -07:00
Robert Ly
3eba74ffc1
am ddde20b6
: Merge "fix android build number in footer of gms and gcm reference" into jb-mr1-dev
...
* commit 'ddde20b67c521fbd7ad090f7a1e4ab3f69865b4f':
fix android build number in footer of gms and gcm reference
2013-04-03 13:48:35 -07:00
Robert Ly
ddde20b67c
Merge "fix android build number in footer of gms and gcm reference" into jb-mr1-dev
2013-04-03 20:38:55 +00:00
Scott Main
f614554dae
load google API navtree ondemand (remove request from <head>).
...
Also move the code for highlighting the sidenav into a separate method
that we can call at a later time, such as after the gms reference is loaded into nav.
Change-Id: I924d68b2b9dbfed83f81d1fd418e06b6c79a9010
2013-04-01 16:38:11 -07:00
Scott Main
25e7300c24
load the navtree javascript on demand; don't try setting up the tree until it's loaded
...
Change-Id: I1f209869a17099dd853a2f4cae766481a6cd03eb
2013-03-27 15:49:14 -07:00
Scott Main
de29527684
add javascript action events to search suggestions and search results.
...
Allows us to track and compare the success of suggested results and results from Google
Change-Id: I64750e3b96ea585de415969cad8ab46c3bbbcaf4
2013-03-25 15:54:05 -07:00
Scott Main
01a2545bba
docs: update templates to remove global content for devsite builds
...
Change-Id: I8c8d052248cebe6408d8c18b44baadd03f3bc96c
2013-03-21 18:12:51 -07:00
Scott Main
ec93c11194
Merge "add 64-bit variety NDK packages to download table. Use same naming convention as SDK packages for consistency." into jb-mr1.1-docs
2013-03-20 22:16:27 +00:00
Scott Main
a2303454fd
add 64-bit variety NDK packages to download table.
...
Use same naming convention as SDK packages for consistency.
Change-Id: Iee2673d6c9a4b313988e1a73966d2a0fbee27c2c
2013-03-20 15:01:35 -07:00
Scott Main
24790db1cd
fix indentation style for nested lists
...
Change-Id: Id4e1aa6f4dacf0984cfc891081799be887543453
2013-03-19 14:38:59 -07:00
Scott Main
2d967c6df6
tweak jspane width property to ensure bg color for highlighted item is full width
...
Change-Id: I92e66493229476c29cf71c74091f36063638def4
2013-03-11 09:21:07 -07:00
Scott Main
a07be8eee4
switch code font to pure monospace (sans serif).
...
also add proper margins for elements nested in lists
Change-Id: I1c2914904da63d21359283de945c9805f5d4af93
2013-03-06 12:12:21 -08:00