Skip to content

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

Conversation

blake
Copy link
Contributor

@blake blake commented Mar 6, 2025

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.

  • Ignore certain files from nav config
  • Fix warning for invalid 'trademark' config
  • Update pymdownx.emoji extensions
  • Fix nav error in mkdocs.yml

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?:

NONE

blake added 4 commits March 6, 2025 23:01
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.
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/documentation Categorizes issue or PR as related to documentation. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Mar 6, 2025
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 6, 2025
@robscott
Copy link
Member

robscott commented Mar 7, 2025

Thanks @blake!

/lgtm
/approve
/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 7, 2025
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 7, 2025
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 7, 2025
@k8s-ci-robot k8s-ci-robot merged commit 0dc4f03 into kubernetes-sigs:main Mar 7, 2025
13 checks passed
gcs278 added a commit to gcs278/gateway-api that referenced this pull request Mar 9, 2025
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.
k8s-ci-robot pushed a commit that referenced this pull request Mar 10, 2025
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.
EyalPazz pushed a commit to EyalPazz/gateway-api that referenced this pull request Mar 18, 2025
)

* 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.
EyalPazz pushed a commit to EyalPazz/gateway-api that referenced this pull request Mar 18, 2025
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/documentation Categorizes issue or PR as related to documentation. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants