MCPcopy
hub / github.com/mkdocs/mkdocs / is_css

Method is_css

mkdocs/structure/files.py:519–521  ·  view source on GitHub ↗

Return True if file is a CSS file.

(self)

Source from the content-addressed store, hash-verified

517 return self.src_uri.endswith(('.js', '.javascript', '.mjs'))
518
519 def is_css(self) -> bool:
520 """Return True if file is a CSS file."""
521 return self.src_uri.endswith('.css')
522
523
524_default_exclude = pathspec.gitignore.GitIgnoreSpec.from_lines(['.*', '/templates/'])

Callers 10

test_md_fileMethod · 0.95
test_md_file_nestedMethod · 0.95
test_md_index_fileMethod · 0.95
test_static_fileMethod · 0.95
test_media_fileMethod · 0.95
test_javascript_fileMethod · 0.95
test_css_fileMethod · 0.95
css_filesMethod · 0.80

Calls

no outgoing calls

Tested by 9

test_md_fileMethod · 0.76
test_md_file_nestedMethod · 0.76
test_md_index_fileMethod · 0.76
test_static_fileMethod · 0.76
test_media_fileMethod · 0.76
test_javascript_fileMethod · 0.76
test_css_fileMethod · 0.76