The Stone Tablet newspaper for WWRP
In the command line, run the following:
ember g author author-name
This creates a new file author-name.md
in the authors/
folder.
In the command line, run the following:
ember g tag issue-#
e.g. "issue-3"
This creates a new file issue-#.md
in the tags/
folder.
Then edit the resulting file to change the following fields:
name
- This should just be the number of the issue, e.g. 3
image
- This field will get used for the publication date, e.g. Sunday, July 12th, 1899
imageMeta
- This field will get used for the publication location, e.g. Blackwater, WE
In the command line, run the following:
ember g post "Name of article"
If you have multiple others, you can specify one with --author=author-name
in the above command.
This creates a new file name-of-article.md
in the content/
folder.
In this file, change the tag
section from new
to the Issue you'd like to publish it under (e.g. issue-3
).
You can tag an article to appear in multiple issues.
It's recommended to prepare an issue as a branch by adding the new issue and all articles to that branch, then making a single pull request back into the master branch to release the issue. That way, no one will see any of the in-progress work until the issue is ready. You will also be able to see a preview deployment to know how it will look prior to release.
Articles will be sorted in the order they were created, with the most recent listed first. If you want to change the order,
simply edit the date
field in each article so that they display in the desired order.
Once changes have been merged to the master branch, they will automatically build and release to the live website.
You will need the following things properly installed on your computer.
git clone <repository-url>
this repositorycd stone-tablet
yarn install
ember serve
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
yarn lint:hbs
yarn lint:js
yarn lint:js --fix
ember build
(development)ember build --environment production
(production)Specify what it takes to deploy your app.