From 14babf517aea19d735b3bff1d4f001256f0630c4 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 21 Aug 2019 10:29:36 +0300 Subject: [PATCH] Update repo structure, setup Travis --- .gitattributes | 8 ++++++++ _headers | 4 ++++ language_fix.py | 1 + netlify.toml | 6 ++++++ requirements.txt | 18 ------------------ static/robots.txt | 2 ++ 6 files changed, 21 insertions(+), 18 deletions(-) create mode 100644 .gitattributes create mode 100644 _headers create mode 100644 language_fix.py create mode 100644 netlify.toml delete mode 100644 requirements.txt create mode 100644 static/robots.txt diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..cf01b6ad4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +src/docs/* linguist-documentation +scripts/* linguist-documentation +gatsby-browser.js linguist-documentation +gatsby-config.js linguist-documentation +gatsby-node.js linguist-documentation +gatsby-ssr.js linguist-documentation +.travis/* linguist-documentation +config.js linguist-documentation diff --git a/_headers b/_headers new file mode 100644 index 000000000..4c2f41f08 --- /dev/null +++ b/_headers @@ -0,0 +1,4 @@ +[[headers]] +for = "/static/*" +[headers.values] +Cache-Control = "public, max-age=360000" \ No newline at end of file diff --git a/language_fix.py b/language_fix.py new file mode 100644 index 000000000..bb06f29a2 --- /dev/null +++ b/language_fix.py @@ -0,0 +1 @@ +print('This file is here only to tag the repository language. Do not delete, please!') \ No newline at end of file diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000..3bcf87c32 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,6 @@ +[build] + publish = "public" + command = "npm run webber" +[build.environment] + YARN_VERSION = "1.9.4" + YARN_FLAGS = "--no-ignore-optional" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 3fd900169..000000000 --- a/requirements.txt +++ /dev/null @@ -1,18 +0,0 @@ -autopep8==1.3.3 -cffi==1.11.4 -click==6.7 -emoji==0.4.5 -flake8==3.6.0 -Flask==1.0 -Flask-OAuth==0.12 -gunicorn==19.7.1 -httplib2==0.10.3 -itsdangerous==0.24 -Jinja2==2.10 -MarkupSafe==1.0 -misaka==2.1.0 -mistune==0.8.3 -oauth2==1.9.0.post1 -pycodestyle==2.3.1 -pycparser==2.18 -Werkzeug==0.14.1 diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 000000000..6f27bb66a --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: \ No newline at end of file