Skip to main content

Implementing Dragonfly Doc Improvements

Introduction​

This document provides actionable suggestions for improving the Dragonfly technical documentation.

For an analysis and general discussion of recommendations on Dragonfly technical documentation, see analysis.md. This is an AI-drafted plan, pending review by a CNCF technical writer (see cncf/techdocs#335).

Recommendations, requirements, and best practices​

This analysis measures documentation against CNCF project maturity standards and suggests possible improvements. In most cases there is more than one way to do things. Few recommendations here are meant to be prescriptive. Rather, recommendations are based on documentation best practices as understood by the reviewers. The recommended implementations represent the reviewers' experience with how to apply those best practices. In other words, borrowing terminology from the lexicon of RFCs, the changes described here should be understood as "recommended" or "should" at the strongest, and "optional" or "may" in many cases. Any "must" or "required" actions are clearly denoted as such, and pertain to legal requirements such as copyright and licensing issues.

The top-level documentation recommendations for this project are:

  1. Reproduce and close the long-unattended mobile-responsiveness bug (dragonflyoss/d7y.io#427, open five and a half months with no maintainer engagement) and fix the accessibility defects already found in this analysis (missing/incorrect alt text, disabled color-mode switch).
  2. Grow the troubleshooting/FAQ surface, add a persona map, and signpost the existing Lightweight Deployment walkthrough as the project's end-to-end tutorial, since these are the biggest gaps for new and existing users of a graduated project.
  3. Improve the beginner-friendliness of the docs repo's own issue backlog by applying labels to the issues filed from this analysis, and surface the existing "how to contribute docs" guide from the published site.
  4. Add baseline AI-agent-readiness assets (llms.txt, Markdown-equivalent pages), gate analytics to production deploys, and round out the existing community presence on the site with meeting information.

High-level action 1: Usability and accessibility baseline​

Issue 1: Fix mobile responsiveness​

Related material: dragonflyoss/d7y.io#427.

Reproduce the reported layout problems at common breakpoints (360px, 768px, 1024px) using browser dev tools (the issue's Safari/Chrome screenshots are a starting point), identify the offending CSS/theme customizations in src/css/custom.css or theme overrides, and fix or adjust them. Confirm the top-nav, sidebar, in-page TOC, and Algolia search modal are all usable on a small viewport after the fix. Note that the issue is an unaddressed report from an external contributor (no maintainer comment in over five months), not a triaged or acknowledged project priority; it should be reproduced and treated on its own merits as a real, long-unattended bug.

Issue 2: Run and record an accessibility pass​

Run an automated accessibility scanner (for example, axe DevTools or Lighthouse accessibility audit) against the home page, Quick Start, Architecture, FAQ, and one Reference page. Record findings (color contrast, missing alt text, heading order, keyboard-only navigation) as a short report or as new issues. Concrete defects already found by direct inspection and worth fixing immediately: mismatched footer icon alt text (Twitter icon reads "youtube icon", Slack icon reads "linkedin icon"), 41 of the homepage's 53 <img> elements missing alt text (6 of those with the generic alt="button logo"), 8 <h1> elements on the homepage, and the Docusaurus color-mode switch being disabled (disableSwitch: true).

High-level action 2: Close the biggest project-documentation gaps​

Issue 1: Add a persona / "who is this for" section​

Add a short section, either a new page under introduction.md or a callout near the top of the Getting Started category, naming the primary audiences: (1) application teams who consume Dragonfly transparently through a Peer proxy, (2) cluster operators who deploy and operate Manager, Scheduler, and Seed Peer, and (3) Web Console administrators. Link to it from Quick Start and from the Operations category landing content.

Issue 2: Expand the FAQ into a troubleshooting reference​

Reorganize docs/FAQ.md (and/or add new pages) by symptom rather than as an unordered list: scheduling failures, piece/transfer errors, Seed Peer unreachable, Manager/Web-Console login issues, and the existing two topics (log level, 500 errors). For each symptom, include: what the user sees, likely cause(s), and the fix, following the Prerequisites/Procedure/Result outline recommended in the issue template.

Issue 3: Signpost the existing tutorial and fix the entry point​

An end-to-end "first download" tutorial already exists at Quick Start > Kubernetes > Lightweight Deployment, with a "Verify" step and timed pulls demonstrating back-to-source versus peer-cache performance. Add a "Next steps" callout at the end of Quick Start (and a link from Introduction) signposting it as the tutorial, and point the homepage's "GET STARTED" button at Quick Start rather than the Introduction page. Separately, consider adding an equivalent walkthrough for the binaries installation path.

Issue 4: Review and merge the open docs-reference pull requests​

#481 (injector configuration reference), #428 (namespace-level injection and config reference), and #359 (digest option for dfget) are open pull requests that already add the missing reference content to docs/reference/configuration/ and docs/reference/commands/ respectively. Review them, request any changes needed, and merge so the reference content ships.

High-level action 3: Make the docs backlog beginner-friendly​

Issue 1: Apply labels to the issues filed from this analysis​

The docs repo's good first issue label is defined but has never been applied to any issue in dragonflyoss/d7y.io. Rather than labeling existing issues, apply good first issue/help wanted to the suitable issues filed from this analysis once they land, so the label gets its first real use. #348 (Netlify build image update) is infrastructure maintenance that needs maintainer access to the Netlify project, not a triage-label fit, and is too thin a task to carry its own issue. #427 is already labeled bug. #481, #428, and #359 are open pull requests, not issues; they already have descriptive bodies and need maintainer review, not triage (see action 2, issue 4).

Issue 2: Surface "how to contribute to these docs" from the live site​

Link the docs repo's README.md "Add or Update Docs" instructions from the published site, for example a footer or sidebar "Contribute to these docs" link pointing to the README section, so a reader of the live docs can find contribution instructions without relying solely on per-page "Edit this page" links. While there, fix the README's "five files" versus three-item mismatch and the ./resources//docs/resource/ path inconsistency.

High-level action 4: Strengthen site infrastructure and community presence​

Issue 1: Publish llms.txt and Markdown-equivalent pages​

Add a build step that generates llms.txt at the site root (H1 title, blockquote summary, H2 sections linking to key docs pages) and, if feasible within the Docusaurus build, serve a Markdown version of each page at the same URL with .md appended.

Issue 2: Add meeting information and reconcile contact addresses​

The homepage already has a "Join the Community" section (Slack, GitHub, Issues, Discussions, and a "Contact us" mailto:). Add meeting cadence, the meeting link, the calendar, and recordings to that section, rather than relying solely on the dragonflyoss/community README. Also reconcile the homepage's mailto:dragonfly-discuss@googlegroups.com with the dragonfly-developers@/dragonfly-maintainers@ addresses documented in the community README.

Issue 3: Gate analytics to production deploys​

Netlify deploy previews currently load the production GA4 tag (G-TZ94NZD7TN); gate gtag on Netlify's CONTEXT === 'production' build environment variable in docusaurus.config.js so previews stop reporting to the production property. No action is needed for indexing: previews already serve x-robots-tag: noindex and every page carries a canonical link back to https://d7y.io.