sphalerite changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | NixOS 19.03 released! https://discourse.nixos.org/t/nixos-19-03-release/2652 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html https://r13y.com | 19.03 RMs: samueldr,sphalerite | https://logs.nix.samueldr.com/nixos-dev
<samueldr> right
<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> let's see
orivej has joined #nixos-dev
pie__ has joined #nixos-dev
<gchristensen> oh man
<gchristensen> samueldr: how do you like this? http://gsc.io/search-docs/chap-stdenv.html#sec-using-stdenv
<samueldr> with two selectors
<gchristensen> so it is good? :)
<samueldr> looks good yeah
<gchristensen> this makes for a good "no JS" experience, yeah?
<samueldr> possibly
<gchristensen> w00t
<samueldr> only thing that could do it better is have current-section also added to current-page
<samueldr> can't remember why though
<gchristensen> I could dothat
<gchristensen> samueldr: take a look, current-page and current-section should be applied
<samueldr> good
<gchristensen> being able to make heads/tails of this xslt stuff makes me feel like a wizard
<gchristensen> samueldr: what was the CSS you used to collapse it?
<samueldr> lost in time
<gchristensen> hehe okay I can probably figure something out
<samueldr> .toc li:not(.current-section) > ul ← closes all deeper sections
<samueldr> ul.toc > li > ul > li:not(.current-section) ← for the first level
<gchristensen> awesome
<gchristensen> this feels very exciting?
<gchristensen> I don't know if you planned on spending so much time with me this evening, but thank you for doing so :)
<samueldr> no worries, wasn't much distraction
<samueldr> now the next exciting part will be enhancing all that
<gchristensen> yes
<gchristensen> is there more I can do here?
<samueldr> I don't know what's left to do
<gchristensen> cool
<gchristensen> I'll clean up my branch
<gchristensen> though I still wonder if making every toc entry its own page might be good
<samueldr> ideally, it would be nice to tweak per-section
<samueldr> but I feel that's not a thing, right?
<gchristensen> not that I know of
<gchristensen> and I've gotten a lot of help from #xml already today, so I'm inclined to save that for another day :)
<samueldr> it would be the better approach since not all sections are alike
<samueldr> some could be on one page from the root level
<samueldr> some might need three levels of separation
<edef> hmm, kind of bothered by our defaulting to 127.0.1.1 resolving to the networking.hostName
<gchristensen> well ... we can use different things than <section>, samueldr
<edef> it means reverse DNS resolves to the unqualified hostname
<edef> and it's kind of tricky to override
<clever> edef: i think thats based on /etc/hosts
<edef> it is, yes
<gchristensen> like <sect1> / <sect2> etc. which could be set to not be in the ToC
<clever> edef: have you tried an mkBefore?
<edef> nope, it's a set
<edef> networking.hosts."127.0.1.1" = mkForce []; works fine
<samueldr> gchristensen: it's not about hiding things from the ToC, but generating discrete pages
<samueldr> (unless it's related?)
<edef> it's just a counterintuitive default, and we provide no more obvious means for disabling it
<clever> edef: networking.extraHosts is a string
<edef> clever: you can't unset things with it!
<clever> edef: and reading the source, it always goes after .hosts, so mkBefore wont help
<gchristensen> samueldr: it is possible to create a toc.xml, and then every entry becomes its own page
<edef> like, right now i've got things set up successfully
<gchristensen> but otherwise they are different
<edef> spock.edef.eu points at spock's external IP, host-based SSH auth works as a result
<edef> but it was rather counterintuitive
<edef> feels like there should be a networking.* flag that controls this entry
<clever> edef: if the hostname is set to an empty string, it wont be added to hosts
<edef> again, i have read the code, solved the problem
<edef> i do not wish to blank my hostname
<clever> may need to ust file a PR to improve the options
<edef> i would be posting in #nixos if i were trying to problem-solve
<edef> yes, my attempt here is to poll #nixos-dev for feelings on this issue before i file a PR
<edef> idk if i'm missing some piece of social signaling
<clever> i dont always pay attention to which channel i'm in, and just immediately go into helping debug a problem
<edef> np!
<edef> i'm not angry, just bad at/uncertain about communication
<edef> from the perspective of my use case, an option that sets an ordered list what IPs networking.hostName resolves to seems sane
<edef> (i generally want the primary external interface to resolve to the FQDN)
<clever> edef: oh, what about networking.hosts."127.0.1.1" = mkBefore [ "foo.bar" ]; ?
<edef> that doesn't actually help
<edef> the issue is that reverse resolution of 5.9.28.149 should result in spock.edef.eu
<edef> and forward resolution of spock.edef.eu should result in 5.9.28.149
<edef> but the 127.0.1.1 entry seems to take precedence
<clever> ahh, i see
<edef> which somehow results in the unqualified hostname as reverse resolution result
<edef> thus OpenSSH reports the wrong hostname when trying to do host-based authentication
<edef> which means my host certificate is not valid, and host-based authentication fails
pie__ has quit [Read error: Connection reset by peer]
pie__ has joined #nixos-dev
<gchristensen> samueldr: what is the best next step from here? I could give you a branch to work in? or something else?
<samueldr> a branch to work from would do it I guess
<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]
Guanin has joined #nixos-dev
__monty__ has quit [Ping timeout: 245 seconds]
__monty__ has joined #nixos-dev
__monty__ has quit [Quit: leaving]
alp has joined #nixos-dev
phreedom_ has joined #nixos-dev
phreedom has quit [Ping timeout: 260 seconds]
FRidh has quit [Quit: Konversation terminated!]
averell has quit [Ping timeout: 272 seconds]