-
Notifications
You must be signed in to change notification settings - Fork 316
Updated the branding and execution of Iris docs #3050
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| {{ super() }} | ||
|
|
||
| <script type="text/javascript" src="{{ pathto("_static/jquery.cycle.all.latest.js", 1) }}"></script> | ||
| <script type="text/javascript" src="{{ pathto("_static/random_image.js", 1) }}"></script> | ||
| <script type="text/javascript" src="{{ pathto("_static/random_image.js", 1) }}" async></script> | ||
|
|
||
| <style type="text/css"> | ||
| #slideshow { width: 400px; } | ||
|
|
@@ -13,15 +13,6 @@ | |
| #sliderNav div { display: inline-block; height: 8px; width: 8px; margin: 0 2px; | ||
| border: #ccc medium solid; border-radius: 50%; box-shadow: 0 0 2px 0 #ccc;} | ||
| #sliderNav div.activeSlide { border-color: #777; background-color: #ccc; } | ||
|
|
||
|
|
||
| .bodywrapper { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was removed, as I added it to hide the search bar. I think that is premature for the release. |
||
| width: 100%; | ||
| } | ||
| .sphinxsidebarwrapper { | ||
| display: none | ||
| } | ||
|
|
||
| </style> | ||
|
|
||
| <script type="text/javascript"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,9 @@ | |
| <link rel="stylesheet" href="{{ pathto('_static/style.css', 1) }}" type="text/css" /> | ||
| <script type="text/javascript" src="http://docs.python.org/2/_static/copybutton.js"></script> | ||
|
|
||
| <!-- Nice fonts... --> | ||
| <link rel="icon" type="image/png" sizes="32x32" href="{{ pathto('_static/favicon-32x32.png', 1) }}"> | ||
| <link rel="icon" type="image/png" sizes="16x16" href="{{ pathto('_static/favicon-16x16.png', 1) }}"> | ||
|
|
||
| <link href="https://fonts.googleapis.com/css?family=Alike" rel="stylesheet"> | ||
| {% endblock %} | ||
|
|
||
|
|
@@ -23,49 +25,24 @@ | |
|
|
||
| {% block relbar1 %} | ||
|
|
||
|
|
||
|
|
||
|
|
||
| <style> | ||
| .github-img { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These were moved into style.css.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pelson given our recent conversation I am very pleased to see this moved! |
||
| position: absolute; | ||
| top: 0; | ||
| right: 80px; | ||
| border: 0; | ||
| } | ||
|
|
||
| /* Take into account the resizing effect of the page (which has a minimum */ | ||
| /* width of 740px + 80px margins). */ | ||
| @media screen and (max-width: calc(740px + 80px + 80px)) { | ||
| .github-img { | ||
| right: calc(100% - 740px - 80px); | ||
| } | ||
| } | ||
|
|
||
| @media screen and (max-width: calc(740px + 80px)) { | ||
| .github-img { | ||
| left: calc(740px + 80px - 149px); | ||
| right: 0px; | ||
| } | ||
| } | ||
| </style> | ||
| <a href="https://github.com/you"> | ||
| <img class="github-img" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"> | ||
| <a href="https://github.com/SciTools/iris"> | ||
| <img class="github-forkme" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" | ||
| alt="Fork Iris on GitHub" /> | ||
| </a> | ||
|
|
||
|
|
||
| <div style="background-color: white; text-align: left; padding: 0px; height: 149px;"> | ||
| <div class="header-content"> | ||
| <a href="{{ pathto("index") }}"> | ||
| <img src="{{ pathto("_static/Iris7_1_trim_100.png", 1) }}" border="0" style="height: 100px; vertical-align: middle; float: left; margin: 20px 2em 0.8em 4%; padding: 0px;" alt="Logo" /> | ||
| <img src="{{ pathto("_static/Iris7_1_trim_100.png", 1) }}" alt="Iris logo" /> | ||
| </a> | ||
| <div style="display: inline-block; width: calc(100% - 110px - 2em - 4%);"> | ||
| <h1 style="font-size: 3.5rem; font-family: 'Alike', serif; margin-top: 40px; padding: 0px; color: #323232; padding-bottom: 0.2em;"> | ||
| Iris <span style="font-size: 1.5rem;">v2.1</span> | ||
| <div class="strapline"> | ||
| <h1> | ||
| Iris <span class="version">v2.1</span> | ||
| </h1> | ||
| <h4 style="padding: 0px; max-width: 60ch; margin-top: 0px; margin-bottom: 0px;"> | ||
| a powerful, easy to use, community-driven Python library for analysing and | ||
| <h2> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pelson I think we could format this a little differently and make it more shiny ✨ PR incoming, as per your request... |
||
| a powerful, format-agnostic, and community-driven Python library for analysing and | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could this be a proper sentence? That is, start with a capital letter and end with a full stop. I think it might look a little more professional if it were.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I second this! |
||
| visualising Earth science data | ||
| </h4> | ||
| </h2> | ||
| </div> | ||
| </div> | ||
|
|
||
|
|
@@ -90,5 +67,5 @@ <h4 style="padding: 0px; max-width: 60ch; margin-top: 0px; margin-bottom: 0px;"> | |
| </div> | ||
|
|
||
| <!-- Include a version switcher to easily move between the documentation of different versions --> | ||
| <script type=text/javascript src=/iris/docs/version_switch.js></script> | ||
| <script type=text/javascript src="/iris/docs/version_switch.js" async></script> | ||
| {% endblock %} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,12 +56,13 @@ | |
| # Add any Sphinx extension module names here, as strings. They can be extensions | ||
| # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. | ||
| extensions = ['sphinx.ext.autodoc', | ||
| 'sphinx.ext.coverage', | ||
| 'sphinx.ext.imgmath', | ||
| 'sphinx.ext.autosummary', | ||
| 'sphinx.ext.coverage', | ||
| 'sphinx.ext.doctest', | ||
| 'sphinx.ext.extlinks', | ||
| 'sphinx.ext.graphviz', | ||
| 'sphinx.ext.imgmath', | ||
| 'sphinx.ext.intersphinx', | ||
| 'sphinx.ext.doctest', | ||
| 'matplotlib.sphinxext.mathmpl', | ||
| 'matplotlib.sphinxext.only_directives', | ||
| 'matplotlib.sphinxext.plot_directive', | ||
|
|
@@ -163,6 +164,14 @@ | |
| 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None), | ||
| } | ||
|
|
||
| # -- Extlinks extension ------------------------------------------------------- | ||
|
|
||
| extlinks = {'issues': ('https://github.com/SciTools/iris/labels/%s', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could consider renaming this key to 'label'? |
||
| 'issues labeled with '), | ||
| 'issue': ('https://github.com/SciTools/iris/issues/%s', | ||
| 'Issue #'), | ||
| 'pull': ('https://github.com/SciTools/iris/pull/%s', 'PR #'), | ||
| } | ||
|
|
||
| # -- Doctest ------------------------------------------------------------------ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,23 +53,24 @@ Iris 2.1 Features | |
| * Added :meth:`iris.analysis.trajectory.interpolate` that allows you to | ||
| interpolate to find values along a trajectory. | ||
| * It is now possible to add an attribute of ``missing_value`` to a cube. | ||
| https://github.com/SciTools/iris/issues/1588 | ||
| (:issue:`1588`) | ||
| * Iris can now represent data on the Albers Equal Area Projection, | ||
| and the NetCDF loader and saver were updated to handle this. | ||
| https://github.com/SciTools/iris/issues/2943 | ||
| and the NetCDF loader and saver were updated to handle this. (:issue:`2943`) | ||
| * The :class:`~iris.coord_systems.Mercator` projection has been updated to accept | ||
| the ``standard_parallel`` keyword argument. | ||
| the ``standard_parallel`` keyword argument. (:pr:`3041`) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sphinx admonition isn't rendering properly in the build – think it needs to be |
||
|
|
||
| Bugs Fixed | ||
| ========== | ||
|
|
||
| * All var names being written to NetCDF are now CF compliant. | ||
| Non alpha-numeric characters are replaced with '_', and var names now always | ||
| have a leading letter. https://github.com/SciTools/iris/pull/2930 | ||
| have a leading letter. (:pull:`2930`) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a stylistic thing only but I'd prefer to see the brackets containing the link inside the sentence; something like: (I've chosen a shorter example from below for the sake of brevity.) |
||
| * A cube resulting from a regrid operation using the `iris.analysis.AreaWeighted` | ||
| regridding scheme will now have the smallest floating point data type | ||
| to which the source cube's data type can be safely converted using NumPy's | ||
| type promotion rules. | ||
| * :mod:`iris.quickplot` labels now honour the axes being drawn to when using the | ||
| ``axes=`` keyword. (:pull:`3010`) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we drop the |
||
|
|
||
| Incompatible Changes | ||
| ==================== | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Are you saying it isn't?? 😉
Actually though, I've long thought that this introductory statement was a bit full of itself, and this change helps. Note that this comment is duplicated in the description at the top of the Iris repo on GitHub too, so we should make the equivalent change there too.
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.
Yep. Will do now that it is reviewed 👍