Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sync.js some image #482

Merged
merged 1 commit into from
Jan 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion connectors/snowflake-sink/v3.0.8.2/snowflake-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ GRANT ROLE SNROLE TO USER ${account_name};

Then, switch the role to `SNROLE`, under `Data - Database - ST_TUTS - DEMO - Tables` you will find table `PERSISTENT___PUBLIC_DEFAULT_INPUT_SNOWFLAKE_1118738946` is created and records the messages produced above.

![Data Sample](images/data-sample.jpg)
![Data Sample](https://raw.githubusercontent.com/streamnative/pulsar-hub/refs/heads/master/images/connectors/sync/snowflake-data-sample.jpg)

## Configuration Properties

Expand Down
2 changes: 1 addition & 1 deletion connectors/snowflake-sink/v3.1.2.3/snowflake-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ GRANT ROLE SNROLE TO USER ${account_name};

Then, switch the role to `SNROLE`, under `Data - Database - ST_TUTS - DEMO - Tables` you will find table `PERSISTENT___PUBLIC_DEFAULT_INPUT_SNOWFLAKE_1118738946` is created and records the messages produced above.

![Data Sample](images/data-sample.jpg)
![Data Sample](https://raw.githubusercontent.com/streamnative/pulsar-hub/refs/heads/master/images/connectors/sync/snowflake-data-sample.jpg)

## Configuration Properties

Expand Down
2 changes: 1 addition & 1 deletion connectors/snowflake-sink/v3.2.3.3/snowflake-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ GRANT ROLE SNROLE TO USER ${account_name};

Then, switch the role to `SNROLE`, under `Data - Database - ST_TUTS - DEMO - Tables` you will find table `PERSISTENT___PUBLIC_DEFAULT_INPUT_SNOWFLAKE_1118738946` is created and records the messages produced above.

![Data Sample](images/data-sample.jpg)
![Data Sample](https://raw.githubusercontent.com/streamnative/pulsar-hub/refs/heads/master/images/connectors/sync/snowflake-data-sample.jpg)

## Configuration Properties

Expand Down
2 changes: 1 addition & 1 deletion connectors/snowflake-sink/v3.3.2.6/snowflake-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ GRANT ROLE SNROLE TO USER ${account_name};

Then, switch the role to `SNROLE`, under `Data - Database - ST_TUTS - DEMO - Tables` you will find table `PERSISTENT___PUBLIC_DEFAULT_INPUT_SNOWFLAKE_1118738946` is created and records the messages produced above.

![Data Sample](images/data-sample.jpg)
![Data Sample](https://raw.githubusercontent.com/streamnative/pulsar-hub/refs/heads/master/images/connectors/sync/snowflake-data-sample.jpg)

## Configuration Properties

Expand Down
2 changes: 1 addition & 1 deletion connectors/snowflake-sink/v4.0.1.1/snowflake-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ GRANT ROLE SNROLE TO USER ${account_name};

Then, switch the role to `SNROLE`, under `Data - Database - ST_TUTS - DEMO - Tables` you will find table `PERSISTENT___PUBLIC_DEFAULT_INPUT_SNOWFLAKE_1118738946` is created and records the messages produced above.

![Data Sample](images/data-sample.jpg)
![Data Sample](https://raw.githubusercontent.com/streamnative/pulsar-hub/refs/heads/master/images/connectors/sync/snowflake-data-sample.jpg)

## Configuration Properties

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The [Snowflake](https://www.snowflake.com/) streaming sink connector pulls data
Snowflake based on the SnowPipe Streaming feature. For more information about connectors,
see [Connector Overview](https://docs.streamnative.io/docs/connector-overview).

![Sink workflow](images/sink-workflow.png)
![Sink workflow](https://raw.githubusercontent.com/streamnative/pulsar-hub/refs/heads/master/images/connectors/sync/snowflake-streaming-sink-workflow.png)

- For a quick start on setting up and using the connector, refer to the [Quick Start](#quick-start) section. It provides
a step-by-step guide to get you up and running quickly.
Expand Down Expand Up @@ -374,7 +374,7 @@ There are two configuration parameters determining the ingestion latency of the

The diagram below illustrates the data sink flow for the Pulsar Snowflake Streaming connector:

![Sink workflow](images/sink-workflow.png)
![Sink workflow](https://raw.githubusercontent.com/streamnative/pulsar-hub/refs/heads/master/images/connectors/sync/snowflake-streaming-sink-workflow.png)

1. The connector subscribes to multiple user-specified topics and consumes messages from them.
2. It filters messages by topic-partition and forwards them to the corresponding TopicPartitionChannel. Each
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ async function syncDoc(tag, pathPrefix, fileName, organization, repository, proj
const imageDir = path.join("images", "connectors", "sync");

for (let line of md.content.split("\n")) {
const imagePattern = /!\[]\((.+?)\)/g; // Match any image path
const imagePattern = /!\[.*?\]\((.+?)\)/g; // Match any image with optional alt text
let match;
while ((match = imagePattern.exec(line)) !== null) {
const imagePath = match[1];
Expand All @@ -307,7 +307,7 @@ async function syncDoc(tag, pathPrefix, fileName, organization, repository, proj
}

const newImageLink = `https://raw.githubusercontent.com/streamnative/pulsar-hub/refs/heads/master/images/connectors/sync/${newImageName}`;
line = line.replace(match[0], `![](${newImageLink})`);
line = line.replace(imagePath, `${newImageLink}`);
}
content += line + "\n";
}
Expand Down
Loading