-
Notifications
You must be signed in to change notification settings - Fork 583
docs: Fix several MkDocs info and warning messages #3663
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
docs: Fix several MkDocs info and warning messages #3663
Conversation
This commit fixes the informational message logged by MkDocs due to an incorrect format in the nav parameter. > Config value 'nav': Expected nav to be a list, got dict with keys...
This commit resolves the following informational from MkDocs that was being logged due to the previous extensions no longer being supported. Material emoji logic has been officially moved into mkdocs-material version 9.4. Please use Material's 'material.extensions.emoji.twemoji' instead of 'materialx.emoji.twemoji' in your 'mkdocs.yml' file.
PR kubernetes-sigs#3132 (commit 8285041) introduced a trademark disclaimer to the website's footer, storing the trademark URL in MkDocs config under the key `config.trademark`. This is not a valid MkDocs configuration parameter and causes the following warning to be logged when building the site. WARNING - Config value 'trademark': Unrecognised configuration name: trademark The correct place to store custom configuration is under the `extra` key [1] in MkDoc's configuration. This commit relocates `trademark` parameter to resolve the configuration warning. [1]: https://www.mkdocs.org/user-guide/configuration/#extra
MkDocs currently logs an informational message stating that files under the blog/ and gep-696/ (GEP template) paths are not present in the site's navigation. The following pages exist in the docs directory, but are not included in the "nav" configuration: This commit adds MkDocs's `not_in_nav` configuration parameter to specify that these paths are intentionally excluded from the site's navigation.
Hi @blake. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Thanks @blake! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: blake, robscott The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The mkdocs-material-extensions package is now deprecated, and it's usage in mkdocs.yaml was removed in kubernetes-sigs#3663. This fix also removes it from requirements.txt to prevent unnecessary installation.
The mkdocs-material-extensions package is now deprecated, and it's usage in mkdocs.yaml was removed in #3663. This fix also removes it from requirements.txt to prevent unnecessary installation.
) * docs: Fix nav error in mkdocs.yml This commit fixes the informational message logged by MkDocs due to an incorrect format in the nav parameter. > Config value 'nav': Expected nav to be a list, got dict with keys... * docs: Update pymdownx.emoji extensions This commit resolves the following informational from MkDocs that was being logged due to the previous extensions no longer being supported. Material emoji logic has been officially moved into mkdocs-material version 9.4. Please use Material's 'material.extensions.emoji.twemoji' instead of 'materialx.emoji.twemoji' in your 'mkdocs.yml' file. * docs: Fix warning for invalid 'trademark' config PR kubernetes-sigs#3132 (commit 8285041) introduced a trademark disclaimer to the website's footer, storing the trademark URL in MkDocs config under the key `config.trademark`. This is not a valid MkDocs configuration parameter and causes the following warning to be logged when building the site. WARNING - Config value 'trademark': Unrecognised configuration name: trademark The correct place to store custom configuration is under the `extra` key [1] in MkDoc's configuration. This commit relocates `trademark` parameter to resolve the configuration warning. [1]: https://www.mkdocs.org/user-guide/configuration/#extra * docs: Ignore certain files from nav config MkDocs currently logs an informational message stating that files under the blog/ and gep-696/ (GEP template) paths are not present in the site's navigation. The following pages exist in the docs directory, but are not included in the "nav" configuration: This commit adds MkDocs's `not_in_nav` configuration parameter to specify that these paths are intentionally excluded from the site's navigation.
…igs#3666) The mkdocs-material-extensions package is now deprecated, and it's usage in mkdocs.yaml was removed in kubernetes-sigs#3663. This fix also removes it from requirements.txt to prevent unnecessary installation.
What type of PR is this?
/kind documentation
What this PR does / why we need it:
This PR contains several commits that resolve info and warning messages that are currently being logged by MkDocs when building the site.
More information about these changes can be found in the commit message for each commit.
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: