-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions for publishing drafts
- Loading branch information
Ludwig Schubert
committed
Oct 3, 2017
1 parent
42153a7
commit 2dabbba
Showing
7 changed files
with
5,848 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projects": { | ||
"default": "distill-drafts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"hosting": { | ||
"public": "public" | ||
} | ||
} |
Oops, something went wrong.