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 * __pycache__
recursive-exclude * *.py[co]
include LICENSE

View File

@ -35,7 +35,7 @@ import version from "gulp-rev-replace"
export default (gulp, config, args) => {
return () => {
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(
minhtml({

0
material/__init__.py Normal file
View File

View File

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

0
src/__init__.py Normal file
View File