-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Unable to set any configurations #103
Comments
That's a strange one indeed. I cannot reproduce, using python 3.10 and same versions of plugin and mkdocs/mkdocs-material. Furthermore, I have a scheduled job so I can find any breaking changes in the dependencies, which hasn't been trigger. I retriggered the builds on master branch, but they are succeeding. Windows support is always tricky though. My first thought was encoding, as windows uses different encodings for line ending ( Did you copy/paste those options from somewhere? Can you try manually typing them in your editor and then saving them? Or, you can use your editor to enforce consistent line endings. The second thing I can think of is this has something to do with mkdocs 1.4, that introduced some changes around the configuration. Can you try again with |
Had a chance to look at the suggestions yet? |
Did them manually, and tried several combinations. It's not a line endings issue I believe
trying that asap. |
Build fails also on mkdocs v1.3.1 with same modality explained in the post. |
Ok one more idea. I noticed you haven't defined any other options in any other plugins. It might be indentation. Can you indent with one tab? Or try four spaces? I noticed that in the mkdocs of this repo I used double spaces for my options, maybe that doesn't work well in windows. |
Hi, thanks for the messages. I did try with different indentations. I also have tried it in isolation and with other plugins that have options set. I will leave you my full site_name: BHoM documentation
copyright: Copyright © 2018 - 2022 BHoM
site_url: https://bhom.xyz/documentation/
repo_url: https://github.com/BHoM/documentation
edit_uri: edit/main/docs/
theme:
name: material
logo: _images/logos/logo.png
favicon: _images/logos/favicon.ico
palette:
primary: white
accent: pink
features:
- navigation.tracking
- navigation.top
plugins:
- search
- awesome-pages # allows to customise the ordering of pages.
- git-revision-date-localized: # Displays date created/modified on the page. The below configurations are bugged, so only date modified works.
#enable_creation_date: true
markdown_extensions:
- attr_list # allows to add HTML/CSS attributes to almost every Markdown element, useful for e.g. aligning an image to the left/right (can't do centre though! use md_in_html instead)
- md_in_html # allows to add markdown within HTML elements, useful for e.g. adding image captions or centering an image
- pymdownx.betterem # Wider support to markdown symbols
# Code syntax highlighting
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
# Mathjax support
- pymdownx.arithmatex:
generic: true
# Call-outs and note boxes ('admonition')
- admonition
- pymdownx.details
- pymdownx.superfences
extra_javascript:
# Also required for Mathjax support
- javascripts/mathjax.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/BHoM
name: BHoM on Github
|
Hi, I'm getting exactly the same error from this action: Installing this Plugin is fine, no prob at all. Once enabled as below, it will fail every time, if I comment out the Plugin it'll work fine Relevant snip:
|
@dcaddick your issue is another one. From your link I could deduce you are using https://github.com/athackst/mkdocs-simple-plugin. Please see their documentation on how to properly install plugins. Secondly, @alelom I will need to setup a development environment on a windows machine to be able to try and reproduce the error. Not a high priority for me tbh.. |
Thanks Tim, Any suggestions on a better alternative that does fully support the git elements? Regards, |
Thanks @timvink, that's understandable. I will update you in case I find something else. For example, since you are suggesting that this is an OS-specific issue, I will try and set the configuration to include these settings and see if at least the github actions are still able to run it correctly, given they run on Linux. |
Closing the issue as I can't reproduce |
Both my creation date and last build date always resets to last build date for all doc pages when I push to my repo. Here is how I have also set my portion of mkdocs.yml
|
See the note on using build systems in the README, you need to set your fetch depth to 0 |
Oh Great! Thanks. |
Description
Using
git-revision-date-localized-plugin
along with "Material for Mkdocs". I was asked to raise this issue here as they do not believe it is related to Material: squidfunk/mkdocs-material#4697 (comment).The plugin works when no settings are assigned in the
mkdocs.yml
file, i.e.:Shows correctly the last revision date in the webpages.
However, as soon as I add any custom setting, e.g.:
The build fails, and this error is returned:
For me this happens consistently regardless of any other plugin/extension/custom css/etc.
Note that this happens even if you set a configuration to its own default value, e.g.:
which may indicate an incorrect parsing of the configurations?
Steps to reproduce
git-revision-date-localized
via pipgit-revision-date-localized
in the yml filePackage versions
grep
is not an option -- just noting it 😄)Configuration
System information
The text was updated successfully, but these errors were encountered: