Skip to content

Commit c98756f

Browse files
templates
1 parent 4f59ebf commit c98756f

9 files changed

Lines changed: 121 additions & 405 deletions

File tree

modules/_templates/best-practices.adoc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
= <Title: "Best Practices for <noun phrase>">
22
:toc: true
33
:toclevels: 1
4+
// Adjust toclevels if you have many sections, but 1-2 levels is usually sufficient for reference pages.
45

5-
:page-pageid:
6+
:page-title: <Title text for the page>
7+
:page-pageid: <Required attribute for ThoughtSpot Embedded and developer documentation. The page ID must be unique. For example, "spotter-embed-best-practices">
68
:keywords: <comma-separated terms. For example, "configure auth", "SSO", "SAML">
79
:page-type: best-practices
8-
:page-role:
10+
:page-role: <Optional>
911
:product-version: <version>
10-
:jira-ref: <DOC-XXXX>
12+
:jira-ref: <SCAL-XXXXXX>
1113
// last-reviewed: <Optional>
1214

1315
// 1-2 sentences: what this page covers, who it is for, and what
@@ -53,7 +55,7 @@
5355

5456
== What to avoid
5557

56-
// Optional but high value. Describe common mistakes or patterns.
58+
// Optional but adds value. Describe common mistakes or patterns.
5759
// Use WARNING admonitions for practices that risk data loss or security issues.
5860

5961
//WARNING: <Describe a practice that risks data loss, security exposure,or system instability. State the consequence clearly.>

modules/_templates/concept.adoc

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
= <Title: Noun phrase describing the concept>
22
:toc: true
33
:toclevels: 1
4+
// Adjust toclevels if you have many sections, but 1-2 levels is usually sufficient for reference pages.
45

5-
:page-title: <Title — must match the = Title above>
6+
:page-title: <Title text for the page>
67
:page-description: <One sentence: what this page covers and why it matters to the reader.>
7-
:page-pageid: <Add a unique ID for this page, for example, "embed-sdk-concepts". Required for developer documentation.>
8+
:page-pageid: <Required attribute for ThoughtSpot Embedded and developer documentation. The page ID must be unique. For example, "spotter-embed-overview">
89
:keywords: <comma-separated terms for search indexing, for example, "authentication, SSO, SAML, login">
9-
:page-type: concept
10-
:page-role:
10+
:page-role: <Optional>
1111
:product-version: <version>
12-
:jira-ref: <DOC-XXXX>
13-
14-
// author:
15-
// last-reviewed:
16-
17-
// REQUIRED: 1-2 sentence lead — what this concept is and why it matters to developers or administrators.
12+
:jira-ref: <SCAL-XXXXXX>
13+
// last-reviewed: <Optional>
1814

1915
////
2016
TEMPLATE GUIDE
@@ -42,21 +38,29 @@ Style elements you can use:
4238
Inline badge : [beta betaBackground]^Beta^
4339
Version badge: [.version-badge.new]#New# [.version-badge.deprecated]#Deprecated#
4440
[.version-badge.breaking]#Breaking# [.version-badge.fixed]#Fixed#
41+
==============
4542
////
4643
44+
45+
// REQUIRED: a lead sentence for the article with 1-2 sentences. For example, explain what the feature is and why it matters to users.
46+
47+
== Overview
48+
49+
<Intro text>
50+
4751
== How <concept> works
4852
4953
// REQUIRED.
50-
// Explain the concept clearly. Avoid procedure steps — link to procedure pages instead.
54+
// Explain the concept clearly. Avoid procedure steps. Link to procedure pages instead.
5155
// Use plain language; define acronyms on first use.
5256
//
5357
// Add a diagram or screenshot if spatial relationships or architecture matter:
54-
// image::./images/<diagram-filename>.png[Alt text describing the diagram]
55-
//
56-
// Example:
57-
// image::./images/embed-architecture.png[ThoughtSpot embedded architecture overview showing the SDK, REST API, and host application layers]
58+
// Use the following format for images:
59+
// image::./images/<diagram-filename>.png[Alt text describing the diagram]
60+
// For example, image::./images/mcp-architecture.png[ThoughtSpot MCP Server architecture]
5861
//
5962
// Use admonitions to highlight key information:
63+
6064
// [NOTE]
6165
// ====
6266
// Text for a general note or clarification.
@@ -93,6 +97,8 @@ Description of what it does.
9397
9498
// RECOMMENDED.
9599
// List known limitations, version-specific behavior, or edge cases the reader should know.
100+
* <Known limitation or constraint.>
101+
96102
// Use admonitions for critical constraints:
97103
//
98104
// [IMPORTANT]
@@ -110,12 +116,9 @@ Description of what it does.
110116
// Enabling this setting affects all users in the org. Confirm with your administrator before proceeding.
111117
// ====
112118
113-
* <Known limitation or constraint.>
114-
115-
== Related information
119+
== Additional resources
116120
117-
// REQUIRED.
118-
// Link to related concept, procedure, and reference pages.
119-
// "Related information" is the standard heading — do not use "Additional resources" or "See also".
121+
// REQUIRED. Include links to related concepts, procedures, and reference pages.
120122
121-
* xref:<module>/page.adoc[Link text]
123+
//* xref:page.adoc[Link text].
124+
//* link:<URL>[Link text, window=_blank]

