Does this belong on MDN Web Docs? - The MDN project 编辑

In this article, you'll find information describing how to decide whether or not a given topic and/or type of content should be included on MDN Web Docs. We'll also consider other places you might place content, although not in depth.

The question

If you're preparing to document something, you may be trying to decide whether to put the information on MDN Web Docs. In addition, you may be considering maintaining documentation in your source code, putting the document on the Mozilla wiki, or in readme files in a Git repository. This article's purpose is to help you decide which of these options is right for your content.

The two main considerations for whether a document belongs on MDN are:

  • The topic of the document (what is it about?)
  • The nature of the document (what kind of document is it?)

Be aware that all contributions to MDN fall under specific open source licenses; these are described in detail on our About MDN page.

Note: Keep in mind that Mozilla's Websites & Communications Terms of Use are in effect when you use or contribute to MDN Web Docs. Review this document to ensure that you're aware of what can and cannot be posted on Mozilla sites.

What topics belong on MDN Web Docs?

In general, if it's an open web-facing technology, we document it on MDN. This means any feature that can used by Web developers creating sites and applications now and in the near future. If it is implemented by multiple browsers and either accepted as standard or is progressing towards standardization, then yes, definitely. If it is still very experimental and not implemented in multiple browsers and/or liable to change, then it is still suitable for inclusion, but may not be seen as a priority for the writer's team to work on.

The primary focus is on front-end web technologies:

Note: Back-end technologies usually have their own documentation elsewhere that MDN does not attempt to supersede, although we do have some exceptions.

Also welcome are topics that cut across technologies but are relevant to Web development, such as:

Note: MDN covers some non-standard features if they're exposed to the Web, especially if they find common usage; for example, we have documentation for WebKit-specific CSS properties. MDN also covers some non-web standards technologies if they are considered useful enough to web developers — see our Web-related technologies section.

What topics don't belong on MDN Web Docs?

In general, anything that isn't an open web standard does not belong on MDN. The below sections provide more specifics.

Mozilla products

Documentation in this category includes information on both how to work with Mozilla products, as a developer, and how to contribute to these open-source projects.

While MDN Web Docs contains a large quantity of Mozilla product documentation, the focus of new content development is on open web standards. We are in the process of determining what to do about this content, so it may not make sense to create new Mozilla product documentation on MDN Web Docs. If you are working on a Mozilla product (or project that may become a product), talk to a member of the MDN staff team to discuss possible avenues for documenting your product. Also, see the section on Cases for documenting elsewhere, below.

What else?

Other examples of inappropriate topics for MDN Web Docs:

  • Technology that is not exposed to the Web and is specific to a non-Mozilla browser.
  • Technology that is not related to the Web or Mozilla products.
  • Documentation for end-users; for Mozilla products, such documentation belongs on the Mozilla support site.

What types of documents belong on MDN?

In general, MDN is for product documentation, not for project or process documentation (except about MDN itself). So, if the document is about "how to use a thing" or "how a thing works" (where the "thing" is in one of the topic categories mentioned above), then it can go on MDN. But if it about "who's working on developing a thing" or "plans for developing a thing", then it shouldn't go on MDN. In that case, if the thing is being developed under the umbrella of Mozilla, then the Mozilla project wiki may be a good place for it.

Here are some examples of types of documents that should not be placed on MDN:

  • Planning documents
  • Design documents
  • Project proposals
  • Specifications or standards
  • Promotional material, advertising, or personal information

Advantages to documenting on MDN

If you've determined that the documentation you want to write is appropriate in content and type for MDN, but you're still not sure whether MDN is the best place for it, read on.  There are a lot of good reasons to create documentation on MDN.

Lots of writers and translators

