Fixed Travis build

* Debug Travis build

* Try to build as Python project

* Do not install in user space

* Fixed Travis build
This commit is contained in:
Martin Donath 2018-08-05 18:38:16 +02:00 committed by GitHub
parent 717f31288c
commit 013033a9c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 13 deletions

View File

@ -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} .

View File

@ -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:

View File

@ -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 <martin.donath@squidfunk.com>
# Set build directory

View File

@ -459,11 +459,13 @@ At the time of writing, the following languages are supported:
</tbody>
</table>
!!! 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"