Skip to content

Commit a7461b8

Browse files
committed
Support README.md as index page, closes #11
1 parent 8f0c6c0 commit a7461b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mkdocs_charts_plugin/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def on_page_content(self, html, page, config, files, **kwargs):
6666
"""
6767
Store reference to homepage
6868
"""
69-
if page.file.src_path == "index.md":
69+
if page.is_homepage:
7070
self.homepage = page.file
7171

7272
def on_post_page(self, output, page, config, **kwargs):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="mkdocs-charts-plugin",
8-
version="0.0.7",
8+
version="0.0.8",
99
description="MkDocs plugin to add charts from data",
1010
long_description=long_description,
1111
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)