IMPORTANT: This guide is intended to be used with the Forestry CMS. Our external contributors who submit pull requests to the DevCenter repository do NOT need to follow this guide as it is not relevant for them!
- Go to the
For review
section of the sidebar. - Click
Add new
on the top of the screen. - Choose a Front Matter Template. In most cases, the basic template works perfectly.
- Add some content to the editor on the right, and click
Save draft
.
You can come back and edit the article any time. Please remember that every time you click Save
, Forestry pushes a commit to GitHub. You can view your file in the DevCenter repository.
IMPORTANT: Please make sure when your article is ready for review that a single commit on GitHub makes all changes visible. With a new article, that means you should:
- Cut its entire content (keep it on the clipboard!) and then click
Save draft
- Once it is saved (the little circle is green), paste the content back in and click
Save draft
.
This way you will have a commit that will show the entire content of the article as new content. Voilá!
- Create a new article in the
For review
section. - Copy the contents of the existing article into the new article.
- Add your changes.
IMPORTANT: Please make sure when your article is ready for review that a single commit on GitHub makes all changes visible. With an existing article this means you should make sure that all your changes are added with a single Save
.
- Save the article on Forestry - this creates a commit on GitHub so only save on Forestry when your content is ready for review.
- Go to the commits page of the DevCenter repository and find the commit or commits created when you saved the article. Its commit message should be "Updated article-name.md" or "Created article-name.md".
NOTE: if you have several articles ready for review, you will find each article in a separate commit.
- Select and copy the links of the commits in your browser's address bar and add them to the review task(s) in ClickUp.
- Move your writing tasks to Blocked status.
Once the review is done and the article is approved, we are ready to publish.
- Copy the contents of the article in the
For review
section in to the article in its "proper" place. For example, if you edited the Quick Start Guide to Bitrise article, copy the content from the article in theFor review
section to the article in theGetting started
section. - If the
Draft
setting isON
, turn it off. Once it's off, clickSave
.
And done! Forestry will push your article into the repository and GitHub pages will build it.
Forestry supports using snippets to quickly add shortcodes to your content. In our case, the snippets include all message boxes which are HTML codes inserted directly into the content, parsed when building the site.
NOTE: You can only insert snippets from the WYSIWYG editor.
- Place the cursor where you wish to insert a message box.
- Open the Snippets menu on the bottom toolbar.
- Select the type of message box you need.
- Enter the title of your message between the quotation marks after
title=.
- Enter the content of your message between the quotation marks after
content=
.