modules/_templates/faqs.adoc

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
= <Title: Noun phrase, for example, "Frequently Asked Questions: Authentication">
22
:toc: true
33
:toclevels: 1
4-
:page-pageid:
4+
5+
6+
:page-title: <Title text for the page>
7+
:page-description: <One sentence: what this page covers and why it matters to the reader.>
8+
:page-pageid: <Required attribute for ThoughtSpot Embedded and developer documentation. The page ID must be unique. For example, "embed-faqs">
9+
:keywords: <comma-separated terms for search indexing, for example, "authentication, SSO, SAML, login">
510
:page-type: faq
6-
:page-role:
11+
:page-role: <Optional>
712
:product-version: <version>
8-
:jira-ref: <DOC-XXXX>
9-
// author:
10-
// last-reviewed:
13+
:jira-ref: <SCAL-XXXXXX>
14+
// last-reviewed: <Optional>
1115

1216
// 1-2 sentences: what topic area these FAQs cover and who they are for.
1317
// Note: write each question as users would ask it — this improves
1418
// both findability and GEO citation rates.
1519

16-
== General
20+
== <Information category. For example, Embed authentication>
1721

1822
=== <Question written as a user would ask it, for example, "What authentication methods are supported?">
1923

2024
// Answer directly in the first sentence. Provide detail after.
2125
// If the answer requires steps, use a numbered list.
2226
// If the answer links to a full page, link to it and summarize here.
2327

24-
// TODO: verify answer with engineering
25-
26-
---
27-
2828
=== <Question>
2929

3030
// Answer.
@@ -35,8 +35,6 @@
3535

3636
// Answer.
3737

38-
---
39-
4038
=== <Question>
4139

4240
// Answer.
@@ -47,8 +45,6 @@
4745

4846
// Answer.
4947

50-
---
51-
5248
=== <Question>
5349

5450
// Answer.
@@ -61,4 +57,7 @@
6157

6258
== Related information
6359

64-
* xref:<component>:<module>/page.adoc[Link text]
60+
// Optional. Include links to related concepts, procedures, and reference pages.
61+
62+
//* xref:page.adoc[Link text].
63+
//* link:<URL>[Link text, window=_blank]

modules/_templates/procedure.adoc

Lines changed: 24 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
= <Title: Verb + Object, for example, "Configure Single Sign-On">
22
:toc: true
33
:toclevels: 1
4+
// Adjust toclevels if you have many sections, but 1-2 levels is usually sufficient for reference pages.
45

5-
:page-title: <Title — must match the = Title above>
6+
:page-title: <Title text for the page>
67
:page-description: <One sentence: what this procedure does and who it is for.>
7-
:page-pageid: <Add a unique ID for this page, for example, "embed-sdk-concepts". Required for developer documentation.>
8+
:page-pageid: <Required attribute for ThoughtSpot Embedded and developer documentation. Add a unique ID for this page, for example, "embed-sdk-concepts".>
89
:page-type: procedure
910
:keywords: <comma-separated terms for search indexing, for example, "configure, SSO, SAML, setup">
1011
:page-role:
1112
:product-version: <version>
12-
:jira-ref: <DOC-XXXX>
13-
// author:
13+
:jira-ref: <SCAL-XXXXXX>
1414
// last-reviewed:
1515

1616
////
@@ -44,28 +44,28 @@ Style elements you can use:
4444
Inline badge : [beta betaBackground]^Beta^
4545
Version badge: [.version-badge.new]#New# [.version-badge.deprecated]#Deprecated#
4646
[.version-badge.breaking]#Breaking#
47+
48+
==============
4749
////
4850
4951
== Overview
5052
5153
// REQUIRED: 1-2 sentences — what this procedure accomplishes and who it is for.
52-
// Mention the product area and the role of the reader (developer, administrator, etc.).
53-
// TODO: verify scope with engineering
54-
//
55-
// OPTIONAL: Add a workflow diagram or screenshot of the starting UI state if it helps
56-
// the reader orient themselves before starting:
57-
// image::./images/<workflow-diagram>.png[Workflow overview diagram]
54+
// Mention the product area and the intended audience (developer, administrator, etc.).
55+
56+
// OPTIONAL: Add a workflow diagram or screenshot of the starting state if required.
57+
5858
5959
== Before you begin
6060
6161
// REQUIRED if there are prerequisites. Use "You must" or "You need" for each item.
6262
// Remove this section only if there are genuinely no prerequisites.
6363
64-
* You must have <role or permission, for example, "Developer or Administrator privilege">.
64+
* You must have <role or group privilege> to <perform the intended action>.
6565
* You need access to <system or resource, for example, "a ThoughtSpot Cloud instance with the Embed feature enabled">.
66-
* <Any additional prerequisite.>
66+
* <Any additional prerequisite>.
6767
68-
== Procedure
68+
== <Procedure. Use gerund or action verbs. For example, Configuring variables>
6969
7070
// REQUIRED. Use numbered steps. Each step must describe exactly one action.
7171
// Include the exact command, UI label, menu path, or code for each step.
@@ -75,33 +75,15 @@ Style elements you can use:
7575
+
7676
// OPTIONAL: Screenshot showing the UI state after this step:
7777
// image::./images/<step1-screenshot>.png[Description of what to see after step 1]
78+
// For SDK procedures, a code sample is REQUIRED. Use the following format for code samples:
7879
79-
. Step two. For SDK procedures, provide a complete, runnable code sample — REQUIRED.
80-
+
8180
[source,JavaScript]
8281
----
83-
import { LiveboardEmbed, AuthType, init } from '@thoughtspot/visual-embed-sdk';
84-
85-
init({
86-
thoughtSpotHost: 'https://<your-instance>.thoughtspot.cloud',
87-
authType: AuthType.TrustedAuthToken,
88-
username: '<username>',
89-
getAuthToken: () => getTokenFromYourServer(),
90-
});
91-
92-
const embed = new LiveboardEmbed('#embed-container', {
93-
liveboardId: '<liveboard-GUID>',
94-
});
95-
embed.render();
82+
<code sample>
9683
----
97-
+
98-
[NOTE]
99-
====
100-
Replace `<your-instance>` with your ThoughtSpot Cloud hostname and `<liveboard-GUID>` with the ID of the Liveboard you want to embed.
101-
====
10284
103-
. Step three. For REST API procedures, provide a cURL request — REQUIRED.
104-
+
85+
// For REST API procedures, document the required parameters and provide request and response example.
86+
10587
[source,cURL]
10688
----
10789
curl -X POST \
@@ -112,7 +94,7 @@ curl -X POST \
11294
"param": "value"
11395
}'
11496
----
115-
+
97+
11698
// OPTIONAL: Show the expected JSON response inline:
11799
// [source,JSON]
118100
// ----
@@ -130,22 +112,18 @@ curl -X POST \
130112
== Result
131113
132114
// REQUIRED. Describe what the user should see or be able to do after completing the procedure.
133-
// Be specific — name the UI element, API response, or behavior that confirms success.
134-
//
115+
// Be specific. Specify the name the UI element, API response, or behavior that confirms success.
135116
// OPTIONAL: Screenshot of the expected result:
136-
// image::./images/<result-screenshot>.png[Expected result after completing the procedure]
137117
138118
== Next steps
139119
140120
// OPTIONAL. Link to the next logical task or a related procedure.
121+
// * xref:next-procedure.adoc[Next task name]
141122
142-
* xref:<module>/next-procedure.adoc[Next task name]
143123
144-
== Related information
124+
== Additional resources
145125
146-
// REQUIRED.
147-
// Link to related concept and reference pages.
148-
// "Related information" is the standard heading — do not use "Additional resources" or "See also".
126+
// REQUIRED. Include links to related concepts, procedures, and reference pages.
149127
150-
* xref:<module>/concept-page.adoc[Related concept]
151-
* xref:<module>/reference-page.adoc[API reference]
128+
//* xref:page.adoc[Link text].
129+
//* link:<URL>[Link text, window=_blank]

0 commit comments

Comments
 (0)