Make theme installable

This commit is contained in:
squidfunk 2017-01-02 08:58:18 +01:00
parent 9e6d347db0
commit 344ce1f4fa
5 changed files with 13 additions and 12 deletions

View File

@ -2,3 +2,4 @@ recursive-include material *.ico *.js *.css *.html *.svg
recursive-exclude site * recursive-exclude site *
recursive-exclude * __pycache__ recursive-exclude * __pycache__
recursive-exclude * *.py[co] recursive-exclude * *.py[co]
include LICENSE

View File

@ -35,7 +35,7 @@ import version from "gulp-rev-replace"
export default (gulp, config, args) => { export default (gulp, config, args) => {
return () => { return () => {
const metadata = require(path.join(process.cwd(), "./package.json")) const metadata = require(path.join(process.cwd(), "./package.json"))
return gulp.src(`${config.views.src}/**/*.html`) return gulp.src(`${config.views.src}/**/*.{html,py}`)
.pipe(changed(config.views.build)) .pipe(changed(config.views.build))
.pipe( .pipe(
minhtml({ minhtml({

0
material/__init__.py Normal file
View File

View File

@ -22,19 +22,19 @@ from setuptools import setup, find_packages
# Package description # Package description
setup( setup(
name = 'mkdocs-material', name = "mkdocs-material",
version = '1.0.0', version = "1.0.0",
url = 'http://squidfunk.github.io/mkdocs-material/', url = "http://squidfunk.github.io/mkdocs-material/",
license = 'MIT', license = "MIT",
description = 'A material design theme for MkDocs', description = "A material design theme for MkDocs",
author = 'Martin Donath', author = "Martin Donath",
author_email = 'martin.donath@squidfunk.com', author_email = "martin.donath@squidfunk.com",
keywords = ['mkdocs', 'documentation', 'theme'], keywords = ["mkdocs", "documentation", "theme"],
packages = find_packages(), packages = find_packages(),
include_package_data = True, include_package_data = True,
entry_points = { entry_points = {
'mkdocs.themes': [ "mkdocs.themes": [
'material = material', "material = material",
] ]
}, },
zip_safe = False zip_safe = False

0
src/__init__.py Normal file
View File