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 # Install dependencies for release build
pip install --user wheel twine 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 # Build and install theme and Docker image
python setup.py build sdist bdist_wheel --universal python setup.py build sdist bdist_wheel --universal
docker build -t ${TRAVIS_REPO_SLUG} . 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 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE. # IN THE SOFTWARE.
language: node_js language: python
sudo: false sudo: false
# Node.js version and necessary services # Python, Node.js version and necessary services
node_js: 8 python: "3.6"
node_js: "8"
services: services:
- docker - docker
@ -39,7 +40,7 @@ cache:
# Install dependencies # Install dependencies
install: install:
- npm install - npm install
- pip3 install --user -r requirements.txt - pip install -r requirements.txt
# Perform build and release # Perform build and release
script: script:

View File

@ -18,7 +18,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE. # IN THE SOFTWARE.
FROM jfloff/alpine-python:2.7-slim FROM jfloff/alpine-python:3.6-slim
MAINTAINER Martin Donath <martin.donath@squidfunk.com> MAINTAINER Martin Donath <martin.donath@squidfunk.com>
# Set build directory # Set build directory

View File

@ -459,11 +459,13 @@ At the time of writing, the following languages are supported:
</tbody> </tbody>
</table> </table>
!!! info "Search language support for Chinese" !!! warning "MkDocs 1.0 compatibility"
[lunr-languages][18] currently doesn't include a stemmer for Chinese or While MkDocs 1.0 supports prebuilding the search index, Material currently
other Asian languages, but uses the Japanese stemmer, as some users doesn't support this setting as the default search behavior of the original
reported pretty decent results. 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" !!! warning "Only specify the languages you really need"