-
Notifications
You must be signed in to change notification settings - Fork 140
Add CI job that checks for consistent @meta
blocks in all md pages
#4823
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
Add CI job that checks for consistent @meta
blocks in all md pages
#4823
Conversation
I'd rather wish we could just specify a single |
meta = """```@meta | ||
CurrentModule = Oscar | ||
DocTestSetup = Oscar.doctestsetup() | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't there cases where we need the standard block plus something more? In that case it might be better to only match the first three lines?
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't seen such cases yet, so I would only do that once needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake: the example I thought I saw in docs/src/NumberTheory/galois.md
isn't one -- that file simply has three @meta
blocks, but the primary (first) one is "standard", so this is indeed fine!
Needs an update |
09f27ea
to
7a58d79
Compare
…4823) To this end, also unify `@meta` blocks
While looking through the diff of #4758, I noticed that many files have slightly different content in their
@meta
blocks. This PR adds a simple check that all of them coincide, and if not, prints out a list of files that need adaptation.I deliberately did not attempt to fix these issue yet, as that would produce loads of conflicts with #4758.