wiki
osu!_wiki/Contribution_guide/GitHub_web-based_editor查看官网原文 ↗
这篇还没汉化,先拿英文原文顶着。(有想看的页面?催更就完事了。)

GitHub web-based editor

Note: This article uses Windows key combinations.

github.dev is a publicly available, GitHub-tailored web version of Visual Studio Code. Compared to GitHub's own web editor, it offers a lot more flexibility and control over the repository's contents. github.dev is a recommended way of contributing to the osu! wiki, especially while working on several articles at once.

Notice

To work with the osu! wiki, fork the ppy/osu-wiki repository.

To open osu! wiki in the editor, replace github.com in the URL of your fork repository with github.dev. Alternatively, open your fork on GitHub and press . (period).

While all menus are accessible from the editor's interface, the intended way of navigation is using the command palette:

Branching

After you have read Best practices § Making changes, create a new branch to store your changes in.

  1. Click the current branch's name in the bottom left corner, or press F1 and type branch. - Select Create new branch..., enter the name of the branch, and press Enter. - To help yourself remember what your work is roughly about, choose a descriptive name. As an example, for a German translation of Beatmap Discussion, you could use de-modding-v2.
  2. To return to your changes, select the appropriate branch's name in the previously mentioned dropdown.

Editing

Existing files

  1. Press Ctrl + P and enter the name of a file you want to open, then press Enter. Loose matching is supported: for example, typing nominators veto en will bring up wiki/People/The_Team/Beatmap_Nominators/Beatmap_Veto/en.md.
  2. Edit the file as necessary. Uncommitted changes are stored in your browser, and you can return to them after leaving github.dev.
  3. Once you are satisfied with the article(s), commit the changes.

New articles or translations

Articles are stored within folders with the original text (en.md) and its translations, which use different language-based file names.

File operations

Committing changes

  1. Open the source control view (Ctrl + Shift + G).
  2. Click the + button on files you want to save in a single batch.
  3. Enter the commit message in English. Use a short and meaningful commit message, as it lets others know what's in the box.
  4. Press Ctrl + Enter or click the ✓ button to commit and push your changes.

What's next

When everything is ready, use Best practices § Self-check to proofread your changes. After that, send your changes for review by opening a pull request to the ppy/osu-wiki repository.