<samueldr>
dt:not(.current-section) + dd should allow us to hide what we don't want
<gchristensen>
ok cool
* gchristensen
gladly deletes
<gchristensen>
regenerating and uploading
<samueldr>
I almost never use + in selectors so I had to check if I got it right on how they worked
<clever>
ive found document.querySelectorAll to help a lot, when testing css selectors in a browser
<clever>
the JS console in chrome will highlight the matching elements within the dom
<clever>
but ive never tried it against xml
<gchristensen>
samueldr: hows it now?
<gchristensen>
BTW niksnut is okay with docs looking differently from the website, even on the website. so: we can have `nix-build` (or even `make`) produce The Final Artifact for consistency and local testing
<samueldr>
gchristensen: nice to know :)
<gchristensen>
:)
<gchristensen>
are the classes set up in a way you like?
<samueldr>
can a `dt` (section) have a class for when it has a child list?
* samueldr
is thinking
<gchristensen>
hmm
<gchristensen>
that might be really tricky :/
<samueldr>
yeah, can't select the dt in CSS when it has a sibling dd, it would require going backwards
<samueldr>
we likely can do without
<samueldr>
though would keep all doors open for the js-less version I think
<gchristensen>
ideally JS won't be required
<samueldr>
yeah, that's the idea
<gchristensen>
specifically what might make this very tricky is it definitely has child elements, the harder thing is does it have child elements which shows up in the ToC
<gchristensen>
I don't know how to answer that question
<samueldr>
hm?
<samueldr>
there are child that wouldn't show up in the ToC?
<gchristensen>
the xslt is operating on the input, producing output -- I don't think I can interrogate the output
<samueldr>
right, and presumably all sections have content
<gchristensen>
so I have to know based on the input if the input will produce children in the toc
<MichaelRaskin>
Well, I would expect <li> to be a node, and to not show up in ToC
<MichaelRaskin>
(whatever long name DocBook uses)
<samueldr>
I had assumed the xslt would work on a reduced input when doing the ToC
<samueldr>
though have no reason for why I thought that way
<gchristensen>
I might be able to do it if I duplicate those 180loc I mentioned earlier
<gchristensen>
let's look in to that ...
<gchristensen>
samueldr: hmmm I wonder if ul/li based ToC will be easier to work with? apparently I can do that
<samueldr>
hmm, in the end it should be possible to make it act the same way
<samueldr>
so if it ends up working better for you, why not?
<gchristensen>
it might be easier for us to get the DOM we want this other way
<gchristensen>
go in to the docs dir, run `nix-shell` then `make` and ./out/html/index.html is the docs :)
<samueldr>
(haven't looked at the impl yet) is the manual building stuff only for the nixpkgs one?
<gchristensen>
yeah, that is the playground for all this
<samueldr>
can it somehow be factored out to be callable on the nixos, and then the nix one?
<gchristensen>
one step at a time! but probably
<samueldr>
(with the default built-in nix one being generated in whatever defaults)
<samueldr>
right, just seeding the thoughts in case you weren't already miles ahead :)
<gchristensen>
:)
<gchristensen>
my thinking is I'll be able to refer to the docbook sources of all three manuals and produce a megamanual...... but tbh if we get nixpkgs down to size, that'll be a good first step
<samueldr>
what I'd like to see (implemented in nix) is a "makeThatEnhancedManualFromDocBook" and be able to apply it to docbook manuals and say "see, the output is just wonderful!"
<gchristensen>
sounds cool
<gchristensen>
let's try to get there
<gchristensen>
but first things first, let's make nixpkgs' doc okay
<gchristensen>
:P
<samueldr>
sure :)
<gchristensen>
ok I'm off to bed
<gchristensen>
sorting out the full ToC thing was a huge relief. I'm so glad it was solved.
phreedom_ has quit [Quit: No Ping reply in 180 seconds.]
_e has quit [Quit: WeeChat 2.4]
_e has joined #nixos-dev
phreedom has joined #nixos-dev
_e has quit [Client Quit]
_e has joined #nixos-dev
init_6 has joined #nixos-dev
pie___ has joined #nixos-dev
pie___ has quit [Remote host closed the connection]
pie___ has joined #nixos-dev
pie__ has quit [Ping timeout: 252 seconds]
init_6 has quit [Ping timeout: 248 seconds]
orivej has quit [Ping timeout: 245 seconds]
Drakonis has quit [Quit: WeeChat 2.4]
zimbatm has quit [*.net *.split]
mingc has quit [*.net *.split]
Cale has quit [*.net *.split]
shlevy has quit [*.net *.split]
matthewbauer has quit [*.net *.split]
worldofpeace has quit [*.net *.split]
alienpirate5 has quit [*.net *.split]
bennofs[m] has quit [*.net *.split]
domenkozar[m] has quit [*.net *.split]
nwspk has quit [*.net *.split]
sorear has quit [*.net *.split]
srhb has quit [*.net *.split]
makefu has quit [*.net *.split]
srhb has joined #nixos-dev
ericnoan has quit [Ping timeout: 270 seconds]
ericnoan has joined #nixos-dev
pie___ has quit [*.net *.split]
alp has quit [*.net *.split]
lopsided98 has quit [*.net *.split]
qyliss^work has quit [*.net *.split]
bgamari has quit [*.net *.split]
dtz has quit [*.net *.split]
timokau[m] has quit [*.net *.split]
simpson has quit [*.net *.split]
georgyo has quit [*.net *.split]
thoughtpolice has quit [*.net *.split]
aristid has quit [*.net *.split]
scott has quit [*.net *.split]
yorick has quit [*.net *.split]
c00w has quit [*.net *.split]
chaker has quit [*.net *.split]
globin has quit [*.net *.split]
alp has joined #nixos-dev
lopsided98 has joined #nixos-dev
pie___ has joined #nixos-dev
bgamari has joined #nixos-dev
qyliss^work has joined #nixos-dev
simpson has joined #nixos-dev
timokau[m] has joined #nixos-dev
georgyo has joined #nixos-dev
dtz has joined #nixos-dev
chaker has joined #nixos-dev
thoughtpolice has joined #nixos-dev
yorick has joined #nixos-dev
aristid has joined #nixos-dev
scott has joined #nixos-dev
c00w has joined #nixos-dev
globin has joined #nixos-dev
zimbatm has joined #nixos-dev
bennofs[m] has joined #nixos-dev
shlevy has joined #nixos-dev
domenkozar[m] has joined #nixos-dev
matthewbauer has joined #nixos-dev
Cale has joined #nixos-dev
worldofpeace has joined #nixos-dev
alienpirate5 has joined #nixos-dev
mingc has joined #nixos-dev
makefu has joined #nixos-dev
nwspk has joined #nixos-dev
sorear has joined #nixos-dev
kgz has quit [Ping timeout: 246 seconds]
kgz has joined #nixos-dev
alp has quit [Ping timeout: 252 seconds]
timokau[m] has quit [Read error: Connection reset by peer]
Moredread[m] has quit [Remote host closed the connection]
thefloweringash has quit [Read error: Connection reset by peer]
ma27[m] has quit [Remote host closed the connection]
Ericson2314 has quit [Write error: Connection reset by peer]
nocent has quit [Write error: Connection reset by peer]
domenkozar[m] has quit [Write error: Connection reset by peer]
worldofpeace has quit [Remote host closed the connection]
bennofs[m] has quit [Remote host closed the connection]
matthewbauer has quit [Write error: Connection reset by peer]
alienpirate5 has quit [Write error: Connection reset by peer]
roberth has quit [Write error: Connection reset by peer]
codyopel has quit [Write error: Connection reset by peer]
vaibhavsagar has quit [Write error: Connection reset by peer]
yegortimoshenko has quit [Remote host closed the connection]
dtz has quit [Remote host closed the connection]
kgz has quit [Ping timeout: 246 seconds]
kgz has joined #nixos-dev
Ericson2314 has joined #nixos-dev
elvishjerricco has quit [Ping timeout: 250 seconds]
FRidh has joined #nixos-dev
elvishjerricco has joined #nixos-dev
zimbatm has quit [Ping timeout: 252 seconds]
zimbatm has joined #nixos-dev
georgyo has quit [Ping timeout: 252 seconds]
georgyo has joined #nixos-dev
dmj` has quit [Ping timeout: 250 seconds]
bgamari has quit [Ping timeout: 252 seconds]
bgamari has joined #nixos-dev
dmj` has joined #nixos-dev
orivej has joined #nixos-dev
alp has joined #nixos-dev
bennofs[m] has joined #nixos-dev
dtz has joined #nixos-dev
thefloweringash has joined #nixos-dev
vaibhavsagar has joined #nixos-dev
ma27[m] has joined #nixos-dev
nocent has joined #nixos-dev
timokau[m] has joined #nixos-dev
alienpirate5 has joined #nixos-dev
domenkozar[m] has joined #nixos-dev
worldofpeace has joined #nixos-dev
codyopel has joined #nixos-dev
yegortimoshenko has joined #nixos-dev
Moredread[m] has joined #nixos-dev
roberth has joined #nixos-dev
matthewbauer has joined #nixos-dev
alp has quit [Ping timeout: 252 seconds]
phreedom has quit [Remote host closed the connection]
pie___ has quit [Ping timeout: 252 seconds]
phreedom has joined #nixos-dev
init_6 has joined #nixos-dev
alp has joined #nixos-dev
__monty__ has joined #nixos-dev
pie_ has joined #nixos-dev
alp has quit [Ping timeout: 252 seconds]
init_6 has quit []
Drakonis has joined #nixos-dev
v0|d has quit [Read error: Connection reset by peer]