-
Notifications
You must be signed in to change notification settings - Fork 116
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
doc landing page that looks like a homepage and does not simply repeat the sidebar #1761
Conversation
Image from @jamesgking |
Codecov Report
@@ Coverage Diff @@
## master #1761 +/- ##
=======================================
Coverage 45.39% 45.39%
=======================================
Files 551 551
Lines 113144 113144
=======================================
Hits 51358 51358
Misses 61786 61786 📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Can I view a build of these docs anywhere? |
Good idea. It should be available at https://nrn.readthedocs.io/en/new-docs-homepage/ To be clear, this particular pull request is only for the readthedocs homepage changes. It's separate because (1) people will likely have opinions, and (2) #1728 is massive and will not be completed in entirety at any point soon. Edit: it's available now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good landing page! I think it could still promote absolute intro level links more, like a prominent link/card to a Getting Started Guide, Sections, mechanisms, connections, ... whatever we think a user must know, explained for absolute beginners.
Something like I did here (the fancy landing page cards are about the only finished things in my docs, the rest is incomplete 😉 ); it very clearly helps new users find parts of the docs they need to get familiar with concepts. It lays out a plan for them to get from being complete novices, to beginner users comfortable with the basics of each feature. If they then need more information, they should find the topics in the ToC/sidebar; or very quickly find something in a complete and modern API reference.
docs/index.rst
Outdated
|
||
.. raw:: html | ||
|
||
<div id="downloadMacOS" style="display:none"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like that the other OS instructions are completely inaccessible. Think eg someone trying to install on a VM. There are several plugins for tabs in sphinx, we could use one, and by default select the tab associated to the host OS, but then users can switch tabs to see the instructions for other platforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the tabs idea. Can you point to an example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend sphinx-design
: A brand new framework that introduces Google's Material Design spec for several themes, and the RtD theme is supported: https://sphinx-design.readthedocs.io/en/rtd-theme/
If not there are several other candidates that do (code) tabs:
- https://github.com/executablebooks/sphinx-tabs
- https://github.com/coldfix/sphinx-code-tabs (not that well maintained)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like with sphinx-design
you can use a name
field to set a referenceable name, that you could use to query the tab elements in the DOM. If you open the dev tools on the doc page, you can see each tab has a radio element associated with it, if you select it you can trigger its click
event and the tab changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice! Thanks @Helveg for pointing out that!
Those do look nice. To be honest, I think a lot of our absolute beginner level stuff is out of date in terms of what is good practice and I'm hesitant to move it over and link to it without a rethink. |
I think that calls for a doc hackathon ;) Fly me over! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
The PNG image is rather big (~1.1MB). We should compress it.
docs/index.rst
Outdated
</p> | ||
<p> | ||
Alternatively, | ||
<a href="https://github.com/neuronsimulator/nrn/releases/download/8.1.0/nrn-8.1.0-macosx-10.9-universal2-py-38-39-310.pkg">download macOS installer</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have a generic link that points to latest pkg (thus avoiding updating the docs after each release)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have such a link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did a quick google search and came up with nothing. There was git.io
backed by GitHub but it was discontinued.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And if I think about, it's not that easy to manage wrt different ReadTheDocs versions..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this make sense:
<a href="https://github.com/neuronsimulator/nrn/releases/download/8.1.0/nrn-8.1.0-macosx-10.9-universal2-py-38-39-310.pkg">download macOS installer</a> | |
head over to <a href="https://github.com/neuronsimulator/nrn/releases/">NEURON GitHub Releases</a> and download the desired macOS package installer from `Assets` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, because we want official versions to match RTD tags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this make sense:
Personally I think install links ought to take you directly to the installer not another page to search through.
nightly.link
Arguably if you're viewing documentation for version X it should take you to the X installer not the latest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm kind of ok with Mac and Linux taking you to a giant page with all versions since you can just pip install them... But for Windows, IMO we shouldn't make them search for the only way to install it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I think install links ought to take you directly to the installer not another page to search through.
Totally agree. Just thinking about the extra maintenance here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree re: maintenance. It's a real issue; the NEURON website was never updated for 8.0.2 because we just missed doing the update and didn't notice until it was time for 8.1.
docs/index.rst
Outdated
</p> | ||
</div> | ||
<div id="downloadWindows" style="display:none"> | ||
<a class="button" href="https://github.com/neuronsimulator/nrn/releases/download/8.1.0/nrn-8.1.0.w64-mingw-py-36-37-38-39-310-setup.exe">Download Windows installer (64 bit)</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have a generic link that points to latest exe (thus avoiding updating the docs after each release)
Co-authored-by: Alexandru Săvulescu <[email protected]>
This has been replaced with a high quality jpg. I don't notice any compression artifacts. |
Most of the comments are addressed?
* add an action item for `docs/index.rst`
This is a pull-request but also a request for comments.
View the latest version live at: https://nrn.readthedocs.io/en/new-docs-homepage/
Proposed readthedocs landing page that highlights NEURON capabilities and installation:
Currently it's a massive list (all the stuff from the list remains accessible in the above via the links in the sidebar):
This addresses one task in #1728
Thoughts?