Hi! What could lead to (def ^:export front-matter ...)
not being applied?
@jannis: good question? you mean front matter isn't showing up in the ns?
@bhauman: Not quite. I mean "not applied" as in setting e.g. {:base-card-options {:frame false}}
doesn't set :frame false
on the devcards.
Hold on, I can show you the code in a sec.
@jannis: yeah that isn't intended to override devcards in the normal context
yet
Ah. What is it intended to do then? 😉
@jannis: that was a hack to get my blog posts working
@jannis: so its only imported and applied to blog posts
Hehe, ok. So just passing :frame false
to individual cards for now is the way to go.
yeah unless you want to think about what global config looks like an send a PR :simple_smile:
its certainly needed
One idea could be to pass them to start-devcard-ui!
. But perhaps that's a) a bad idea and b) too global.
that seems fine to me
you really can only call that function once anyway
I can see if I can cook up a PR for that if you like.
I certainly welcome it
I've seen a weird duplication of devcards on automatic page reloads (using boot-reload) by the way, but I'm almost sure that's me breaking devcards by setting up reloading in some odd way.
Hmmmm, duplication of cards? or duplication of the whole interface?
A mix perhaps. Like, when I'm on the devcards page for one particular ns, saving a change will show the page content twice.
On that page, I mean. Not in the overview. But the cards number for that ns in the overview will be twice of what it should be. :simple_smile:
That makes me think that the file is being reloaded twice in rapid succession
do you have autosave enabled?
@jannis: ^
if not I would say that the boot reloading is pushing the file too many times
Yeah, my setup is indeed pushing it twice.
I'll fix that. No bug in devcards. :simple_smile:
:simple_smile:
@bhauman: PR submitted :simple_smile: