Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

urz9999
Copy link

@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.

None yet

1 participant