Skip to content

Commit 92ed13d

Browse files
committed
Add Changelog to Sphinx Docs
1 parent 9d79ef9 commit 92ed13d

File tree

7 files changed

+25
-17
lines changed

7 files changed

+25
-17
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ config.rst
3434
/.project
3535
/.pydevproject
3636

37+
# copied changelog file
38+
docs/source/other/changelog.md
39+

docs/doc-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ prometheus_client
88
sphinxcontrib_github_alt
99
sphinxcontrib-openapi
1010
sphinxemoji
11-
git+https://github.com/pandas-dev/pydata-sphinx-theme.git@master
11+
myst-parser
12+
pydata_sphinx_theme

docs/environment.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
name: jupyter_server_docs
22
dependencies:
3-
- python=3.7
3+
- python=3.8
4+
- pip
45
- pip:
5-
- sphinx
6-
- jinja2
7-
- tornado
8-
- jupyter_client
9-
- ipykernel
10-
- nbformat
11-
- Send2Trash
12-
- prometheus_client
13-
- sphinxcontrib_github_alt
14-
- sphinxcontrib-openapi
15-
- sphinxemoji
16-
- terminado
17-
- git+https://github.com/pandas-dev/pydata-sphinx-theme.git@master
6+
- -r doc-requirements.txt

docs/source/conf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515

1616
import sys
1717
import os
18+
import os.path as osp
1819
import shlex
20+
import shutil
21+
22+
HERE = osp.abspath(osp.dirname(__file__))
23+
1924

2025
# If extensions (or modules to document with autodoc) are in another directory,
2126
# add these directories to sys.path here. If the directory is relative to the
@@ -63,6 +68,7 @@
6368
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
6469
# ones.
6570
extensions = [
71+
'myst_parser',
6672
'sphinx.ext.autodoc',
6773
'sphinx.ext.doctest',
6874
'sphinx.ext.intersphinx',
@@ -74,6 +80,8 @@
7480
'sphinxemoji.sphinxemoji'
7581
]
7682

83+
myst_enable_extensions = ["html_image"]
84+
7785
# Add any paths that contain templates here, relative to this directory.
7886
templates_path = ['_templates']
7987

@@ -371,3 +379,8 @@
371379

372380
# import before any doc is built, so _ is guaranteed to be injected
373381
import jupyter_server.transutils
382+
383+
384+
def setup(app):
385+
dest = osp.join(HERE, 'other', 'changelog.md')
386+
shutil.copy(osp.join(HERE, '..', '..', 'CHANGELOG.md'), dest)

docs/source/developers/contents.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ An asynchronous version of the Contents API is available to run slow IO processe
281281

282282
.. note::
283283

284-
.. _contentfree:
284+
.. _asynccontents:
285285

286286
In most cases, the non-asynchronous Contents API is performant for local filesystems.
287287
However, if the Jupyter Notebook web application is interacting with a high-latent virtual filesystem, you may see performance gains by using the asynchronous version.

docs/source/other/full-config.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,3 +1388,4 @@ GatewayClient.ws_url : Unicode
13881388

13891389
The websocket url of the Kernel or Enterprise Gateway server. If not provided, this value
13901390
will correspond to the value of the Gateway url with 'ws' in place of 'http'. (JUPYTER_GATEWAY_WS_URL env var)
1391+

docs/source/other/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ Other helpful documentation
66

77
links
88
faq
9-
full-config
9+
full-config
10+
changelog

0 commit comments

Comments
 (0)