Commit Graph

788 Commits

Author SHA1 Message Date
RiskeyL af1be52cff docs: add Snippets feature guide 2026-06-08 10:41:00 +08:00
Riskey 651e7348b7 Docs/1.14.2 check (#781) (#782)
* docs: update reset-encrypt-key-pair warning to cover tool credentials

* docs: update GRAPH_ENGINE_MIN_WORKERS default to 3
v1.14.2
2026-05-19 13:56:45 +08:00
Riskey 8dc1c2f639 docs: flag workflow collaboration as self-hosted only (#778)
* docs: flag workflow collaboration as self-hosted only

* docs: scope workflow collaboration to workspace members

* fix: correct tag casing on workflow collaboration page
v1.14.1
2026-05-13 12:54:58 +08:00
Riskey dbd94cd64b docs: sync release/1.14.1 into main (#777)
* docs: add Hidden & Pre-Filled section to User Input page (#773)

* docs: add Hidden & Pre-Filled section to User Input page

* translate: add Hidden & Pre-Filled section in user-input (zh, ja)

* docs: add macro translation principles to zh formatting guide

* fix: correct Variables anchor in zh/ja translations

* docs: update docker compose environment docs (#774)

* docs: update docker compose environment docs

* chore: retrigger documentation analysis

* docs: refine env-split deployment docs and translate zh/ja

* docs: update aws premium env guidance

* docs: refine aws premium env guidance and translate zh/ja

---------

Co-authored-by: RiskeyL <7a8y@163.com>

* Docs/1.14.1 check (#775)

* docs: sync knowledge api spec for 1.14.1

* chore: tighten release-sync and api-reference skills

* docs: update education discount steps

* docs: relax over-applied zh translation rules

* docs: sync env vars for 1.14.1

* chore: env-vars verifier supports multi-file layout

* docs: cover editable class labels in question classifier; sync question classifier zh/ja docs

* chore: sync termbase_i18n with current glossary

* docs: update collaboration docs for websocket service split; sync zh/ja translation

* docs: human input updates for 1.14.1; sync zh/ja

* docs: add end user term to glossary

* chore: align ja api spec human input terminology with glossary

* fix: enforce at-least-one tag in unbinding request schema

* Revert "fix: enforce at-least-one tag in unbinding request schema"

This reverts commit b392b148.

Mintlify renders schema-level `anyOf` as unlabeled "Option 1" / "Option 2"
tabs in the request body section, which is more confusing than the
loose-schema-with-prose-rule it replaced. The SDK-generator benefit isn't
worth the rendered-docs regression for a deprecated compat path. Keep the
contract in the parameter descriptions only.

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

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs: add "Agent app" glossary entry to disambiguate from Agent node

---------

Co-authored-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 16:20:12 +08:00
Riskey 6d243944e9 fix: update README checkout example to release/1.14.x (#772) 2026-05-06 10:30:09 +08:00
Riskey 604bdb8466 style: drop trailing-whitespace and callout-blank-line format rules (#771) 2026-04-30 11:43:46 +08:00
Riskey 4ced86f614 docs: move cookie-domain guidance to troubleshooting faq (#770) 2026-04-30 11:17:11 +08:00
Riskey fa3e219618 docs: add previous-versions section and TOC to readme (#767) 2026-04-29 23:06:06 +08:00
Riskey 66523cf52b docs: 1.14 release follow-up fixes (#766)
* docs: 1.14 fixes for HITL events and Creator Center env vars (#764)

* docs: reorganize chatflow API tags and surface workflow_run_id

* refactor: update internal tooling for dify-graphon repo split

* fix: surface workflow_run_id in HITL stream events

* chore: tighten env-vars skill source-of-truth rule

* docs: document Creator Center env vars

* fix: use language-prefixed paths for non-api-reference links

* fix: drop redundant workflow_run_id from workflow HITL events

* fix: drop format uuid from chatflow HITL workflow_run_id

* docs: small fixes for self-host, workspace, and CJK disclaimers (#765)

* docs: shorten docker-compose section headings

* docs: update Team plan limit and remove Dataset Operator role

* fix: correct Japanese translation errors in workspace docs

* style: align AI translation disclaimers with CJK spacing rules

* style: add missing space between disclaimer link and particle in ja docs

* fix: point zh general-specifications disclaimer to en source

* fix: drop format uuid from chatflow workflow paused event
v1.14.0
2026-04-29 21:47:53 +08:00
Riskey dd89e17178 docs: 1.14 release documentation (#763)
* docs: sync App Toolkit with dify#35442 follow-up settings (#757)

* docs: sync App Toolkit page with follow-up settings PR and UI labels

* fix: correct CJK format linter false positives

* chore: broaden post-writing audit scope to whole documents

* docs: address Copilot review on PR #754

Restore the Tab titles rule in formatting-zh.md, which had been trimmed
to a stub. Drop the First-Mention Rule entry from the terminology-check
skill's Output Format so the report sections match the Checks to
Perform sections (the corresponding check was removed earlier).

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

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* docs: document workflow collaboration feature (#758)

* docs: add workflow collaboration user guide

* docs: tighten style and formatting guides

* docs: avoid "please" in zh refer-to phrases

* fix: add CJK-Latin spacing in translation notice templates

* docs: add env var coordination to dify-docs-guides skill

* docs: document collaboration environment variables

* style: trim collaboration env var descriptions for consistency

* docs: add zoom menu tip for hiding comments and cursors

* docs: sync collaboration UI labels after upstream localization

* docs: rewrite orchestration logic for cross-workflow node copy-paste (#759)

* docs: rewrite orchestration logic and extend workflow-chatflow overview

* translate: update zh and ja for orchestration logic and overview

* docs: refine orchestration logic node reuse section

* docs: clarify MAX_TREE_DEPTH env var description

* fix: align zh title and body references with the glossary UI label

* fix: align EN node reuse text with zh/ja translations (User Input exception)

Agent-Logs-Url: https://github.com/langgenius/dify-docs/sessions/00e54676-8a43-4b6f-99f8-fef2495b054f

Co-authored-by: RiskeyL <36894937+RiskeyL@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* docs: note HTTPS requirement for cross-workflow node paste (#761)

* docs: HITL Service API polish and 1.14 release follow-ups (#760)

* feat: add env var ignore-list consumed by the verifier

* docs: add 1.14 env vars and correct drifted defaults

* fix: correct knowledge pipeline datasource-plugins response in api references

* chore: record 1.14 env var traces in deep-dive

* docs: update HITL Service API documentation

* docs: clarify /api-reference/ link convention in formatting guide

* docs: update marketplace publish flow

* fix: drop duplicate workflow_run_id from HITL event data schemas

The three HITL event schemas (StreamEventHumanInputRequired,
StreamEventHumanInputFormFilled, StreamEventHumanInputFormTimeout)
declared `workflow_run_id` inside `data.properties`, but
`HumanInputRequiredResponse` in `api/core/app/entities/task_entities.py`
defines `workflow_run_id` only as a top-level field on the response
(alongside `event` and `task_id`); its inner `Data` class doesn't carry
one. The OpenAPI spec already provides top-level `workflow_run_id` via
the `$ref: StreamEventBase` in the `allOf` composition, so the inline
duplicate was a phantom field that doesn't exist in the actual payload.

Remove the inline `workflow_run_id` from `data.properties` in all three
HITL event schemas across all six spec files. This relies on
`StreamEventBase` to provide `workflow_run_id` at the top level via
composition, matching how every other event schema in this spec handles
it (e.g., `StreamEventWorkflowStarted`).

Reported by Copilot on PR #756.

* fix: address Copilot's review comments

* feat: skip api-reference paths in internal link checker

The /api-reference/... URL convention (no language prefix, derived
from OpenAPI tag/summary) generates pages that Mintlify auto-builds
rather than from filesystem MDX files, so the existing filesystem
resolution logic flags every such link as broken.

Skip both filesystem-existence and anchor validation for any URL
containing /api-reference/, mirroring the existing
anchor_check_skipped behaviour. The convention is documented in
writing-guides/formatting-guide.md.

Caveat: typos in tag or summary slugs will now pass silently. A
follow-up could parse the OpenAPI specs to validate against the
real tag/summary kebab pairs if hand-written api-reference links
become common enough to warrant it.

* fix: correct CORS anchor in ja environments page

Inline link [CORS設定](#cors 設定) used a literal space, but the
heading "CORS 設定" slugifies to "cors-設定" (whitespace replaced
with hyphen). Update the anchor to #cors-設定.

* fix: align datasource-plugins is_published and 200 description with node framing

* fix: clarify chatflow stream workflow events task_id origin

* docs: address HITL Service API reader-test feedback

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-04-29 11:57:59 +08:00
Luyu Zhang 27bf0c67c1 chore(ci): migrate runners to depot 2026-04-26 11:28:45 -07:00
Riskey 9e911e1687 docs: clarify yearly-only rule for dify education discount (#753)
* docs: clarify yearly-only rule for dify education discount

* docs: add mdx $ escape rule and billing glossary entries

* fix: clarify $ escape examples show source markdown
2026-04-24 11:55:39 +08:00
Riskey 23905eb42d chore: bulk formatting cleanup and post-writing format-check skills (#751)
* style: move trailing colons outside bold asterisks

Relocates colons from inside bold markers (`**Start:**`) to after them (`**Start**:`) across en, zh, and ja. Colons that sit inside bold markers can break rendering when adjacent to other inline syntax, so keeping them outside produces more reliable output. Preserves colon width (half-width and full-width) and leaves code fences and inline code spans untouched.

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

* style: normalize punctuation widths across en, zh, ja

Corrects punctuation width to match the surrounding language: full-width forms (,。:?()) in Chinese and Japanese prose when adjacent to CJK characters, half-width forms in English prose. Japanese uses 、 for commas. One Latin-heavy list in ja/use-dify/workspace/model-providers.mdx was left untouched because converting only its trailing comma would break visual consistency.

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

* docs: document frontmatter quoting rule

Replaces the vague "quote values that contain special characters" guidance with a concrete rule: leave values unquoted by default, wrap in double quotes only when the value contains a colon followed by a space. This is the one case where YAML would otherwise misparse the value. Example frontmatter block updated to show bare values.

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

* style: remove triple-asterisk horizontal rule dividers

Deletes standalone *** divider lines across en, zh, and ja docs. Our pages rely on headings for structure, so horizontal rules add visual noise without carrying meaning. Excludes the versions/ folder and use-dify/knowledge/create-knowledge/import-text-data/readme.mdx where the dividers serve a layout purpose. Code fences are left untouched.

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

* style: convert -ing headings to base form across en docs

Applies the formatting guide's heading verb rule to ~111 headings and frontmatter titles: `Creating X` becomes `Create X`, `Publishing the Plugin` becomes `Publish the Plugin`, and so on. Preserves noun-phrase gerund headings that name a concept or feature (`Troubleshooting`, `Getting Started`, `Monitoring Data List`, `Streaming Output`, etc.) and skips heading-less gerunds used as adjectives (`Publishing Methods`, `Mounting & Volumes`). Heading numeric prefixes like `### 6.` are handled before verb detection. Also fixes two pre-existing missing-space issues on numbered headings in embedding-in-websites.mdx.

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

* feat: add English and CJK format-check skills

Adds two post-writing verification skills under .claude/skills/. Each combines a Python linter for mechanical rules with a SKILL.md prose section for judgment-call rules, following the same pattern as dify-docs-terminology-check. The English skill enforces every rule in writing-guides/formatting-guide.md. The CJK skill covers general rules plus the Chinese-specific rules in tools/translate/formatting-zh.md and the Japanese-specific rules in tools/translate/formatting-ja.md, auto-selecting the rule set based on the file path. Both linters skip fenced code blocks, inline code spans, and markdown link syntax where appropriate, and they exempt the translation disclaimer from the cross-language link check so zh/ja pages can continue to link back to their English source.

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

* docs: centralize post-writing verification in writing-guides index

Moves the canonical list of post-writing checks into writing-guides/index.md so it lives in one place, adds the two new format-check skills to that list, and shortens the Post-Writing Verification section in each writing skill (guides, api-reference, env-vars) to a one-line pointer. Also unwraps a pre-existing hard-wrapped paragraph in the api-reference skill's Cross-API Links section.

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

* fix: address Copilot review comments

Applies twelve fixes raised in the PR review:

- Corrects the "Veriyfing" typo in a newly-renamed en heading and updates it to the imperative base form (Verify).
- Removes a stray empty secondary frontmatter block from the same file.
- Restores four garbled translation strings that were flagged by the reviewer (ja loop-variable description, ja conversation_id bullet, zh team-member access description, zh annotation-threshold sentence).
- Repairs an unbalanced bold markup in ja/use-dify/workspace/team-members-management.mdx introduced by the earlier bold-colon relocation pass.
- Converts half-width colons to full-width `:` after bold labels adjacent to CJK across 26 ja and 2 zh files (174 occurrences). The earlier bold-colon pass moved the colons outside `**...**` but left them half-width; Japanese and Chinese prose use `:` next to CJK.

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

* fix: address second round of Copilot review comments

Covers nine findings from the follow-up review:

- Extends the bold-colon width fix to any `**...**:` pattern on a line containing CJK, not only when the bolded text itself contains CJK. Catches 34 occurrences in 11 ja and zh files such as `**CentOS**:`, `**Windows**:`, and `- **Professional**:` where the bolded label is Latin but the surrounding prose is Japanese or Chinese.
- Replaces `左上角` with `左上` in three ja files. The original translation carried over the Chinese term instead of using the natural Japanese form.
- Unquotes 99 frontmatter values across 56 en files that were wrapped in single or double quotes without any `: ` in the value. Converts the four single-quoted values to unquoted, matching the new frontmatter quoting rule documented in the formatting guide.
- Converts one stray `**Vector Search Settings**:` in en/use-dify/knowledge/create-knowledge/setting-indexing-methods.mdx back to `:` so English prose uses half-width punctuation.
- Relaxes `_yaml_needs_quotes()` in both format-check linters to match the documented rule (quote only when the value contains `: `). The previous stricter check flagged cases the guide intentionally left unquoted, which would make the skills report violations that the guide does not treat as errors.

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

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 22:46:55 +08:00
Riskey 7b291e5e27 chore: exclude versions/ from publish and remove stale redirects (#749) 2026-04-16 21:45:25 +08:00
Riskey a9ac05ed6c style: migrate image assets to content-domain layout and align docs with new image rules (#747)
* docs: add image rules to style and formatting guides

* refactor: migrate images to content-domain folder structure

* docs: align image syntax and alt text with new rules across languages
2026-04-16 21:23:57 +08:00
Riskey 8c5ca8f6d1 feat: add anchor validation to internal link checker (#748)
* feat: add anchor validation to internal link checker

* fix: correct stale anchor links in en/zh/ja docs

* refactor: address Copilot feedback on link checker
2026-04-16 21:17:24 +08:00
Riskey b94ec219e8 docs: rewrite variable aggregator node page (#745)
* docs: rewrite the variable aggregator node page

* translate: update variable aggregator page for zh and ja

* fix: address review feedback on variable aggregator page

Remove trailing whitespace in en page and restore translation
disclaimers on zh and ja pages for consistency with other translated
node pages.

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

* docs: require translation disclaimer on all zh/ja pages

Add a Translation Disclaimer section to both zh and ja formatting
guides. Every translated page must include the disclaimer regardless
of review status, since the English source is always canonical and
readers benefit from a consistent pointer on every page.

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

* docs: clarify variable aggregator usage in trigger pages

Simplify the guidance on using a Variable Aggregator to converge
plugin and webhook trigger branches. Align zh and ja translations
with the glossary term (变量聚合器 / 変数集約器).

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

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:58:07 +08:00
Riskey 7cea249f73 docs: rewrite external knowledge base documentation (#737)
* docs: rewrite external knowledge base overview page

* docs: rewrite external knowledge API specification

* style: add adjustable parameter guidance pattern

* fix: standardize "similarity score" terminology across docs and glossary

* fix: address Copilot's PR review feedback on external knowledge base docs

* translate: sync zh/ja external knowledge base pages with English rewrite

* style: add standard phrase translation convention for zh docs

* fix: address Copilot's PR review feedback on external knowledge base docs

* docs: strengthen codebase verification rule for rewrites

* docs: elevate cross-reference anchor rule in translation guides

* style: add vague cross-references pattern to style guide

* fix: remove filler content from external knowledge base pages

* fix: correct anchor examples in translation formatting guides

* fix: translate code block examples and remove invalid operators in zh/ja API spec

* docs: add translation quality rules for EN→ZH/JA

* docs: move LlamaCloud setup to tip and remove Connection Example section

* translate: sync zh/ja with LlamaCloud restructure and apply new quality rules
2026-04-15 10:26:52 +08:00
99 758be646df fix: block internal files from mintlify publish (#744)
* fix: block internal files from mintlify publish

* fix: restore missing rules in AGENTS.md from CLAUDE.md

---------

Co-authored-by: RiskeyL <7a8y@163.com>
2026-04-13 13:21:37 +08:00
Riskey b6f87ac5d4 docs: rewrite Output node page with zh/ja translations and glossary updates (#742)
* docs: rewrite Output node page and add API mode glossary terms

* translate: sync zh/ja Output node pages with rewritten English source

* style: add link spacing rule for ja and expand anchor rule to cover Tab titles

* fix: remove trailing whitespace in en and replace em dashes in zh
2026-04-10 16:37:39 +08:00
Riskey 83fc9593fa docs: document datasource_info_list schemas and improve Run Pipeline API (#741)
* docs: document datasource_info_list per-type schemas for Run Pipeline API

* docs: improve Run Pipeline parameter descriptions and SSE event documentation

* translate: sync zh/ja pipeline API specs with English schema updates

* fix: address Copilot's PR review feedback on pipeline API docs

* style: add punctuation spacing and API cross-link rules to translation guides
2026-04-10 15:49:43 +08:00
Riskey 729606605a fix: handle non-ASCII URLs and false positives in external link checker (#740) 2026-04-10 13:14:42 +08:00
Riskey e7f8fb4013 chore: note environments.mdx manual translation requirement (#736)
* chore: note environments.mdx manual translation requirement

* Update .claude/skills/dify-docs-env-vars/SKILL.md

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-09 16:33:53 +08:00
David Myriel fe8be9d1ab docs: document S3_ADDRESS_STYLE variable and add Tigris example (#734)
* add fix to s3 config

* docs: add S3_ADDRESS_STYLE variable, remove provider-specific content

* translate: sync S3_ADDRESS_STYLE variable to zh and ja

---------

Co-authored-by: RiskeyL <7a8y@163.com>
2026-04-09 15:56:21 +08:00
Riskey de7cbc9e1d fix: add redirect for broken install-self-hosted/readme link (#735)
* fix: add redirect for broken install-self-hosted/readme link

* fix: correct broken install-self-hosted wildcard redirects
2026-04-09 11:43:45 +08:00
鸭知道 39fe9dd19e chore: remove orphaned Japanese translation files (#732)
These 8 files in ja/ have no corresponding English source in en/
and are not referenced in docs.json. They were likely left behind
during previous content reorganization (missed by #731).

Co-authored-by: guwenxiang <guwenxiang@hailiang.com>
2026-04-08 20:07:38 +08:00
Riskey 0a73bf436c feat: add feature research skill, formatting rules, and codebase freshness checks (#733)
* feat: add feature research skill and update writing guide index

* style: add quotation mark and backtick usage rules to formatting guide

* chore: require pulling latest Dify code before codebase checks in skills

* fix: address PR review feedback on formatting guide and task index
2026-04-08 20:02:43 +08:00
Riskey fac0601fd6 chore: remove orphaned files, obsolete scripts, and unused images (#731) 2026-04-04 00:27:02 +08:00
Riskey 0cdcccc248 docs: add app type introduction pages and sync zh/ja translations (#728)
* draft

* refactor: reorganize sidebar hierarchy, add icons to top-level categories, and remove per-page icon frontmatter from 57 MDX files

* docs: add app type introduction pages with zh/ja translations and sidebar restructuring

* style: fix CJK-Latin spacing in translation notices and address PR review feedback
2026-04-03 23:49:22 +08:00
Riskey 5a10d47966 fix: report actual error from GET fallback in link checker (#730)
* fix: report actual error from GET fallback in link checker

* fix: skip 403 responses in GET fallback path
2026-04-03 23:44:42 +08:00
Riskey 7839e094ff fix: fix broken links and add link-checking workflow (#729)
* fix: fix all broken links

* feat: add link-checking GitHub workflow

* fix: convert relative links to absolute paths in knowledge-pipeline pages

* fix: address Copilot review comments on link checker and ja docs

* feat: split link checks into per-PR internal and weekly external workflows
2026-04-03 19:07:51 +08:00
Riskey 7a8d606095 fix: lock Python version references to exactly 3.12 across docs (#726)
* fix: lock Python version references to exactly 3.12 across docs

* fix: lock Python version to 3.12 in zh and ja translations
2026-04-01 21:52:59 +08:00
Riskey e7658128cc fix: update minimum Python version from 3.10/3.11 to 3.12 across docs (#724) 2026-04-01 21:01:54 +08:00
Riskey 669aff773d feat: add terminology check skill and post-writing verification (#723)
* feat: add terminology check skill and integrate into post-writing verification

* Update .claude/skills/dify-docs-terminology-check/SKILL.md

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

* fix: improve file detection and safer codebase reads in terminology check skill

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-31 14:39:20 +08:00
Riskey 5c1c3a4cc9 docs: sync documentation for Dify v1.13.0–v1.13.3 changes (#722)
* feat: optimize the docs-release-sync skill

* docs: add doc_form validation to knowledge API spec

* docs: update AI Credits/Default Model Settings terminology
2026-03-30 22:16:46 +08:00
リイノ eaef93a3b6 Enhancement of Weaviate migration script (#691)
* Add property type migration to Weaviate migration script

Handle uuid→text conversion for document_id/doc_id and remove spurious
moduleConfig from chunk_index during schema migration. This fixes
property type incompatibilities that could cause issues even when
vectorConfig is already correct.

Fixes the following failure scenarios in the old script:

1. Schema type mismatch: Old script copies properties as-is, preserving
   uuid type for document_id/doc_id. Dify expects text type, so the
   migrated collection appears successful but Dify fails at runtime.

2. UUID object insertion failure: When source collection has uuid-typed
   fields, the Weaviate client returns Python UUID objects. Writing these
   into text-typed fields causes batch insert errors, leading to data
   loss or migration abort.

3. moduleConfig rejection: Stale moduleConfig on chunk_index from older
   Weaviate versions can cause collection creation to fail on newer
   Weaviate, aborting migration entirely.

4. Partial migration blindspot: Collections already migrated for
   vectorConfig but still carrying wrong property types were skipped
   with "NEW SCHEMA (skip)", leaving silent incompatibilities.

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

* Add connection configuration comments with usage examples

Document how to configure Weaviate connection for both in-container
and local (port-forward) scenarios, and clarify derived values.

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

* Fix data loss risk: verify copy before deleting migrated collection

Reorder replace_old_collection to prevent data loss on failure:
- Fetch schema BEFORE deleting anything
- Wrap data copy in try/except to preserve migrated collection on error
- Add count verification after copy, keep migrated as backup on mismatch
- Only delete the migrated collection after full verification passes
- Print recovery instructions (collection name) on every failure path

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

* refactor: use Weaviate iterator and fixed-size batch per official recommendation

Replace manual cursor-based fetch_objects pagination with collection.iterator()
and switch batch.dynamic() to batch.fixed_size() to prevent overwhelming the
server during co-located migrations. Addresses review feedback from Weaviate team.

* fix: remove misleading BATCH_SIZE env var comment (hardcoded, not configurable)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 22:12:53 +08:00
Riskey 752bf16111 refactor: batch update environment variable documentation based on latest code (#721)
* update environment variable documentation based on latest code using AI

* docs: remove Cloud-only variables

* translate: add zh and ja translations for the env var doc
2026-03-30 22:03:25 +08:00
Riskey 99ba370087 feat: add shared writing guides, skills, and docs infrastructure (#720) 2026-03-30 16:16:24 +08:00
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