Skip to content

Commit 7553506

Browse files
authored
Merge branch 'main' into tete
2 parents 30a51d5 + 26c6298 commit 7553506

File tree

80 files changed

+15150
-602
lines changed

Some content is hidden

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

80 files changed

+15150
-602
lines changed

.github/drafts/16296/16296_self-hosting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Self-hosting
22
Self-hosting Appsmith means hosting and managing Appsmith directly on your server rather than relying on third-party service providers. Self-hosting is often seen as more secure and private, as you have complete control over your data and how it's used.
33

4-
Appsmith provides a [cloud-hosted version](https://app.appsmith.com)[cloud-hosted] and the option to set up your own instance on some popular [platforms](# Deploy).
4+
Appsmith provides a [cloud-hosted version](https://login.appsmith.com)[cloud-hosted] and the option to set up your own instance on some popular [platforms](# Deploy).
55

66
## Cloud-hosted
77
Cloud-hosted version is available over the internet, which makes it easy for users to sign up and start building apps. It's a perfect solution for users who don't have their own infrastructure setup. You can sign up on appsmith.com and follow the [Quick start guide](start-building) to get started.

.github/prompts/extract_prompt.txt

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1+
# Role
12
You are a technical parser.
23

3-
Objective:
4-
Given the provided JSON, extract all available Commands and their Properties clearly.
4+
# Objective
5+
Given the provided JSON structure, extract all available Commands and their Properties clearly.
56

6-
Output Format (Strict Plain Text)
7+
- Commands are defined inside objects where "controlType" is "DROP_DOWN" under the "editor" array.
8+
- For each "option" inside the "options" array:
9+
- The "label" is the Command Name.
10+
- The "value" is the Command Identifier.
11+
12+
- Each Command has a corresponding "SECTION_V2" block elsewhere in the "editor" array.
13+
- Match the "identifier" field of the SECTION_V2 with the "value" field of the command.
14+
- Inside that Section, find all properties:
15+
- "label" → Property Name
16+
- "tooltipText" → Tooltip/Description
17+
- "placeholderText" → Example Value
18+
19+
# Output Format (Strict Plain Text)
720

821
Total Commands: X
922

@@ -13,9 +26,15 @@ Identifier: <Command Identifier>
1326
Properties:
1427
- <Property Name>: <Tooltip Text> (Example: <Placeholder Text>)
1528

16-
Important:
29+
(Repeat for each command.)
30+
31+
# Important Rules
32+
33+
- If tooltipText is missing → Write "No description available."
34+
- If placeholderText is missing → Write "No placeholder provided."
35+
- Only include commands and properties that can be matched.
1736
- No Markdown formatting.
18-
- No headings (#, ##, etc.).
19-
- No <dd> tags.
37+
- No JSON formatting.
2038
- No backticks.
21-
- Just clean, readable text.
39+
- No HTML tags.
40+
- Just clean, readable plain text.
Lines changed: 17 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,31 @@
1-
name: Process Sample Files and Generate Docs
1+
name: Generate Markdown File and Upload
22

33
on:
4-
push:
5-
paths:
6-
- 'website/docs/sample-workflow-tests/**'
4+
schedule:
5+
- cron: '0 0 * * 0' # Runs every Sunday at midnight UTC
6+
workflow_dispatch:
77

88
jobs:
9-
process_sample_file:
9+
merge-and-upload-markdown:
1010
runs-on: ubuntu-latest
1111

1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v3
1515

16-
- name: Detect changed files
17-
id: detect_files
16+
- name: Merge markdown files
1817
run: |
19-
git fetch origin main
20-
CHANGED_FILE=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} -- 'website/docs/sample-workflow-tests/' | head -n 1 || true)
21-
if [ -z "$CHANGED_FILE" ]; then
22-
echo "No relevant file found. Exiting."
23-
exit 0
24-
fi
25-
echo "Changed file detected: $CHANGED_FILE"
26-
echo "file_path=$CHANGED_FILE" >> $GITHUB_ENV
18+
find website/docs \( -name '*.md' -o -name '*.mdx' \) -exec cat {} + > appsmith-docs.md
2719
28-
- name: Read file content
29-
id: read_file
20+
- name: Check file size
3021
run: |
31-
echo "Reading changed file content..."
32-
FILE_CONTENT=$(cat ${{ env.file_path }} | jq -Rs .)
33-
echo "file_content=$FILE_CONTENT" >> $GITHUB_ENV
22+
filesize=$(stat -c%s "appsmith-docs.md")
23+
echo "File size: $filesize bytes"
3424
35-
- name: Extract Commands and Properties (OpenAI Part 1)
36-
id: extract_details
25+
- name: Upload merged markdown to API
3726
run: |
38-
echo "Extracting commands and properties..."
39-
SYSTEM_PROMPT=$(cat .github/prompts/extract_prompt.txt | jq -Rs .)
40-
41-
curl -s https://api.openai.com/v1/chat/completions \
42-
-H "Authorization: Bearer ${{ secrets.OPENAI_API_KEY }}" \
43-
-H "Content-Type: application/json" \
44-
-d @- <<EOF | jq -r '.choices[0].message.content' > extracted_info.md
45-
{
46-
"model": "gpt-4o",
47-
"messages": [
48-
{ "role": "system", "content": $SYSTEM_PROMPT },
49-
{ "role": "user", "content": ${{ env.file_content }} }
50-
],
51-
"temperature": 0
52-
}
53-
EOF
54-
55-
- name: Generate Markdown Documentation (OpenAI Part 2)
56-
id: generate_doc
57-
run: |
58-
echo "Generating final Markdown documentation..."
59-
SYSTEM_PROMPT=$(cat .github/prompts/generate_prompt.txt | jq -Rs .)
60-
EXTRACTED_CONTENT=$(cat extracted_info.md | jq -Rs .)
61-
62-
curl -s https://api.openai.com/v1/chat/completions \
63-
-H "Authorization: Bearer ${{ secrets.OPENAI_API_KEY }}" \
64-
-H "Content-Type: application/json" \
65-
-d @- <<EOF | jq -r '.choices[0].message.content' > generated_doc.md
66-
{
67-
"model": "gpt-4o",
68-
"messages": [
69-
{ "role": "system", "content": $SYSTEM_PROMPT },
70-
{ "role": "user", "content": $EXTRACTED_CONTENT }
71-
],
72-
"temperature": 0.3
73-
}
74-
EOF
75-
76-
- name: Upload documentation artifacts
77-
uses: actions/upload-artifact@v4
78-
with:
79-
name: documentation-files
80-
path: |
81-
extracted_info.md
82-
generated_doc.md
27+
response=$(curl -X POST \
28+
-H "Content-Type: text/markdown" \
29+
--data-binary "@appsmith-docs.md" \
30+
https://hook.eu1.make.com/78ylobuaxpwb4w8k3lbfgmdlwow9d8m5)
31+
echo "Response: $response"

0 commit comments

Comments
 (0)