Skip to content

Introduce documentation standardization for at all communication levels - #841

Open
MGibson1 wants to merge 5 commits into
mainfrom
arch/adr/0034-documentation-standard
Open

Introduce documentation standardization for at all communication levels#841
MGibson1 wants to merge 5 commits into
mainfrom
arch/adr/0034-documentation-standard

Conversation

@MGibson1

@MGibson1 MGibson1 commented Aug 3, 2026

Copy link
Copy Markdown
Member

📔 Objective

Investigate and recommend a direction for documentation standards at Bitwarden.

@github-actions github-actions Bot added the adr label Aug 3, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploying contributing-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1134bca
Status: ✅  Deploy successful!
Preview URL: https://499eebf4.contributing-docs.pages.dev
Branch Preview URL: https://arch-adr-0034-documentation.contributing-docs.pages.dev

View logs

@MGibson1
MGibson1 force-pushed the arch/adr/0034-documentation-standard branch from 4ecd36c to f86488b Compare August 4, 2026 22:42
@withinfocus withinfocus added the ai-review Request a Claude code review label Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

Re-reviewed the single new file in this PR, docs/architecture/adr/0034-adopt-engineering-documentation-standard.md, a Proposed ADR adopting an org-wide docs-as-code documentation standard. The three commits since the last pass (2f0b8a4 date bump to the PR posting date, 17c4a81 backticking filename references, 1134bca broadening the README-coverage work item beyond bitwarden/clients) all address reviewer feedback and introduce no new concerns. Frontmatter (adr, status, date, tags), heading style, section structure, the relative link to ADR-0033, and the bitwarden/ai-plugins reference remain consistent with neighboring ADRs; Lint, Build, and Aikido checks pass, so prose wrapping, spellcheck, and internal links are clean. No code, dependency, or configuration changes are included.

Code Review Details

No new findings this pass. The previously posted suggestion about CI link checkers not covering external inbound links was answered by the author (the checkers live in the consuming repositories and validate links they add); leaving that call to the author and human reviewers.

Comment on lines +72 to +73
- Strict-move deletions can break unknown inbound links. Known links are updated at move time and
link checkers in CI are the mitigation for the rest.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎨 SUGGESTED: CI link checkers don't mitigate the inbound-link risk this bullet names.

Details and rationale

docusaurus.config.js sets onBrokenLinks: "throw", which only catches links within this site. The risk called out here is unknown inbound links — search results, Confluence pages, Jira tickets, external blog posts pointing at contributing.bitwarden.com/architecture/.... Those break silently when the Plan moves architecture/{clients,server,sdk,mobile-clients} and 12 of 28 deep-dive pages out of this repo, and no CI check in this repo or the destination repos will detect it.

Consider naming redirects as the mitigation for external inbound links, e.g. adding @docusaurus/plugin-client-redirects so moved pages redirect to their new homes, with CI link checking covering only the in-site case.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a bit of chicken and egg here. The link checker being referenced are in external repositories. The idea is to have link checkers (for example, in clients) that validate links added to them. Issues will arise with PR ordering, but I don't see a better solution to dead links

@withinfocus withinfocus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few tweaks requested but I already consider this the standard and where we're headed, captured now as truly official.

Comment thread docs/architecture/adr/0034-adopt-engineering-documentation-standard.md Outdated
Comment thread docs/architecture/adr/0034-adopt-engineering-documentation-standard.md Outdated
Comment on lines +82 to +83
- The doc-currency plugin, which enforces rule 4, publishes in
[bitwarden/ai-plugins](https://github.com/bitwarden/ai-plugins) and distributes the root CLAUDE.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎨 This is rather precise, and you could loosen up the language about it being a plugin everyone uses.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite understanding what you mean by precise. Does something like

The doc-corrency plugin, which enforces rule 4, is published at bitwarden/ai-plugins. This plugin adds hooks which allow for easy identification of when local documents needs to be updated as well as adding both local and external documentation update requirements to AI review tools.

I think that drops the implication that everyone uses this locally to assist in doc updates, but makes it clear the intent IS to validate come merge time

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like what you proposed too, but I merely (and also) meant that you don't need to name the exact plugin nor where it's published vs. more generic statements.

Comment thread docs/architecture/adr/0034-adopt-engineering-documentation-standard.md Outdated
@MGibson1
MGibson1 marked this pull request as ready for review August 5, 2026 17:20
@MGibson1
MGibson1 requested a review from a team as a code owner August 5, 2026 17:20
Audit showed that clients was the one that needed attention, but drift may occur between proposal and acceptance. We need to bring all repos up to compliance
@MGibson1
MGibson1 requested a review from withinfocus August 5, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adr ai-review Request a Claude code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants