Fork me on GitHub
#devcards
<
2015-11-02
>
jannis14:11:58

Hi! What could lead to (def ^:export front-matter ...) not being applied?

bhauman17:11:30

@jannis: good question? you mean front matter isn't showing up in the ns?

jannis17:11:36

@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.

jannis17:11:03

Hold on, I can show you the code in a sec.

bhauman17:11:41

@jannis: yeah that isn't intended to override devcards in the normal context

jannis17:11:04

Ah. What is it intended to do then? 😉

bhauman17:11:09

@jannis: that was a hack to get my blog posts working

bhauman17:11:54

@jannis: so its only imported and applied to blog posts

jannis17:11:05

Hehe, ok. So just passing :frame false to individual cards for now is the way to go.

bhauman17:11:35

yeah unless you want to think about what global config looks like an send a PR simple_smile

bhauman17:11:51

its certainly needed

jannis17:11:39

One idea could be to pass them to start-devcard-ui!. But perhaps that's a) a bad idea and b) too global.

bhauman17:11:15

that seems fine to me

bhauman17:11:46

you really can only call that function once anyway

jannis18:11:32

I can see if I can cook up a PR for that if you like.

bhauman18:11:10

I certainly welcome it

jannis18:11:48

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.

bhauman18:11:27

Hmmmm, duplication of cards? or duplication of the whole interface?

jannis18:11:24

A mix perhaps. Like, when I'm on the devcards page for one particular ns, saving a change will show the page content twice.

jannis18:11:59

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

bhauman18:11:51

That makes me think that the file is being reloaded twice in rapid succession

bhauman18:11:14

do you have autosave enabled?

bhauman18:11:50

if not I would say that the boot reloading is pushing the file too many times

jannis18:11:09

Yeah, my setup is indeed pushing it twice.

jannis18:11:45

I'll fix that. No bug in devcards. simple_smile

jannis21:11:07

@bhauman: PR submitted simple_smile