Skip to content

Update plugin.py to accept style path from config#3

Open
urz9999 wants to merge 1 commit intoorzih:masterfrom
urz9999:patch-1
Open

Update plugin.py to accept style path from config#3
urz9999 wants to merge 1 commit intoorzih:masterfrom
urz9999:patch-1

Conversation

@urz9999
Copy link
Copy Markdown

@urz9999 urz9999 commented Oct 25, 2021

style path is generated from config -> extra -> extra_sass_path like this:
style_path = config["extra"].get("extra_sass_path") if config["extra"].get("extra_sass_path") else "extra_sass"

if not present it will use 'extra_sass' as per documentation. Style path is then passed to the entry_point, thus being available to Sass_Entry.

I wanted to do this because we use mkdocs in a electron + angular project and the relative mkdocs part is inside a folder called docs, so we didn't want to clutter the main dir with extra directories

style path is generated from config -> extra -> extra_sass_path like this:
style_path = config["extra"].get("extra_sass_path") if config["extra"].get("extra_sass_path") else "extra_sass"

if not present it will use 'extra_sass' as per documentation. Style path is then passed to the entry_point, thus being available to Sass_Entry.

I wanted to do this because we use mkdocs in a electron + angular project and the relative mkdocs part is inside a folder called docs, so we didn't want to clutter the main dir with extra directories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant