Skip to content

Commit

Permalink
Add instructions for publishing drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludwig Schubert committed Oct 3, 2017
1 parent 42153a7 commit 2dabbba
Show file tree
Hide file tree
Showing 7 changed files with 5,848 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "distill-drafts"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# drafts
Pipeline / glue code for drafts.distill.pub

## how to publish sth.

- Run `npm install` to get teh firebase client.
- Log in using `firebase login`.
- Ensure the project is linking to a current version of template v2.
(Either by manually building and shipping it, or by linking https://distill.pub/template.v2.js)
- Build article.
- Rename build `index.html` to `index_raw.html`
- Use Pipeline to pre-render article:
`../template/bin/render -i public/index_raw.html > public/index.html`
- Copy pre-rendered article build files into a subfolder of `public`.
- Deploy using `firebase deploy`.
5 changes: 5 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hosting": {
"public": "public"
}
}
Loading

0 comments on commit 2dabbba

Please sign in to comment.