750 Commits

Author SHA1 Message Date
Riskey
40ddb5b213 Update the manage knowledge via api doc (#716)
* draft

* add zh and ja translations
2026-03-23 17:11:53 +08:00
Riskey
21122c4282 Batch update apis (#715)
* Batch update service apis

* final check and add zh/ja docs

* add temporary redirects for changed api links embedded in the product

* Restore original operationIds to preserve SDK compatibility

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* complete the missing descriptions

* correct the human input terminology

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 16:38:10 +08:00
Ameame
1404128eaf change 127.0.0.1 to localhost in access URLs (#707) 2026-03-19 22:57:07 +08:00
rwk-git
4b14063a79 fix: typo in local-source-code.mdx (#710)
Signed-off-by: Rick Wertenbroek <rick.wertenbroek@gmail.com>
2026-03-19 21:13:49 +08:00
Riskey
caab54d1dd Fix the language switching issue (#709)
* fix: remove href from language blocks to preserve page on language switch

Mintlify's language switcher navigates to the explicit href when set,
instead of doing smart path prefix replacement. Removing href lets the
switcher stay on the current page when switching languages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Revert "fix: remove href from language blocks to preserve page on language switch"

This reverts commit b74b1b8291.

* fix: restructure navigation from versions>languages to languages>versions

Mintlify's language switcher only preserves the current page when
languages are the top-level navigation partition. Previously, versions
were the top level with languages nested inside, causing the switcher
to redirect to the introduction page instead of the same page in the
target language.

Also removes explicit href from language blocks and fixes ja having
default=true incorrectly in the 3.2.x version config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: align zh/ja API spec operationIds with en for language switching

Mintlify generates page URL slugs from operationId. When operationIds
differ between languages (e.g., en: sendChatMessage vs zh:
sendBasicChatMessageCn), the language switcher can't find the
equivalent page and falls back to the introduction page.

This aligns all zh/ja operationIds to match en for endpoints that
share the same HTTP method and path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: align OpenAPI tags across languages for consistent URL slugs

Mintlify uses OpenAPI tags to generate URL category paths (e.g., tag
"Chat" → /chat/). When zh uses "对话消息" and ja uses "チャットメッセージ",
the generated URLs differ from en's, breaking language switching.

This aligns all zh/ja OpenAPI spec tags to match en, ensuring
identical URL structures across languages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add x-displayName to preserve translated tag names in sidebar

Tags use English names for URL slug generation (consistent across
languages) but x-displayName holds the translated names for display
in the sidebar, so Chinese/Japanese users still see localized labels.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: use x-mint href to align API reference URLs across languages

Mintlify generates API page URLs from the tag name + summary, both of
which are translated in zh/ja specs. This produces different URL slugs
(e.g., en: /chat/send-chat-message vs zh: /对话消息/发送对话消息),
making language switching impossible.

Instead of changing the visible content (tags, summaries), this adds
x-mint: { href: ... } to each endpoint in zh/ja specs, explicitly
setting the URL path to match en. All translated content (tags,
summaries, descriptions) is preserved as-is for readers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add language prefix to x-mint href to prevent cross-language conflicts

Without the language prefix, zh/ja endpoints claimed the same absolute
URL as en (e.g., /api-reference/chat/send-chat-message), causing ja
content to appear on en pages. Now each language has its own prefixed
href (e.g., /zh/api-reference/chat/send-chat-message), keeping content
correctly scoped while enabling language switching.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* revert: remove all API spec changes (x-mint href, operationId, tag alignment)

These changes are breaking and need careful coordination with the dev
team before implementation. Only the navigation restructure
(versions>languages → languages>versions) is kept for this PR.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* remove all enterprise versions

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 18:37:45 +08:00
Stephen Zhou
5df20ab29d fix: correct code langs (#708) 2026-03-16 15:28:32 +08:00
Stephen Zhou
a958852d8d fix: avoid non-existent variables (#703) 2026-03-11 20:12:06 +08:00
Jun Moriuchi
1a0be06843 fix(ja): fix broken link in manage-knowledge-base.mdx (#706)
* fix(ja): fix broken link in manage-knowledge-base.mdx

* correct the zh doc link as well

---------

Co-authored-by: RiskeyL <7a8y@163.com>
2026-03-11 19:53:10 +08:00
Riskey
df19776bb0 Add workflow 101 tutorial (#705)
* add the zh and en workflow 101 tutorials

* refine the formats for readability

* refine formatting and minor issues

* Update Workflow 101 lessons and images

* Update image display in Workflow 101 lesson 01

* Rename Dify workflow image

* Update Workflow 101 Lesson 3 with new images and prompt example

* Update Workflow 101 Lesson 03 images

* Update Dify workflow lesson 4 prompt image

* Update Workflow 101 Lesson 5 with new images and content

* Update Workflow 101 Lesson 6 content and images

* Update Workflow 101 Lesson 08 and add new images

* Refine email reply instruction in Workflow 101 lesson 8

* Update Workflow 101 Lesson 9 with new steps and images

* Update Workflow 101 Lesson 09 content and images

* Fix whitespace in Workflow 101 Lesson 9

* Add image alt text to workflow example in zh lesson 01

* Update LLM node images and text formatting in Workflow 101 Lesson 03

* Update zh/use-dify/tutorials/workflow-101/lesson-05.mdx content

* Update zh/workflow-101/lesson-03.mdx for clarity

* Remove unnecessary italics in Workflow 101 lesson 4

* Update Workflow 101 Lesson 5 for clarity and image display

* Update images in Workflow 101 Lesson 06

* Update Lesson 7 workflow tutorial with new images and text fixes

* Update zh/use-dify/tutorials/workflow-101/lesson-06.mdx content

* Update prompt instructions in Workflow 101 Lesson 06

* Clarify condition in Workflow 101 Lesson 07

* Fix formatting in Workflow 101 lesson 8

* Update Workflow 101 Lesson 9 for email formatting optimization

* Fix typo in Workflow 101 Lesson 9

* Remove Jinja2 example from workflow lesson

* Update image syntax in Workflow 101 Lesson 02

* Update image tag in Workflow 101 Lesson 3

* Remove italics from workflow 101 lessons

* Fix typo in zh/use-dify/tutorials/workflow-101/lesson-05.mdx

* Refine parameter types explanation in Workflow 101 lesson 6

* Refine Chinese text in Workflow 101 lesson 06

* Update Lesson 7: Enhance Workflows content

* Fix formatting in Workflow 101 Lesson 7

* Refine Chinese text in Workflow 101 lesson 8

* Refine instructions for Workflow 101 Lesson 08 test run

* Clarify the purpose of template conversion in Workflow 101 lesson 9

* Update Workflow 101 Lesson 10 image syntax

* Polish workflow 101 tutorials (en/zh) and add ja translation

* Update Workflow 101 lesson 1 content

* Fix formatting and update workflow creation instructions in Lesson 02

* Clarify multi-modal model description in Workflow 101 lesson 3

* Remove italics from workflow tutorial lessons

* Update Workflow 101 Lesson 6 prompt example

* Update formatting in Workflow 101 lesson 8

* Update Workflow 101 lesson 1 content

* Update zh/use-dify/tutorials/workflow-101/lesson-02.mdx content

* Refine Chinese text in Workflow 101 Lesson 3

* Refine RAG explanation in Workflow 101 Lesson 04

* Update zh/use-dify/tutorials/workflow-101/lesson-05.mdx content

* Update formatting in Workflow 101 Lesson 08

* final checks

* format and terminology fixes

---------

Co-authored-by: Anne <annezj92@gmail.com>
2026-03-11 15:42:44 +08:00
Riskey
41be33b22f Update publish-to-marketplace doc: add creator center submission details and sync zh/ja translations (#704) 2026-03-10 15:12:41 +08:00
Riskey
1f42a541b6 Update 30 min tutorial (#701)
* update based on user feedback

* update zh and ja docs

* modify based on feedback

* correct typos

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-09 17:49:41 +08:00
Riskey
ca8ad0dae4 add the publish to marketplace doc (#700) 2026-03-09 13:31:12 +08:00
lexmin0412
ed97c4837e docs(self-host): supplement missing workflow_based_app_execution queue for Worker service in local startup docs (#694)
* docs(self-host): supplement missing `workflow_based_app_execution` queue for Worker service in local startup docs

Update Chinese, English and Japanese versions of self-hosted documentation by adding the missing `workflow_based_app_execution` queue to the Celery worker startup command.

* add missing `dataset_summary` and `retention` queues to worker startup command

* add missing `dataset_summary` and `retention` queues to worker startup command

* add missing `dataset_summary` and `retention` queues to worker startup command

---------

Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com>
2026-03-06 22:22:57 +08:00
Riskey
f84d7ab662 Add text-autospace CSS for CJK/Latin spacing (#697)
* Add text-autospace CSS for CJK/Latin spacing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* correct the css file name and remove it from docs.json

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 12:31:36 +08:00
github-actions[bot]
6912690f45 🌐 Sync PR #695 translations: rewrite aws premium upgrade guide and fix minor issues (#696)
* 🌐 Initial translations for PR #695

Auto-generated translations for documentation changes in PR #695.

Last-Processed-Commit: 04b557387312d022e382a3d9177e267bf268ca86
Original-PR: #695
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

* Update section headers and access instructions

* Update section title

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com>
2026-03-05 13:44:42 +08:00
Riskey
212ca6b18f rewrite aws premium upgrade guide and fix minor issues (#695) 2026-03-05 13:44:20 +08:00
Riskey
a1985649f3 differentiate operationId for end-user api across app types (#692) 2026-03-01 22:08:36 +08:00
盐粒 Yanli
b7f1aab7b4 docs(api): add end-user lookup (#684)
* docs(api): add end-user lookup

* update zh and ja docs

---------

Co-authored-by: RiskeyL <7a8y@163.com>
2026-03-01 19:53:17 +08:00
TheButlerM
c2909cd5ee fix: typo in Key Concepts page (conversatio → conversation) (#689)
Fixes #687 - Missing 'n' in the word 'conversation' in the Conversation Variables section.

Co-authored-by: DebuggingMax <DebuggingMax@users.noreply.github.com>
2026-03-01 16:58:08 +08:00
Riskey
74428d2604 Add content related to the human input node (#667)
* draft

* revise based on hands-on testing

* modify based on feedback

* add zh and ja translation

* Update tip for referencing text output variable

Clarify the default behavior of the reasoning model output.

* Add translation note

Added a note about AI translation accuracy and referenced the English version for discrepancies.

* Update human-input.mdx with translation note

Add a note about AI translation accuracy and reference to the English version.

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update wording for clarity on model output display

---------

Co-authored-by: Riskey <riskey47@dify.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
v1.13.0
2026-02-11 17:28:19 +08:00
NekoMirra
d3d696bd82 Update developing-with-apis.mdx (#681)
Fix typos
2026-02-11 12:08:48 +08:00
Riskey
65ba7d0db2 add redirect for the incorrect en dataset api docs (#680) 2026-02-04 15:05:57 +08:00
github-actions[bot]
e1ebcfa206 🌐 Sync PR #665 translations: Add content related to summary index (#666)
* 🌐 Initial translations for PR #665

Auto-generated translations for documentation changes in PR #665.

Last-Processed-Commit: fe61cffd6d
Original-PR: #665
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

* 🔄 Update translations for commit fe61cffd

Auto-generated translations for changes in commit fe61cffd6d.

Last-Processed-Commit: fe61cffd6d
Original-PR: #665
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

* 🔄 Update translations for commit d37bc6b5

Auto-generated translations for changes in commit d37bc6b5589e629eac03feb0b7278cba6e75bb0f.

Last-Processed-Commit: d37bc6b5589e629eac03feb0b7278cba6e75bb0f
Original-PR: #665
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

* fix the zh link

* fix ja links

* align with en doc

* align with en doc

Remove unnecessary URLs and email addresses for better text cleaning.

* Fix formatting for URL and email removal section

* Fix formatting for URL and email removal section

* align the doc title

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com>
Co-authored-by: RiskeyL <7a8y@163.com>
v1.12.0 v1.12.1
2026-02-03 22:04:28 +08:00
FFXN
df83a9a07c feat: summary index for knowledge. (#670)
* feat: summary index for knowledge.

* feat: summary index for knowledge.

* align terminology

* add zh and ja translation

---------

Co-authored-by: Riskey <riskey47@dify.ai>
2026-02-03 22:02:28 +08:00
Riskey
567e7e0068 Add content related to summary index (#678)
* draft: add content related to summary index

* refine the chunking configurations page

* Revise based on hands-on testing

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix formatting for URL and email removal section

---------

Co-authored-by: Riskey <riskey47@dify.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-03 21:39:42 +08:00
Riskey
79f9ea9b03 Update TiDB-related content (#672)
Co-authored-by: Riskey <riskey47@dify.ai>
2026-01-27 14:44:33 +08:00
Zhedong Cen
96b1aeea62 Update environment variable docs for OceanBase and seekdb (#669)
* Update environment variable docs for OceanBase and SeekDB

Expanded supported DB_TYPE values to include 'oceanbase' and 'seekdb' in `environments.mdx`. Clarified that OceanBase vector database settings also apply to seekdb, and replaced placeholder/English-only Japanese and Chinese docs with full, auto-translated content including all environment variable explanations.

* Remove ja and zh docs

---------

Co-authored-by: Riskey <riskey47@dify.ai>
2026-01-26 15:14:20 +08:00
Riskey
ff1f41e5e3 restore the api-extension-related docs (#663)
Co-authored-by: Riskey <riskey47@dify.ai>
2026-01-21 15:12:52 +08:00
Riskey
1a808c3456 Add JSON code content to the user input node page (#662)
Co-authored-by: Riskey <riskey47@dify.ai>
v1.11.3 v1.11.4
2026-01-14 14:12:49 +08:00
Riskey
9c78ce127d Fix/update introduction links (#661)
* fix the broken link for the en user input node

* replace the legacy link prefix for ja and zh introduction

* remove the redundant zh pages

---------

Co-authored-by: Riskey <riskey47@dify.ai>
2026-01-09 21:37:52 +08:00
github-actions[bot]
92cd93ba68 🌐 Initial translations for PR #659 (#660)
Auto-generated translations for documentation changes in PR #659.

Last-Processed-Commit: c4cf03ba17
Original-PR: #659
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-08 15:58:26 +08:00
Riskey
dfe510bafb update the schedule trigger limit per workflow (#659)
Co-authored-by: Riskey <riskey47@dify.ai>
2026-01-08 15:53:15 +08:00
Jyong
fecc1138d5 fix(api): fix en/api-reference/openapi_knowledge.json (#657)
* fix(api): change reranking_mode to reranking_model in openapi_knowledge.json

* add reranking mode field

* update reranking mode description;  standardize rerank model terminology

---------

Co-authored-by: Zhiqiang Yang <58433399+yangzq50@users.noreply.github.com>
Co-authored-by: Riskey <riskey47@dify.ai>
2026-01-08 14:09:50 +08:00
Abudu
202eae8baf fix(translation): Include command for removing orphaned files for Chinese (#656)
* fix(translation): Include command for removing orphaned files for Chinese

Add command to remove orphaned files from OpenDAL storage for Chinese.

* Fix malformed code fence syntax

* adjust indent

---------

Co-authored-by: Riskey <riskey47@dify.ai>
2026-01-04 13:09:12 +08:00
github-actions[bot]
6ecbc4153f 🌐 Initial translations for PR #654 (#655)
Auto-generated translations for documentation changes in PR #654.

Last-Processed-Commit: 63f964a0074f467f781dfb80ac00dba830626a68
Original-PR: #654
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-04 12:46:58 +08:00
Riskey
bac200d031 Refine images and indents; fix the wrong title of variable inspector page (#654)
* correct the variable inspect page title

* refine images and indents

---------

Co-authored-by: Riskey <riskey47@dify.ai>
2026-01-04 12:46:01 +08:00
Riskey
b9497760cb Update ee docs (#653)
* create 3.4.x navigation

* add content related to multi-credential management and load balancing for 3-5-x

* add content related to knowledge pipeline for 3-6-x

* add content related to trigger, multimodal embedding, and json object for 3-7-x

* changes upon review

* remove unnecessary links

---------

Co-authored-by: Riskey <riskey47@dify.ai>
2025-12-31 18:20:53 +08:00
Riskey
2da8eb41f0 Temporarily remove the json code field from user input page (#651)
Co-authored-by: Riskey <riskey47@dify.ai>
2025-12-30 15:46:22 +08:00
github-actions[bot]
465749876c 🌐 Sync PR #645 translations: Add more notes about the extracted image url (#646)
* 🌐 Initial translations for PR #645

Auto-generated translations for documentation changes in PR #645.

Last-Processed-Commit: a82cdffc83
Original-PR: #645
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

* Update readme.mdx

* Update pricing link in readme for clarity

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com>
2025-12-26 12:32:12 +08:00
Riskey
2a734172c4 Add more notes about the extracted image url (#645)
Co-authored-by: Riskey <riskey47@dify.ai>
2025-12-26 12:31:31 +08:00
github-actions[bot]
47b663d99e 🌐 Initial translations for PR #642 (#643)
Auto-generated translations for documentation changes in PR #642.

Last-Processed-Commit: 99de3f4787
Original-PR: #642
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v1.11.2
2025-12-25 16:43:21 +08:00
Riskey
b47f31aa6b Update content related to editing subscriptions (#642)
Co-authored-by: Riskey <riskey47@dify.ai>
2025-12-25 16:43:00 +08:00
github-actions[bot]
b20bdf10a4 🌐 Sync PR #640 translations: Update content for boolean, boolean array, and object data type support; refine user input page (#641)
* 🌐 Initial translations for PR #640

Auto-generated translations for documentation changes in PR #640.

Last-Processed-Commit: 230905536f
Original-PR: #640
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

* Update variable-assigner.mdx

* Update variable-assigner.mdx

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com>
2025-12-24 22:52:13 +08:00
Riskey
2da02258f4 Update content for boolean, boolean array, and object data type support; refine user input page (#640)
* Update content for boolean, boolean array, and object data type support; refine user input page

* correct format descriptions

---------

Co-authored-by: Riskey <riskey47@dify.ai>
2025-12-24 22:51:00 +08:00
github-actions[bot]
688fd5756f 🌐 Sync PR #636 translations: Optimize the knowledge retrieval page (#638)
* 🌐 Initial translations for PR #636

Auto-generated translations for documentation changes in PR #636.

Last-Processed-Commit: 3f204fbd9d
Original-PR: #636
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

* 🔄 Update translations for commit 623b346a

Auto-generated translations for changes in commit 623b346a77.

Last-Processed-Commit: 623b346a77
Original-PR: #636
Languages: Chinese (zh), Japanese (ja)

🤖 Generated with GitHub Actions

* Fix pricing link for batch upload information

Updated the link for the paid plan pricing page.

* Update maintain-knowledge-documents.mdx

* Update link text for knowledge base creation

* Update pricing link in readme for batch upload

* Update setting-indexing-methods.mdx

* Update knowledge-retrieval.mdx

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com>
2025-12-24 21:56:01 +08:00
Riskey
59a18c8968 Optimize the knowledge retrieval page (#636)
* Optimize the knowledge retrieval page

* Modify some wording

---------

Co-authored-by: Riskey <riskey47@dify.ai>
2025-12-24 21:54:58 +08:00
Chenhe Gu
61b37d88fc Fix stale PR translation revert issue (#630)
* Fix stale PR translation revert issue

When PR A is created before PR B but PR B merges first, the translation
workflow for PR A was reverting all of PR B's changes. This happened because
the translation workflow used PR A's working directory state (which is a
snapshot from before PR B existed) rather than applying only PR A's changes.

Root cause:
- setup_translation_branch() for new branches did:
  checkout -b branch → reset --soft origin/main → reset
  This kept PR's working directory which could be stale

- For incremental branches, merge_docs_json_for_incremental_update() took
  the English section from PR HEAD, which was also stale for old PRs

Fix:
- For NEW branches: Create branch directly from origin/main (not from PR's
  working directory). This ensures we start with the latest state including
  all changes from PRs merged after this PR was created.

- For EXISTING branches: Merge main's docs.json structure with our
  translations (instead of taking EN section from stale PR)

- For BOTH: Selectively checkout only the files that the PR actually changed
  from PR's head, rather than bringing in the entire working directory.
  This prevents overwriting files from other PRs.

Example issue (PR #593):
- PR #593 only added one file
- Translation PR #611 tried to delete 11 files and revert massive docs.json changes
- This was because it used PR #593's stale state from before other PRs merged

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix: Use PR's docs.json for finding file positions in navigation

The initial fix had a side effect: since we start from main's docs.json,
and PR's new files aren't in main's English section yet, sync_docs_json_incremental()
couldn't find where to place new files in the translation navigation.

Fix: Add `reference_sha` parameter to sync_docs_json_incremental() that loads
PR's docs.json for finding file positions, while still modifying main's
translation sections. This ensures:
1. Main's docs.json structure is preserved (no reverts)
2. New files are found in PR's docs.json
3. Translations are added at the correct positions

This also removes the unused _apply_pr_english_section_to_main() method.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix EN section not updated when using reference_sha

When the translation branch starts from main, the PR's docs.json
structural changes (new file entries in EN section) were not being
incorporated. This caused the translation PR to have mismatched
navigation entries.

The fix now also updates the EN section of the working directory's
docs.json when processing added files found in the reference
docs.json (from the PR).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Also remove deleted files from EN section in stale PR scenario

When processing deleted files, the sync now also removes them from the
EN section of docs.json. This is needed when the translation branch
starts from main, which may still have the deleted file entries.

Verified with comprehensive local testing covering 10 scenarios:
- Basic stale PR, multiple files, modifications, deletions
- Nested groups, new dropdowns, mixed operations
- Backward compatibility, incremental syncs, structure changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 22:46:11 -08:00
Chenhe Gu
61466c3f45 support configuring ignored files in auto sync (#629)
* Add ignore_files config to exclude specific files from translation

Adds ability to specify source language files that should not be translated:
- New `ignore_files` array in config.json
- Validation ensures paths start with source dir, have valid extension, no traversal
- Filtering applied in PRAnalyzer.categorize_files() and SyncPlanGenerator.generate_sync_plan()

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* update config

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 15:45:28 -08:00
Gu
4f36faa03b Remove test mode from approval retrigger workflow
- Remove workflow_dispatch trigger (was for testing)
- Remove manual trigger handling code
- Uncomment fork/author/reviewer checks
- Workflow now only triggers on actual PR approvals

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 14:46:22 -08:00
Chenhe Gu
224923311b Add workflow to retrigger translation on PR approval (#625)
Closes the gap where first-time contributor PRs require maintainer
approval, but approval events don't trigger the translation workflow.

New workflow: sync_docs_on_approval.yml
- Listens to pull_request_review (submitted, approved)
- Re-runs the most recent Analyze workflow for the PR
- This triggers the existing Execute chain with fresh artifacts
- Posts "approval received" comment before starting

Note: Fork/author/reviewer checks are commented out for testing.
Search for "TODO: UNCOMMENT" to restore after testing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 16:25:37 -08:00