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

ReadTheDocs failing inside mkdocs-autorefs #3393

Open
yifanmai opened this issue Mar 1, 2025 · 0 comments
Open

ReadTheDocs failing inside mkdocs-autorefs #3393

yifanmai opened this issue Mar 1, 2025 · 0 comments

Comments

@yifanmai
Copy link
Collaborator

yifanmai commented Mar 1, 2025

[rtd-command-info] start-time: 2025-02-28T21:15:25.909435Z, end-time: 2025-02-28T21:15:31.841271Z, duration: 5, exit-code: 1
python -m mkdocs build --clean --site-dir $READTHEDOCS_OUTPUT/html --config-file mkdocs.yml
Reading tokenizer configs from /home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/helm/config/tokenizer_configs.yaml...
Reading model deployments from /home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/helm/config/model_deployments.yaml...
INFO     -  [macros] - Macros arguments: {'module_name': 'docs/mkdocs_macros', 'modules': [], 'include_dir': '', 'include_yaml': [], 'j2_block_start_string': '', 'j2_block_end_string': '', 'j2_variable_start_string': '', 'j2_variable_end_string': '', 'on_undefined': 'keep', 'on_error_fail': False, 'verbose': False}
INFO     -  [macros] - Found local Python module 'docs/mkdocs_macros' in: /home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/checkouts/latest
INFO     -  [macros] - Found external Python module 'docs/mkdocs_macros' in: /home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/checkouts/latest
INFO     -  [macros] - Extra filters (module): ['pretty']
Traceback (most recent call last):
  File "/home/docs/.asdf/installs/python/3.9.20/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/docs/.asdf/installs/python/3.9.20/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/mkdocs/__main__.py", line 301, in <module>
    cli()
  File "/home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
  File "/home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
  File "/home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
  File "/home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/mkdocs/__main__.py", line 250, in build_command
    build.build(cfg, dirty=not clean)
  File "/home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/mkdocs/commands/build.py", line 270, in build
    config = config.plugins.run_event('config', config)
  File "/home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/mkdocs/plugins.py", line 520, in run_event
    result = method(item, **kwargs)
  File "/home/docs/checkouts/readthedocs.org/user_builds/crfm-helm/envs/latest/lib/python3.9/site-packages/mkdocs_autorefs/_internal/plugin.py", line 180, in on_config
    if self.config.link_titles == "auto":
AttributeError: 'dict' object has no attribute 'link_titles'
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

No branches or pull requests

1 participant