-
Notifications
You must be signed in to change notification settings - Fork 9
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
Double headings when using labels #2
Comments
The issue here is that the title is explicitly placed with the main-content just below it, like so: Lines 60 to 65 in a5e9d79
Then, the first Lines 38 to 42 in a5e9d79
However, this only works if the I resolved this in my fork https://github.com/tomaarsen/nltk_theme by removing Another fix which might work is simply updating Lines 38 to 42 in a5e9d79
with h1:first-of-type . That said, I prefer my solution of not arbitrarily deleting the first h1 , and just using the main-content as it is generated.
Also, @autophagy, because I haven't explicitly told you this yet: Well done on this theme. It's very slick, and I like it a lot! You may have noticed already, but we've started using it for https://www.github.com/nltk/nltk under https://www.nltk.org/.
|
@tomaarsen Firstly, thank you for the complement! I had never intended for others to really use this (hence my self-indulgent naming of 'docs' as 'seonu' and stuff 😅) but its awesome you were able to get some use out of it! I have been keeping an eye on your PR for NTLK and was about to reach out to you to ask whether you'd be comfortable with me cherrypicking/adapting some improvements from your fork 😄 If you have any painpoints regarding developing on Insegel, let me know! I would like to improve the developer docs (as in, add any at all) and maybe remove the whole SCSS -> CSS build cycle since its a bit dated. But let me know if any issues you ran into that might improve the dev experience! |
@autophagy Hah, I was already wondering why the docs had that name. I even googled it, to see if I could find the meaning (Is it meant to mean "Season"?) Regarding painpoints, I have one big suggestion, and it revolves around a problem that users might have. In Sphinx, it's either really tricky or impossible to add your own CSS files. I tried many different methods, and none seemed to work. I could get the CSS added to the build, but the layout.html never included a reference to this CSS file. So, the only way to modify the CSS of your website is to override an existing CSS file, which does get imported from the layout.html. The solution to this, inspired from an issue from the Alabaster theme (sphinx-doc/alabaster#78), is to add an empty Beyond that, it took me a bit of digging to figure out exactly what information was taken for the One other nitpicky thing - on mobile, the "hamburger" menu and the table of contents are placed at the bottom of the page, which was somewhat unintuitive to me. I ended up changing this, but I recognise that this could also just be a design decision. I changed this in tomaarsen@9a13777. Oh, and I enjoyed the workflow with SCSS -> CSS, and working with Grunt. I had attempted to use SCSS before, but it never really worked out, and I also hadn't used Grunt before. |
@tomaarsen For a lot of my personal projects I pull words from Old English, and 'seonu' means sinews or nerves (I think the intention was that docs are the sinews that hold a project together). In terms of attributions, feel free to change the Ah, thank you for the heads up with the custom.css file! This has always been a bit of a problem, I had no idea alabaster had solved it like that. I will definitely add this, since like you said, the other option is maintaining a fork for just CSS changes which feels a little overkill. Yeah, the source URL at the bottom is a little unintelligent - no checking if its actually set, assumes you use Github and not Gitlab/sourcehut/darcshub etc. I'm not even sure I remember where the I think the hamburger placement was just an afterthought and, I agree, is more intuitive at the top than the bottom. Thank you for the feedback! ✨ I'll try and cherry-pick the commits from your fork into here, but in case of a conflict I will add you as an author and myself as a co-author to the commits. |
Sounds great! Let me know if there's any issues, etc. |
This should address #2 Co-authored-by: Tom Aarsen <[email protected]>
@SR4ven This should now be fixed with version 1.3.1. |
Using labels, results in duplicated headings as shown in the picture below.
Looks like the cause for this is that the theme only removes the first child h1, but in this example the first child is an empty span.
The text was updated successfully, but these errors were encountered: