Skip to content

Commit edc13b7

Browse files
authored
Merge pull request #6 from datastax/develop
Merge dev into main
2 parents edba9cb + 409e02d commit edc13b7

File tree

195 files changed

+6229
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+6229
-1
lines changed

.DS_Store

6 KB
Binary file not shown.

README.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
= streaming-learning-docs
2+
3+
== Writing a guide
4+
5+
A guide is a document offering step by step instruction to reach some goal. Guides are technical in nature and tend to make assumptions about the consumer's environment. To help create guides that will work in most environments, please follow these ideas.
6+
7+
* *Keep links to a minimum* - when someone is learning a new concept for the first time and xref:README.adoc[every] other xref:README.adoc[word] is linked it xref:README.adoc[makes] things xref:README.adoc[confusing] and hard to get a good flow going. Instead, annotate a word or phrase and provide a "Resources" area at the bottom of the guide.
8+
* *Separate products and runtimes in tabs* - it is common to reach the same result through multiple ways. An example is creating a tenant/namespace/topic in Astra Streaming and Luna Streaming. Both have the same result but get there in very different ways. Offer each as a tab and let the consumer choose their path. The step after the tabbed step can assume the consumer has complete the previious step and is in a known state. Runtimes follow the same pattern. Weather one is using Java or C#, they are still creating a Pulsar client to interact with the cluster. Create a single step in the guide with multiple tabs for each runtime.
9+
* *Be thoughtful about the names you use* - if you are leaning a new concept or feature with no background on the product, words matter. Labeling a tab as "Luna Helm" and then referring to it as "Pulsar Helm Chart" are two distinct things to that reader. The author of the document has such deep understanding that they consider those things the same - and technically they are at DataStax. But the read isn't from DataStax, so be mindful of their context.
10+
* *Talk in first person* - humans create the guides and humans consume the guides. Write as if you are paired with your consumer in doing what ever the guide does. Use "we", "us", "you".
11+
12+
=== Starter example
13+
14+
Create a new .adoc file in the appropriate module and use the `example-guide.adoc` file as a starting point to creating a new guide.

README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

antora.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: streaming-learning
2+
title: Streaming Learning
3+
version: ~
4+
start_page: index.adoc
5+
6+
asciidoc:
7+
attributes:
8+
product_name: 'Astra Streaming'
9+
pulsar_version: '2.10' #DO NOT INCLUDE PATCH VERSION <MAJOR>.<MINOR>.<PATCH>
10+
debezium_version: '1.7'
11+
request_feature_access_email: '[email protected]'
12+
astra_ui: 'Astra Portal'
13+
14+
nav:
15+
- modules/pulsar-io/nav.adoc
16+
- modules/functions/nav.adoc

example-guide.adoc

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
= Use this new feature
2+
:navtitle: Create a feature
3+
:description: This guide will take you step-by-step through implementing this new feature
4+
:title: A guide to creating a new feature
5+
6+
Have you ever wanted to use this new feature? Well look no further than this guide to get started. We will be implementing it from scratch and you will find a set of links at the bottom to continue use of the feature.
7+
8+
== Pre-req's
9+
10+
You will need the following things in place to complete this guide:
11+
12+
* about 5 minutes
13+
* a working Pulsar topic (xref:README.adoc[get started here] if you don't have one)
14+
15+
== First group of tasks
16+
17+
This is the first group of tasks[<<resource-1>>] that need to be complete before moving on to the next group. Each group provides simple starting/stopping points for the consumer as well as a good summary of whats needed to create the new feature.
18+
19+
. Do this
20+
. Then this
21+
.. You'll need to do this during this step
22+
.. And also this
23+
. Then this after that
24+
25+
== Second group of tasks
26+
27+
This is the next group of tasks[<<resource-2>>]. You get the point of task groupings.
28+
29+
. This step can be done in different runtimes and uses tabs
30+
31+
[tabs]
32+
====
33+
C#::
34+
+
35+
--
36+
[source,csharp]
37+
----
38+
var a = new Something();
39+
Console.Write(a.thing);
40+
----
41+
--
42+
Java::
43+
+
44+
--
45+
[source,java]
46+
----
47+
class aa{
48+
public aa(){}
49+
public String doSomething(){
50+
return "a string";
51+
}
52+
}
53+
----
54+
--
55+
====
56+
57+
== Summary
58+
59+
In this guide we created a new feature and did the basics of interacting. Now it's time to extend the feature and become a ninja!
60+
61+
== Resources
62+
63+
[[resource-1,1]] xref:README.adoc[Some resource talked about in the guide]
64+
65+
[[resource-2,2]] xref:README.adoc[Another resource talked about in the guide]
66+
67+
== Next steps
68+
69+
Here are links to other guides you might be interested in:
70+
71+
* Something
72+
* Something else

modules/.DS_Store

6 KB
Binary file not shown.

modules/ROOT/.DS_Store

6 KB
Binary file not shown.

modules/ROOT/nav.adoc

Whitespace-only changes.

modules/ROOT/pages/index.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
= DataStax Streaming Learning
2+
3+
The learning site is a collection of guides and articles about DataStax streaming products. Each product has its own area dedicated to providing specifics to get started, its features, and other details. The learning site helps you get the most out of each product and get to production using best practices.

modules/functions/.DS_Store

10 KB
Binary file not shown.

0 commit comments

Comments
 (0)