-
Notifications
You must be signed in to change notification settings - Fork 4
FAQ docs quality pass: fix broken links, mismatched H1s, orphaned phrasing #30
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d9a5345
Fix broken links, mismatched H1s, and orphaned phrasing across FAQ docs
lyzhang0113 62abbd9
Fix stray double-space in Python barcode-format sample
lyzhang0113 1046cdb
Fix stale enableMultiFrameCrossFilter default in MRZ performance FAQ
lyzhang0113 483ff5a
Fix npm version-check commands and package names in check-current-ver…
lyzhang0113 805a4c6
Link getVersion API reference in v11 check-current-version section
lyzhang0113 b7f9a84
Fix Java sample missing 'new' in check-current-version FAQ
lyzhang0113 7605815
Remove Aztec-code archive duplicate; unlink onFrameRead archive page
lyzhang0113 89d53d0
Exclude archived FAQ directories from the Jekyll build
lyzhang0113 76e386c
Merge pull request #55 from dynamsoft-docs/archive-cleanup
lyzhang0113 002c23d
Turn README.md into a plain repo-contributor README, exclude from build
lyzhang0113 18d1366
Correct README scope: this is the all-Dynamsoft-products FAQ site
lyzhang0113 5fd1726
Split FAQ-authoring conventions out of README.md into AGENTS.md
lyzhang0113 cfa3e7d
Remove stray '<< Back to FAQ index' links missed by a prior cleanup
lyzhang0113 c8c07e0
Align H1, frontmatter title, and index link text for domain-binding FAQ
lyzhang0113 f6753b3
Fix HTTPs -> HTTPS capitalization in frontmatter title/description
lyzhang0113 6dbb07e
Fix check-camera.md index link text to match its actual content
lyzhang0113 4cde0dd
Merge remote-tracking branch 'origin/preview' into faq-docs-quality-pass
lyzhang0113 1cc8e9a
Fix code-fence and frontmatter/H1 mismatches from PR review
lyzhang0113 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # Agent guide: writing and wiring FAQ articles | ||
|
|
||
| This file is for AI agents (and anyone else) authoring or editing FAQ content in this repo. See `README.md` for what this repo is and how it's built. | ||
|
|
||
| ## Adding a new article | ||
|
|
||
| Create a Markdown file in the right product/topic directory (see "Directory map" below) with this frontmatter and structure: | ||
|
|
||
| ```markdown | ||
| --- | ||
| layout: default-layout | ||
| title: <SEO-facing page title> | ||
| keywords: <comma-separated keywords> | ||
| description: <SEO-facing description, often the question itself> | ||
| needAutoGenerateSidebar: false | ||
| --- | ||
|
|
||
| # <The actual question, phrased as a question> | ||
|
|
||
| Answer content... | ||
| ``` | ||
|
|
||
| Rules: | ||
|
|
||
| - **Always include the H1.** It must be the real question the article answers — not a changelog-style heading, not omitted. If you're not sure how to phrase it, check the link text used for this article in its directory's `index.md`; that's the canonical phrasing. | ||
| - **Link it from `index.md`.** Every subdirectory (`barcode-reader/general/`, `barcode-reader/web/configuration/`, `mrz-scanner/general/`, etc.) has an `index.md` that lists every article in that section. A new article with no entry there is orphaned — it exists but no one can navigate to it. Add a bullet there when you add the file, and remove the bullet if you remove the file. | ||
| - **Internal links use `.html`, not `.md`.** Link to sibling/other articles as `some-page.html` (Jekyll serves the built output), and to a parent-directory archive as `../archive/some-page.html`, etc. A link ending in `.md` will not resolve on the live site. | ||
| - **Don't add "back to index" links inside articles.** They were deliberately removed repo-wide; the sidebar/index already provides navigation. | ||
| - **Images** go through a site variable per product/edition — `{{site.dbr_web_assets}}`, `{{site.dbr_mobile_assets}}`, `{{site.dbr_server_assets}}` (defined in `_config.yml`), pointing at that edition's `assets/` directory. Before referencing an image, confirm the file actually exists at that path — a stale or placeholder filename (e.g. a literal `undefined.png`) will silently 404. | ||
| - **Write the answer as a direct statement, not a raw Q&A fragment.** Don't leave phrasing like "Yes — ..." or "This can be expanded ..." floating with no visible question or antecedent above it — the H1 is the question; the body should read as its answer, not as a leftover snippet. | ||
| - **Don't duplicate a section under a second heading.** If a "what's new"/changelog-style heading and a "how to" heading right below it cover the same ground, merge them. | ||
|
|
||
| ## Directory map | ||
|
|
||
| - `barcode-reader/general/` — cross-edition Barcode Reader FAQs | ||
| - `barcode-reader/mobile/`, `barcode-reader/server/`, `barcode-reader/web/` — edition-specific Barcode Reader FAQs, each split into topic subdirectories (`configuration/`, `capabilities/`, `debug/`, `scan-setting/`, etc.) | ||
| - `mrz-scanner/general/` — MRZ Scanner FAQs | ||
| - `license/` — licensing FAQs shared across products | ||
|
|
||
| ## Archived content (`*/archive/*`) | ||
|
|
||
| Directories named `archive` under `barcode-reader/{mobile,server,web}/` hold historical, version-pinned content (e.g. `-v9.6.40`, `-v10.4.2000` snapshots). They are: | ||
|
|
||
| - Excluded from the Jekyll build via `_config.yml`'s `exclude:` list — not hosted, not in `sitemap.xml`. | ||
| - Not linked from any live index or sidebar, and shouldn't be. Don't add new links into an `archive/` directory from a live page. | ||
| - Not to be "modernized" — if you're editing a file in `archive/`, fix only structural issues (a truly broken build, a factual error introduced by your own change), not stale APIs or old terminology; that staleness is the point. | ||
|
|
||
| If you find yourself wanting to *add* content to an archive directory, it almost certainly belongs in the live directory instead. | ||
|
|
||
| ## Before finishing | ||
|
|
||
| Run the link checker from the repo root and fix anything it flags in files you touched: | ||
|
|
||
| ```bash | ||
| python check_links.py | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,84 +1,19 @@ | ||
| --- | ||
| layout: default-layout | ||
| title: Dynamsoft Capture Vision FAQ | ||
| keywords: faq, capture vision, dcv, dynamsoft, barcode reader, mrz scanner | ||
| description: Dynamsoft Capture Vision FAQ Documentation | ||
| needAutoGenerateSidebar: false | ||
| noTitleIndex: true | ||
| --- | ||
| # Dynamsoft FAQ | ||
|
|
||
| # Dynamsoft Capture Vision FAQ | ||
| Source for the FAQ site covering Dynamsoft's products, published at [dynamsoft.com/faq](https://www.dynamsoft.com/faq). This repo holds the Barcode Reader, MRZ Scanner, and licensing FAQs; Dynamic Web TWAIN (a separate product line, not part of Capture Vision) has its own FAQ section linked from the homepage (`index.md`) but sourced from a different repo. | ||
|
|
||
| Select a product below to browse its FAQs. | ||
| ## Writing or editing an article | ||
|
|
||
| <!-- Responsive 2x2-style grid (wraps to 1xN on small screens) --> | ||
| <style> | ||
| .faq-grid { | ||
| display: grid; | ||
| grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); | ||
| gap: 20px; | ||
| margin: 24px 0 8px 0; | ||
| } | ||
| .faq-tile { | ||
| display: block; | ||
| text-decoration: none; | ||
| padding: 28px 24px; | ||
| border-radius: 16px; | ||
| border: 1px solid rgba(0,0,0,0.06); | ||
| box-shadow: 0 6px 16px rgba(0,0,0,0.06); | ||
| transition: transform 0.08s ease, box-shadow 0.12s ease, border-color 0.12s ease; | ||
| background: #fff; | ||
| } | ||
| .faq-tile:hover, | ||
| .faq-tile:focus { | ||
| transform: translateY(-2px); | ||
| box-shadow: 0 10px 22px rgba(0,0,0,0.10); | ||
| border-color: rgba(0,0,0,0.12); | ||
| outline: none; | ||
| } | ||
| .faq-tile h2 { | ||
| margin: 0 0 8px 0; | ||
| font-size: 1.25rem; | ||
| line-height: 1.2; | ||
| } | ||
| .faq-tile p { | ||
| margin: 0; | ||
| color: #444; | ||
| } | ||
| .faq-tile .eyebrow { | ||
| display: inline-block; | ||
| font-size: 0.8rem; | ||
| letter-spacing: .06em; | ||
| text-transform: uppercase; | ||
| color: #666; | ||
| margin-bottom: 6px; | ||
| } | ||
| .faq-tile .emoji { | ||
| font-size: 1.35rem; | ||
| margin-right: .35rem; | ||
| } | ||
| See [`AGENTS.md`](AGENTS.md) for the FAQ article structure, frontmatter, linking, and archive-directory conventions. | ||
|
|
||
| @media (min-width: 720px) { | ||
| .faq-grid { | ||
| grid-template-columns: repeat(2, 1fr); | ||
| } | ||
| } | ||
| </style> | ||
| ## Building and deploying | ||
|
|
||
| <div class="faq-grid"> | ||
| The site is built with Jekyll using a shared theme/layout maintained in [dynamsoft-docs/Docs-Template-Repo](https://github.com/dynamsoft-docs/Docs-Template-Repo), which this repo doesn't include locally. Pushes to `main` and `preview` trigger the CI workflows in `.github/workflows/main.yml`, which build and sync to production and the preview/testing environment respectively. | ||
|
|
||
| <!-- Barcode Reader --> | ||
| <a class="faq-tile" href="/faq/barcode-reader/index.html" aria-label="Barcode Reader FAQs"> | ||
| <div class="eyebrow"><span class="emoji">📲</span>Barcode Reader</div> | ||
| <h2>Barcode Reader</h2> | ||
| <p>General usage, requirements, configuration, and troubleshooting guides.</p> | ||
| </a> | ||
| ## Checking links | ||
|
|
||
| <!-- MRZ Scanner --> | ||
| <a class="faq-tile" href="/faq/mrz-scanner/index.html" aria-label="MRZ Scanner FAQs"> | ||
| <div class="eyebrow"><span class="emoji">🛂</span>MRZ Scanner</div> | ||
| <h2>MRZ Scanner</h2> | ||
| <p>Setup, supported formats, UI customization, and integration examples.</p> | ||
| </a> | ||
| `check_links.py` crawls the repo's Markdown files and reports broken links. Run it before submitting a change that touches links: | ||
|
|
||
| </div> | ||
| ```bash | ||
| python check_links.py | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.