Repository navigation
Allow tables to opt out of default Bootstrap styling - #87
Draft
compiler-segfault wants to merge 1 commit into
Draft
compiler-segfault wants to merge 1 commit into
compiler-segfault wants to merge 1 commit into
Conversation
Contributor
|
Why not make a fork of the mkdocs theme without the modification? |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Fixes #80. The MkDocs theme adds Bootstrap table classes to every table on page load, including author-styled tables in Markdown pages and template overrides.
Change
A table marked
no-bootstrap-tableis skipped by the existing styling pass. Unmarked Markdown and HTML tables keep the same defaults, and classes the author explicitly set are preserved. The theme guide documents the opt-out.Validation
Built a minimal site with
properdocs build --strictand inspected the generated page after DOMContentLoaded in Chrome and Edge. On master, both browsers added theme classes to all three marked tables. With the patch, all five cases have the expected classes in both browsers:table table-striped table-hoverno-bootstrap-tableno-bootstrap-table table table-smBoth built-in themes and four fixture sites pass the upstream strict-build integration suite. The theme and build unit tests pass (58 tests). A full local discovery run has four Windows symlink permission errors on both master and the patch.
AI disclosure
Codex prepared the patch and ran the local tests. Submitting as a draft pending account-owner review.