Repository navigation
Editing the docs online
Fix or write a docs page in your browser. Nothing to install, nothing to host.
Every save is a Git commit with your name, and changes are reviewed before they reach the website.
| ๐๏ธ Pages CMS | ๐ GitHub web editor | ๐ป github.dev / your own editor | |
|---|---|---|---|
| Best for | Writers, most edits | A typo, one line | Many pages at once, developers |
| Looks like | A form and a word-processor editor | A plain text box | VS Code, in the browser or on your PC |
| Installs | None | None | None (github.dev) ยท Git + editor (local) |
| WYSIWYG | โ Text, headings, lists, tables, images | โ Preview tab | ๐ก Preview beside the text |
| Drag and drop images | โ Into the page; the image bot files them | ๐ก Uploads go to GitHub, not the library | ๐ก Copy the file into docs2/images/_inbox/
|
| Insert a tip, image, table | โ
/ menu |
โ Type it | โ Type it |
| Review | Saves to your own branch (master is protected); you open the pull request |
โ Opens a pull request for you | โ Your own pull request |
| Open it | Edit the docs | โ๏ธ pencil on any file | Press . on the repo page |
| Verdict | โญ The advertised way | Typos | Bulk and developer work |
On the website, every page has Edit this page at the bottom: it opens that exact file in GitHub's editor, and Propose changes makes the branch and pull request for you.
- Push the docs branch to GitHub.
- Open app.pagescms.org, sign in with GitHub, and install the Pages CMS GitHub App on
Bforartists/Manualonly. - Pages CMS reads
.pages.ymlin the repository root: the page tree, the form, the image library and the commit messages.
- Click Edit the docs above and sign in with your GitHub account.
- In the branch menu at the top, create a branch for your change, for example
docs/fix-timeline.masteris protected, so saves go to your branch. - Open ๐ Documentation pages. Pages are shown as a tree, like the sidebar.
- Change the form at the top (title, status, video, shared sections) and the text below.
- Press
/on an empty line for the menu: headings, lists, Image, Table, Quote. - Drag a screenshot into the page. It lands in the image library and the image bot files it.
- Click Save (top right). Pages CMS commits your change with your name.
- Check your change: on GitHub, the newest commit on your branch is docs: update โฆ (Pages CMS, your name). Only your lines should be green.
- On GitHub, open a pull request from your branch into
master. Checks and a ๐ preview link follow.
| To make | Do this in Pages CMS |
|---|---|
| ๐ A page | In a section folder, Add an entry, give it a title, Save |
| ๐ A chapter with sub-chapters |
Create folder (my-chapter), then Add an entry inside it with the file name index.md
|
| โณ A sub-chapter | Add an entry inside the chapter folder |
You only type the title. The bot fills in the page ID, section and breadcrumb after you save.
| To get | Do this |
|---|---|
| ๐ก A tip or note |
/ โ Quote, then start with Tip: (or Note:, Warning:, Important:) |
| โจ๏ธ Keycaps | Type Ctrl + S
|
| ๐งญ A menu path | Type Edit โบ Preferences (copy the โบ) |
| ๐ผ๏ธ A screenshot | Drag it in, or / โ Image
|
| ๐ฌ A video | Paste a YouTube link on its own line, or use the Chapter video field |
| โป๏ธ A shared section | Pick it in Shared sections on this page; edit its text in โป๏ธ Shared snippets |
More: Plain writing.
Save your edits to a branch named docs2/edit/<your-topic> (in Pages CMS, use the branch menu to create it). The first save opens the pull request into master automatically, and the preview and checks follow in a comment. Every further save on that branch updates the same pull request.
One-time setting for the maintainer: Settings โ Actions โ General โ Workflow permissions โ tick "Allow GitHub Actions to create and approve pull requests".
| What happens | What to do | |
|---|---|---|
| ๐งน | The editor writes pages in its own tidy style | Nothing. The converter writes the same style, so your save only changes your lines |
> |
A plain > is saved as >
|
Use โบ for menu paths |
| ๐ผ๏ธ | Alt text of a dropped image is its file name | Change it to what the image shows, or the bot uses the heading above it |
Open a page on GitHub and click the โ๏ธ pencil. Edit, then Commit changes โ Propose changes. GitHub makes a branch and a pull request for you. Good for a typo.
Press . on the repository page: VS Code opens in your browser. Open a page, press Ctrl+K V for a preview, commit from Source Control to your own branch, then open a pull request. Locally the same works with Git and any editor.
- A pull request shows the change. Checks run: front matter, links, images, no lost words.
- ๐ A bot comment links to a preview of the page with the website's styles.
- The section reviewer approves. After merge, the page syncs to the website's staging site. Going live is a maintainer's click.
See Branches and review and Checks and previews.
๐ Bforartists Manual wiki ยท GPL v3 ยท Repository ยท Website ยท Report a docs problem ยท These pages are kept in docs2/dev-docs/ and copied here, so edit them there.
๐ Home
โ๏ธ Writing
- ๐ Writer quick start
- โ๏ธ Editing the docs online
- โ๏ธ Plain writing
- ๐ผ๏ธ Images and screenshots
- ๐ Formatting standard
- โป๏ธ Shared sections
- ๐ Reference Manual writing guide
โ๏ธ How it works
- ๐บ๏ธ How Docs 2.0 works
- ๐ฟ Branches and review
- ๐ Converting chapters
- โ Checks and previews
- ๐ Website sync
๐งฐ Maintaining
- ๐งฐ Maintainer guide
- ๐งญ Structure and navigation
- ๐บ๏ธ Workspace maps
- โจ๏ธ Keymap
- ๐๏ธ Site scripts
- ๐ Release update
- ๐ฉบ Troubleshooting
๐ Status