diff options
author | Glyph <glyph@twistedmatrix.com> | 2016-08-08 14:06:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-08 14:06:05 -0700 |
commit | 4329634b2929bc81f2fc6aa6f9c9dfecf6119ff2 (patch) | |
tree | e447989bbda5ee5e68804e1aaf2679fd6ec18dfa | |
parent | f1c25f9981e2c8c74b64fc57a6b9cd72e9ed0426 (diff) | |
parent | b02e5ce2c1dc45cfa5ae430c429f66f1a21880f0 (diff) |
Merge pull request #127 from twisted/dreid-patch-1
Improve UX by making the button text indicate the target state.
-rw-r--r-- | pydoctor/__init__.py | 2 | ||||
-rw-r--r-- | pydoctor/templates/pydoctor.js | 8 | ||||
-rwxr-xr-x | setup.py | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/pydoctor/__init__.py b/pydoctor/__init__.py index 556b172..a7556fd 100644 --- a/pydoctor/__init__.py +++ b/pydoctor/__init__.py @@ -1,3 +1,3 @@ """PyDoctor, an API documentation generator for Python libraries.""" -version_info = (16, 2, 0, '', 0) +version_info = (16, 2, 1, '', 0) diff --git a/pydoctor/templates/pydoctor.js b/pydoctor/templates/pydoctor.js index 39606d9..427e13e 100644 --- a/pydoctor/templates/pydoctor.js +++ b/pydoctor/templates/pydoctor.js @@ -1,7 +1,13 @@ function togglePrivate() { // Hide all private things by adding the private-hidden class to them. document.body.classList.toggle("private-hidden"); -} + var button = document.querySelector('#showPrivate button'); + if(document.body.classList.contains('private-hidden')) { + button.innerText = 'Show Private API'; + } else { + button.innerText = 'Hide Private API'; + } +} // On load, hide everything private togglePrivate() @@ -10,7 +10,7 @@ from setuptools import setup setup( name='pydoctor', - version='16.2.0', + version='16.2.1', author='Michael Hudson-Doyle', author_email='micahel@gmail.com', url='http://github.com/twisted/pydoctor', |