Skip to content
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

Docs updates - sort list #875

Merged
merged 5 commits into from
Feb 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions docs/source/autogen_scripts/autogen_nbextensions_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@
List of provided nbextensions
=============================

.. the hidden toc is used to suppress warnings about readmes which are
.. not for individual nbextensions, but are linked to by nbextensions'
.. individual readmes

.. toctree::
:hidden:

nbextensions/code_prettify/README

.. toctree::
:maxdepth: 1

Expand All @@ -64,7 +73,9 @@
with open(destination, 'w') as f:
f.write(header)
f.writelines([
' {}\n'.format(
'nbextensions/' + os.path.splitext(nbext['readme'])[0])
' {} <nbextensions/{}>\n'.format(
nbext['Name'],
os.path.splitext(nbext['readme'])[0]
)
for nbext in nbextensions if nbext.get('readme')
])
8 changes: 8 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@
# directories to ignore when looking for source files.
exclude_patterns = [
'**/.ipynb_checkpoints',
# the history file isn't linked to by either of the main exercise readmes
'nbextensions/exercise/history.md',
# slidemode2 has no yaml, so this won't be linked to in autogenerated toc
'nbextensions/slidemode/slidemode2/README.md',
# latex_envs includes its readme twice, but we only use one copy
'nbextensions/latex_envs/doc/README.md',
]

Expand All @@ -82,6 +85,11 @@

suppress_warnings = ['image.nonlocal_uri']

# regex patterns for the beginning of links not to check
linkcheck_ignore = [
r'https?://(localhost|127\.0\.0\.1):\d+/', # local links
]

# -- Options for HTML output --------------------------------------------------

if not on_rtd: # only import and set the theme if we're building docs locally
Expand Down
16 changes: 10 additions & 6 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
Unofficial Jupyter Notebook Extensions
======================================

The ``jupyter_notebook_extensions`` package contains a collection of extensions that add
functionality to the Jupyter notebook. These extensions are mostly written in Javascript and
will be loaded locally in your browser.
The ``jupyter_contrib_nbextensions`` package contains a collection of
community-contributed unofficial extensions that add functionality to the
Jupyter notebook.
These extensions are mostly written in Javascript and will be loaded locally
in your browser.

The IPython-contrib repository is maintained independently by a group of
The
`IPython-contrib repository <https://github.com/ipython-contrib/jupyter_contrib_nbextensions>`__
is maintained independently by a group of
users and developers and not officially related to the IPython
development team.

The maturity of the provided extensions varies, so please `create an
The maturity of the provided nbextensions varies, so please `create an
issue <https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/new>`__
at the project's `github
repository <https://github.com/ipython-contrib/jupyter_contrib_nbextensions>`__
Expand All @@ -27,5 +31,5 @@ Contents:
nbextensions
troubleshooting
exporting
config
internals
config
4 changes: 1 addition & 3 deletions docs/source/internals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ And for the `config.yaml` file:
When supplying a `readme.md` file, please supply a main heading with the
nbextension's title, as this will be linked in the generated documentation at
`jupyter-contrib-nbextensions.readthedocs.io <http://jupyter-contrib-nbextensions.readthedocs.io/en/latest>`__.
This is a simple example for `readme.md`:

.. code-block:: markdown
This is a simple example for `readme.md`::

This extension
==============
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ History
[@jcb91]: https://github.com/jcb91
[@jfbercher]: https://github.com/jfbercher
[autopep8]: https://github.com/hhatto/autopep8
[formatR]: http://yihui.name/formatR
[formatR]: https://yihui.name/formatr
[http://fontawesome.io/icons]: http://fontawesome.io/icons
[ijavascript]: http://n-riesco.github.io/ijavascript
[internals]: #Internals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and offers some options for configuration:


Options
=======
-------

* `hinterland.hint_delay`:
delay in milliseconds between keypress & hint request. This is used to help
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ The extension stores a record of the edits in use in the config, as a list
of objects for each mode. Those without a `to` key denote shortcuts to disable,
while those without a `from` key denote new shortcuts. For example:

```json
```javascript
// the config object with section name 'notebook' at the base URL
{
...
"kse_rebinds": {
// command-mode rebindings
'command': [
Expand All @@ -109,7 +108,7 @@ while those without a `from` key denote new shortcuts. For example:
}
]
},
...
// other config keys may be present in this file!
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Compatibility: 4.x
Name: Snippets
Main: main.js
Description: Adds a drop-down menu to insert snippet cells into the current notebook.
Link: readme.md
Link: README.md