-
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.
Merge pull request #18 from django-ja/miyadaiku-on-zeit
Add minimal miyadaiku build and build with Vercel
- Loading branch information
Showing
2 changed files
with
35 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,6 @@ | ||
# Miyadaiku config file | ||
site_url: https://djangoproject.jp/ | ||
site_title: "- djangoproject.jp" | ||
lang: en-US | ||
charset: utf-8 | ||
timezone: Etc/UTC |
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,29 @@ | ||
{ | ||
"name": "djangoproject.jp", | ||
"version": "0.0.1", | ||
"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*')", | ||
"install-miyadaiku": "pip3 install miyadaiku", | ||
"prepare-contents": "mkdir -p work/contents && cp .miyadaiku/config.yml work/ && mv djangoproject.jp/{about,community,events,howtojoin-transifex,howtotranslate,index.html,translate,translate_old,weblog,whouses} work/contents/", | ||
"prepare-templates": "mkdir -p work/templates && echo '{{ page.html }}' | tee work/templates/page_index.html | tee work/templates/page_article.html > /dev/null", | ||
"setup-artifacts": "mv work/outputs/* djangoproject.jp/" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/django-ja/djangoproject.jp" | ||
}, | ||
"keywords": [ | ||
"django" | ||
], | ||
"author": "django-ja", | ||
"contributors": [ | ||
"Takuya Noguchi <[email protected]> (https://github.com/tnir)" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/django-ja/djangoproject.jp/issues" | ||
}, | ||
"homepage": "https://djangoproject.jp" | ||
} |
55e2750
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.
Successfully deployed to following URLs: