Skip to content

Commit

Permalink
Using caption with different toc sections instead of JS/CSS hack.
Browse files Browse the repository at this point in the history
This fits within the Sphinx construct and would allow our docs to
be built on readthedocs.org.
  • Loading branch information
dhermes committed Jul 30, 2015
1 parent 2928bfc commit c062561
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
10 changes: 0 additions & 10 deletions docs/_static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ $('.headerlink').parent().each(function() {
);
});

$('.side-nav').children('ul:nth-child(2)').children().each(function() {
var itemName = $(this).text();
if (itemName !== 'Datastore' &&
itemName !== 'Storage' &&
itemName !== 'Pub/Sub' &&
itemName !== 'BigQuery') {
$(this).css('padding-left','2em');
}
});

var apiQsSection;
// don't even ask me why
if ($('#cloud-datastore-in-10-seconds').length)
Expand Down
25 changes: 25 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,23 +1,48 @@
.. toctree::
:maxdepth: 0
:hidden:
:caption: gcloud

gcloud-api

.. toctree::
:maxdepth: 0
:hidden:
:caption: Datastore

datastore-overview
datastore-client
datastore-entities
datastore-keys
datastore-queries
datastore-transactions
datastore-batches

.. toctree::
:maxdepth: 0
:hidden:
:caption: Storage

storage-api
storage-blobs
storage-buckets
storage-acl

.. toctree::
:maxdepth: 0
:hidden:
:caption: Pub/Sub

pubsub-api
pubsub-usage
pubsub-topic
pubsub-subscription

.. toctree::
:maxdepth: 0
:hidden:
:caption: BigQuery

bigquery-usage


Expand Down

0 comments on commit c062561

Please sign in to comment.