Guidelines for AI assistants that create or update documentation in this repository.
- Repository:
dynamsoft-docs/web-twain-docs - Product: Dynamic Web TWAIN documentation
- Primary goal: produce accurate, consistent Markdown docs that match existing repo conventions.
- Keep changes focused. Do not mix docs updates with local tooling/script changes unless explicitly requested.
- For normal docs work, branch from
previewunless a different base is explicitly requested. - Keep each PR focused on one topic (for example: one FAQ issue, one API clarification, one guide update).
- Avoid unrelated edits, formatting-only churn, and broad timestamp sweeps.
- FAQ pages live in
_articles/faq/. - General guides live in
_articles/general-usage/or_articles/extended-usage/. - API reference pages live in
_articles/info/api/. - When adding a new FAQ, also update
_articles/faq/index.md.
Use existing files in the same folder as the source of truth.
---
layout: default-layout
noTitleIndex: true
needAutoGenerateSidebar: true
title: <question>
keywords: Dynamic Web TWAIN, <topic keywords>
breadcrumbText: <same as title>
description: <same as title, or concise variant>
date: YYYY-MM-DD HH:mm:ss +0800
last_modified: YYYY-MM-DD HH:mm:ss +0800
------
layout: default-layout
needAutoGenerateSidebar: true
title: <page title>
keywords: Dynamic Web TWAIN, <topic keywords>
breadcrumbText: <short breadcrumb label>
description: <concise summary>
---Notes:
noTitleIndexis common for FAQ and selected index-style pages; match nearby files.- If updating an existing FAQ, update
last_modifiedto current edit time and keep the existing date format. - Use the committer's local timezone for
date/last_modified(for example,+0800for UTC+8 users).
For _articles/faq/*.md, match this structure:
- Category H1 (for example
# Addon,# Security,# Capture/Image Source) - Question H2 (
## ...?) - Direct answer first
- Steps or code sample if applicable
- Optional notes (
> [!NOTE]) and related links
Keep answers practical and implementation-oriented.
- Be concise, technical, and specific.
- Prefer product terminology already used in repo:
DWTObjectLoadImage()/LoadImageEx()SetReaderOptions()OnPostLoad
- Do not introduce unsupported behavior claims.
- Do not mention internal tickets, private case history, or customer-identifying details in public docs.
- Use internal absolute doc links like:
/_articles/info/api/WebTwain_IO.md#loadimageex
- Link API names to canonical API pages when mentioning methods/events.
- Prefer existing anchor patterns used in nearby docs.
- Keep external links to official pages only when necessary.
- Use fenced code blocks with language tags (typically
javascript,html,bash). - Keep snippets minimal but runnable.
- Reuse existing coding style from surrounding docs:
- 4-space indentation in JS snippets is common.
DWTObjectnaming is preferred in examples.
Before submitting changes:
- Verify every method/event name against
_articles/info/api/. - Verify error code/value statements against docs or validated support guidance.
- Ensure links resolve and anchors are valid.
- Ensure new FAQ is added to
_articles/faq/index.mdin the correct section. - Ensure git diff includes only intended docs files.
- Do not edit local development scripts (
scripts/*.sh, local-only files) for a docs-only task unless asked. - Do not reformat large unrelated sections.
- Do not rename files casually; preserve existing URL paths.
- Do not add AI/meta commentary into user-facing docs.