Skip to content

Commit 923c9e8

Browse files
committed
Add minimal miyadaiku build on ZEIT
Signed-off-by: Takuya Noguchi <[email protected]>
1 parent 0128c80 commit 923c9e8

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.miyadaiku/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Miyadaiku config file
2+
site_url: https://djangoproject.jp/
3+
site_title: "- djangoproject.jp"
4+
lang: en-US
5+
charset: utf-8
6+
timezone: Etc/UTC

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "djangoproject.jp",
3+
"version": "0.0.1",
4+
"description": "Source code of http://djangoproject.jp/",
5+
"scripts": {
6+
"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",
7+
"escape-jinja2": "sed -i -e '1i {% raw %}' -e '$a {% endraw %}' $(find . -type f -name '*.html*')",
8+
"install-miyadaiku": "pip3 install miyadaiku",
9+
"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/",
10+
"prepare-templates": "mkdir -p work/templates && echo '{{ page.html }}' | tee work/templates/page_index.html | tee work/templates/page_article.html > /dev/null",
11+
"setup-artifacts": "mv work/outputs/* djangoproject.jp/"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/django-ja/djangoproject.jp"
16+
},
17+
"keywords": [
18+
"django"
19+
],
20+
"author": "django-ja",
21+
"contributors": [
22+
"Takuya Noguchi <[email protected]> (https://github.com/tnir)"
23+
],
24+
"license": "MIT",
25+
"bugs": {
26+
"url": "https://github.com/django-ja/djangoproject.jp/issues"
27+
},
28+
"homepage": "https://djangoproject.jp"
29+
}

0 commit comments

Comments
 (0)