Skip to content

Conversation

@Shivam-Bhardwaj
Copy link

Summary

Fixes the Sphinx warning that appears during make lint and make html:

WARNING: html_static_path entry 'source/_static' is placed inside outdir

Changes

Use os.path.abspath() to convert the relative path to an absolute path:

- html_static_path = ['source/_static']
+ html_static_path = [os.path.abspath('source/_static')]

Testing

  • make html builds without warnings
  • Static files (custom.css) still work correctly

Fixes #6071

Use os.path.abspath() for html_static_path to prevent the Sphinx warning:
'WARNING: html_static_path entry is placed inside outdir'
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.

📝 WARNING: html_static_path entry 'source/_static' is placed inside outdir

1 participant