Skip to content

Commit

Permalink
Merge pull request #18 from django-ja/miyadaiku-on-zeit
Browse files Browse the repository at this point in the history
Add minimal miyadaiku build and build with Vercel
  • Loading branch information
hirokiky authored Jun 12, 2020
2 parents 4b226b1 + 923c9e8 commit 55e2750
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .miyadaiku/config.yml
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
29 changes: 29 additions & 0 deletions package.json
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"
}

1 comment on commit 55e2750

@vercel
Copy link

@vercel vercel bot commented on 55e2750 Jun 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.