The MDN community is big. We have a lot of people that participate in creating and maintaining content on MDN. With writers and editors on every continent (okay, maybe not Antarctica, but otherwise), there's a lot of value to the sheer volume of writers:

  • We have a paid staff of writers whose mission is to make sure that our content is as good as possible.
  • We have a core community of volunteers who contribute substantial amounts of content and can help you.
  • The MDN team can work with you to ensure that your documentation project is adequately staffed.
  • The broader MDN community also contributes enormously, from typo fixes to editorial reviews of your content.
  • The MDN Web Docs chat room on Matrix offers a resource where you can talk to our writing community and get their advice, or recruit help with the production of or maintenance of your content.
  • Because we have contributors all over the world, there's always someone around, watching for problems and fixing them.
  • Our community of volunteers includes translators for many languages, who can help localize your documentation.

Do you want your development team to be entirely responsible for the production of documentation? That's likely if your documentation is maintained elsewhere.

Maintenance

Because of the sheer number of contributors, there's usually someone on hand to watch for problems with your content: from spam control to copy-editing, things can happen around the clock. Here's just a taste of what our team can do:

Delete spam
Spam happens. We deal with it.
Copy editing
You don't have to worry if your writing isn't as clear or precise as you'd like. We'll turn your prose into something other people can read.
Consistency of style
We'll ensure that your content is stylistically consistent not just within itself, but with the other documentation around it.
Content management
Our team will help ensure that the documentation is cross-linked with other relevant materials, that articles are put in the right places, and that menus and other infrastructure is built to make it easy to follow and understand.
Site and platform maintenance
MDN has both an IT team which keeps the site up, running, and secure, and a platform development team to maintain and enhance the platform on which the content is presented. You won't need to devote your own or additional resources to documentation infrastructure.

Cases for documenting elsewhere

There are also a few reasons you may be thinking about documenting your work somewhere other than MDN. Here are some of those reasons, and the pros and cons for each.

Plans and processes

Documentation for plans, processes, and proposals should never be put on MDN. That's pretty simple. If your project is part of Mozilla, you can put them on the Mozilla project wiki.

The project is on GitHub

Some of Mozilla's projects are hosted on GitHub, and GitHub offers its own wiki-like system for documentation. Some teams like to produce their documentation there. This is certainly fair and convenient if you're game to write your own docs; however, keep in mind that:

  • The MDN Web Docs team will probably not be able to help you. We don't generally participate in documentation work off MDN Web Docs; there are exceptions but they are exceptionally rare.
  • Cross-linking your documentation with other relevant materials may be difficult or impossible.
  • The content will not have consistent style with other documentation.
  • Your documentation loses discoverability by not being among other (Web or Mozilla) documentation.

It's possible, of course, that these things don't bother you, or aren't a problem in your situation. Some teams don't mind writing and maintaining their own docs, or are working on code that has minimal documentation needs.

You want to keep docs in-source

Some teams like to have their documentation in the source tree. This is particularly common with project internals and library projects.

This approach has a couple of advantages:

  • It lets the developers document their technology as they code it, helping to ensure that the docs stay up to date with the code.
  • Docs can be subject to the same development and release processes as the code, including versioning.

There are some drawbacks:

  • The MDN Web Docs team can't help you; even if the code is within Mozilla's source repository, the system of reviews and check-ins make it impractical for the docs team to participate.
  • You don't have easy tools for cross-linking with other relevant documentation. Cross-linking provides both context and additional important information to your readers.
  • Your documentation loses discoverability by not being among other documentation.
  • Even if you use conversion tools (like JavaDoc) to create Web-readable documentation, it won't be as attractive as what we can do on MDN Web Docs.

Still, this can be a viable option (possibly even a good option) for some types of projects, especially small ones or those that aren't expected to get much interest.

About your profile

It's OK to put a limited amount of personal information on your MDN profile page. User profiles should reflect a human being, not a business or organization. A moderate degree of self-promotion is OK, but link-spamming is not. Please do not use your profile to upload personal photos or other irrelevant files.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:126 次

字数:14861

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文