diff --git a/.travis.yml b/.travis.yml index 107250d..070b526 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,12 @@ language: python -python: 3.6 -cache: - directories: - - $HOME/.cache/pip - - $HOME/.cache/lektor/builds +python: 3.7 -install: - - "pip install -U pip" - - "pip install Lektor" +install: "ci/install.sh" -script: - - "cd example-site" - - "lektor build -v" +script: "ci/build.sh" deploy: provider: script - script: "lektor deploy ghpages" + script: "lektor deploy ghpages --output-path website-lektor-icon-build" on: branch: master diff --git a/README.md b/README.md index 6ff2a3b..a32a279 100755 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ *Copyright © 2016-2020 Lektor-Icon Contributors and others (see [AUTHORS.txt](https://github.com/spyder-ide/lektor-icon/blob/master/AUTHORS.txt))* +[![Travis status](https://travis-ci.org/spyder-ide/lektor-icon.svg?branch=master)](https://travis-ci.org/spyder-ide/lektor-icon) +[![Netlify Status](https://api.netlify.com/api/v1/badges/8b768d7f-1623-4134-8cea-0d049894d99c/deploy-status)](https://app.netlify.com/sites/lektor-icon-preview/deploys) + ![Screenshot of Lektor-Icon screenshot section](./images/mainpage-screenshots.png) This a heavily modified and expanded version of the [FreeHTML5](https://freehtml5.co/) ["Icon" template](https://freehtml5.co/icon-free-website-template-using-bootstrap/) ported to the [Lektor](https://www.getlektor.com/) static CMS by [Daniel Althviz](https://dalthviz.github.io/) and the [Spyder](https://www.spyder-ide.org/) development team; it was initially derived from the [Hugo port](https://github.com/SteveLane/hugo-icon) of the Icon theme by [Steve Lane](https://gtown-ds.netlify.com/). diff --git a/ci/build.sh b/ci/build.sh new file mode 100755 index 0000000..9771db4 --- /dev/null +++ b/ci/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash -ex + +cd example-site +lektor build -v --output-path website-lektor-icon-build diff --git a/ci/install.sh b/ci/install.sh new file mode 100755 index 0000000..c260adf --- /dev/null +++ b/ci/install.sh @@ -0,0 +1,4 @@ +#!/bin/bash -ex + +pip3 install -U pip +pip3 install -U Lektor diff --git a/example-site/themes/lektor-icon b/example-site/themes/lektor-icon index ce97595..c25bddb 120000 --- a/example-site/themes/lektor-icon +++ b/example-site/themes/lektor-icon @@ -1 +1 @@ -../../../lektor-icon \ No newline at end of file +../.. \ No newline at end of file diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..00612a6 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,15 @@ +# Settings in the [build] context are global and are applied to all contexts +# unless otherwise overridden by more specific contexts. +[build] + # Directory to change to before starting a build. + # This is where we will look for package.json/.nvmrc/etc. + # base = "project/" + + # Directory that contains the deploy-ready HTML files and assets generated by + # the build. This is relative to the base directory if one has been set, or the + # root directory if a base has not been set. This sample publishes the + # directory located at the absolute path "root/project/build-output" + publish = "example-site/website-lektor-icon-build/" + + # Default build command. + command = "ci/install.sh && ci/build.sh" diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000..475ba51 --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +3.7