Docs are hosted on Help Scout. Changes are continuously deployed via Semaphore to the live website.
The following instructions apply for Semaphore team members with access to Help Scout:
- Create a file in HelpScout docs
- HelpScout will assign a new URL for the page which we'll use for next step, for example
https://docs.semaphoreci.com/article/33-example?preview=5b4699632c7d3a099f2e742a
. You can use that URL, sans the?preview=...
part, to create links to the new page.
- HelpScout will assign a new URL for the page which we'll use for next step, for example
- Create file in repository
just-example_5b4699632c7d3a099f2e742a.md
5b4699632c7d3a099f2e742a
isid
of specific articlejust-example
is article'sslug
When HelpScout Docs token is in place, executing deploy_docs.rb
script will
update every article which meets the following:
- It is in the project root directory
- It is a markdown file associated with an article in HelpScout Docs
- It is named in the following form
article-name_21323321.md
.21323321
in this example representsid
of article in HelpScout Docsid
is included in the article's URL (https://secure.helpscout.net/docs/xxxxxxx/article/21323321/
)
Semaphore team is using a private repository public-assets to store CSS, JS and image files.
Currently, script depends on redcarpet gem. It can be installed with the following command
gem install redcarpet
cp docs_secrets.yml.example docs_secrets.yml
- update this file with your HelpScout Docs API Key
- add project to an org with
sem
- propagate secret to Semaphore with
sem