Skip to content

Commit 2a12052

Browse files
committed
Add consolidated page example
1 parent d6b7223 commit 2a12052

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

templates/consolidated-page.rst

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
.. _sdks-YOUR_REF_NAME:
2+
3+
==========
4+
Page Title
5+
==========
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
.. tabs-selector:: drivers
14+
15+
Add your conceptual content to the page. Then, add the
16+
contents of the ``tabs-plus-code-example-include.rst`` and create SDK-specific
17+
includes with SDK-specific API information.
18+
19+
If more than one SDK is lacking SDK-specific API information, create a generic
20+
include with general information in the ``includes/api-details/generic``
21+
directory, in a directory that is appropriately named for the docs ToC section.
22+
23+
To populate the code example box with switchable language selector, copy the
24+
contents of ``code-example-include.rst`` and fill in the appropriate details
25+
for all of the code examples. If a code example is missing or an API doesn't
26+
exist in an SDK, use the appropriate placeholders for that language.
27+
28+
Example Page Content
29+
--------------------
30+
31+
.. tabs-drivers::
32+
33+
.. tab::
34+
:tabid: cpp
35+
36+
.. include:: /includes/api-details/generic/crud/create-asymmetric-object-description.rst
37+
38+
.. tab::
39+
:tabid: csharp
40+
41+
.. include:: /includes/api-details/generic/crud/create-asymmetric-object-description.rst
42+
43+
.. tab::
44+
:tabid: dart
45+
46+
.. include:: /includes/api-details/dart/crud/create-asymmetric-object-description.rst
47+
48+
.. tab::
49+
:tabid: java
50+
51+
.. include:: /includes/api-details/java/crud/create-asymmetric-object-not-supported.rst
52+
53+
.. tab::
54+
:tabid: javascript
55+
56+
.. include:: /includes/api-details/generic/crud/create-asymmetric-object-description.rst
57+
58+
.. tab::
59+
:tabid: kotlin
60+
61+
.. include:: /includes/api-details/kotlin/crud/create-asymmetric-object-description.rst
62+
63+
.. tab::
64+
:tabid: objectivec
65+
66+
.. include:: /includes/api-details/generic/crud/create-asymmetric-object-description.rst
67+
68+
.. tab::
69+
:tabid: swift
70+
71+
.. include:: /includes/api-details/generic/crud/create-asymmetric-object-description.rst
72+
73+
.. tab::
74+
:tabid: typescript
75+
76+
.. include:: /includes/api-details/generic/crud/create-asymmetric-object-description.rst
77+
78+
.. include:: /templates/code-example-include.rst
79+
80+
.. The above `.. include::` creates the code example box with language selector
81+
.. Make sure to use the appropriate include in the `includes/` directory.

0 commit comments

Comments
 (0)