How to create and edit pages - The MDN project 编辑
This article introduces new contributors to the process of editing existing pages and creating new ones.
Editing an existing page
To edit a page, you need to find the page source in our content repo. The easiest way to find it is to navigate to the page you want to edit, go to the bottom of the page, and click on the "Source on GitHub" link.
Once you've found the source to edit, go to our README and work through our Making contributions guide.
Preview changes
If you are editing the page locally, to see what your changes look like you can go to the content repo folder, execute the CLI command yarn start
, go to localhost:5000
in your browser, and navigate to page and view it. Enter the title in the search box to find it easily. The previewed page will update in the browser live as you edit the source.
Tags
You can add or remove tags, which describe the page's content and purpose, in the "tags" list at the top of the page source. See How to properly tag pages, for information on which tags to apply.
Attach files
To attach a file to your article, you just need to include it in the same directory as the article's index.html
file, and include it in your page, typically via an <a>
element.
Creating a new page
To create a new page, see our Adding a new document instructions.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论