-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add minimal miyadaiku build and build with Vercel #18
Conversation
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/django-ja/djangoproject-jp/485xhviqb |
"description": "Source code of http://djangoproject.jp/", | ||
"scripts": { | ||
"build": "npm run -s install-miyadaiku && npm run -s escape-jinja2 && npm run -s prepare-contents && npm run -s prepare-templates && miyadaiku-build work && npm run -s setup-artifacts", | ||
"escape-jinja2": "sed -i -e '1i {% raw %}' -e '$a {% endraw %}' $(find . -type f -name '*.html*')", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HTML中のJinja2フォーマットを解釈してしまうので、rawで囲う。以下の2ファイルだけがJinja2を含む。
@hirokiky Could you take a look at this? |
ZEIT Now => Vercel |
コンテンツのソースコードを一切いじらずにmiyadaikuを導入し、Vercelでビルド&デプロイする。
#6 はかなりコンフリクトが発生していたりするので、こちらをベースにしてテンプレートを切り出すほうがいいかもしれない。
Closes #6
Replaces #9
Signed-off-by: Takuya Noguchi takninnovationresearch@gmail.com