From 013033a9c0f03401c247ce0595d2e6ff1478cb48 Mon Sep 17 00:00:00 2001 From: Martin Donath Date: Sun, 5 Aug 2018 18:38:16 +0200 Subject: [PATCH] Fixed Travis build * Debug Travis build * Try to build as Python project * Do not install in user space * Fixed Travis build --- .travis.sh | 4 ---- .travis.yml | 9 +++++---- Dockerfile | 2 +- docs/getting-started.md | 10 ++++++---- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.travis.sh b/.travis.sh index 1d82cacc1..26da66ba6 100755 --- a/.travis.sh +++ b/.travis.sh @@ -72,10 +72,6 @@ echo "${TRAVIS_BRANCH}" | grep -qvE "^[0-9.]+$" && exit 0; :; # Install dependencies for release build pip install --user wheel twine -# Fix SSL warnings for Python < 2.7.9 -# https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2 -pip install --user urllib3[secure] - # Build and install theme and Docker image python setup.py build sdist bdist_wheel --universal docker build -t ${TRAVIS_REPO_SLUG} . diff --git a/.travis.yml b/.travis.yml index 5e880c9c0..1607a7e2c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,11 +18,12 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. -language: node_js +language: python sudo: false -# Node.js version and necessary services -node_js: 8 +# Python, Node.js version and necessary services +python: "3.6" +node_js: "8" services: - docker @@ -39,7 +40,7 @@ cache: # Install dependencies install: - npm install - - pip3 install --user -r requirements.txt + - pip install -r requirements.txt # Perform build and release script: diff --git a/Dockerfile b/Dockerfile index eadf833f2..c6558f8df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. -FROM jfloff/alpine-python:2.7-slim +FROM jfloff/alpine-python:3.6-slim MAINTAINER Martin Donath # Set build directory diff --git a/docs/getting-started.md b/docs/getting-started.md index d6b2af7c6..30e177130 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -459,11 +459,13 @@ At the time of writing, the following languages are supported: -!!! info "Search language support for Chinese" +!!! warning "MkDocs 1.0 compatibility" - [lunr-languages][18] currently doesn't include a stemmer for Chinese or - other Asian languages, but uses the Japanese stemmer, as some users - reported pretty decent results. + While MkDocs 1.0 supports prebuilding the search index, Material currently + doesn't support this setting as the default search behavior of the original + theme was heavily modified for the sake of a better UX. Integration is + possible, but a small subset of the features Material provides will not be + portable to the prebuilt index mainly due to missing localization. !!! warning "Only specify the languages you really need"