Skip to content

Commit 6f6156c

Browse files
authored
docs: Overhaul docs toolchain (#3673)
* start work on docs build, add ts metapackage, more verbose build output * mostly-building docs * start replacing nbsphinx meta * work on nav, header refs * clean up more warnings * add autodoc * more metadata * linting * update, deduplicate yarn.lock * update some dev tools * bump node build versin, top python version * update typescript deps * more tsconfig * normalize build, actions * normalize yarn/jlpm run and install * update docs deps * bump ui-test deps * fix labextension invocation * lint yaml * add typedoc * start reworking docs site structure and content * apply prettier to markdown * prettier spec * hoist js api * restore yarn cache * more yarn cache * add jupyterlab-myst to binder * update screenshot * disable theme switcher for now * normalize more yarn invocations, update another screenshot
1 parent e1c4664 commit 6f6156c

File tree

115 files changed

+14704
-15223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+14704
-15223
lines changed

.binder/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
bqplot
22
ipyleaflet
3+
jupyterlab-myst
34
jupyterlab~=3.0
45
matplotlib
56
networkx

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ Paste the output from your browser Javascript console here.
5959
</details>
6060

6161
### If using JupyterLab
62+
6263
- JupyterLab version:
6364

6465
<details><summary>Installed Labextensions</summary>
6566
<pre>
6667
Paste the output from your command line running `jupyter labextension list`.
6768
</pre>
68-
</details>
69+
</details>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
name: Custom Widget
33
about: Issues or questions related to developing a custom widget
4-
labels: "Custom Widget"
4+
labels: 'Custom Widget'
55
---
66

7-
<!--
7+
<!--
88
If this is a:
99
1010
Bug Report: Please add the relevant pieces of information from the bug report template to this issue (https://github.com/jupyterlab/jupyterlab/issues/new?template=bug_report.md)
1111
1212
Question: Great! Thanks for asking here, since someone else will be able to find the answer more easily in the future. Please try to provide as much detail as you can about what you would like to accomplish and what you have tried.
1313
14-
Feature Request: Please follow the template from https://github.com/jupyterlab/jupyterlab/issues/new?template=feature_request.md
14+
Feature Request: Please follow the template from https://github.com/jupyterlab/jupyterlab/issues/new?template=feature_request.md
1515
-->

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ If you are referencing an existing piece of documentation or example please prov
1717
* There is no example showing how to do [...]
1818
-->
1919

20-
2120
### Suggested Improvement
2221

2322
<!--

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ version: 2
88
# Ref https://github.com/dependabot/dependabot-core/issues/2521#issuecomment-863261500
99
updates:
1010
- package-ecosystem: npm
11-
directory: "/"
11+
directory: '/'
1212
schedule:
13-
interval: "daily"
13+
interval: 'daily'
1414
open-pull-requests-limit: 0 # in case you don't want to enable version updates
1515
allow:
16-
- dependency-type: "production"
16+
- dependency-type: 'production'

.github/workflows/binder-on-pr.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,25 @@ on:
55
types: [opened]
66

77
permissions:
8-
pull-requests:
9-
write
8+
pull-requests: write
109

1110
jobs:
1211
binder:
1312
runs-on: ubuntu-latest
1413
steps:
15-
- name: comment on PR with Binder link
16-
uses: actions/github-script@v1
17-
with:
18-
github-token: ${{secrets.GITHUB_TOKEN}}
19-
script: |
20-
var PR_HEAD_USERREPO = process.env.PR_HEAD_USERREPO;
21-
var PR_HEAD_REF = process.env.PR_HEAD_REF;
22-
github.issues.createComment({
23-
issue_number: context.issue.number,
24-
owner: context.repo.owner,
25-
repo: context.repo.repo,
26-
body: `[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_REF}?urlpath=lab/tree/docs/source/examples/) :point_left: Launch a binder notebook on branch _${PR_HEAD_USERREPO}/${PR_HEAD_REF}_`
27-
})
28-
env:
29-
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
30-
PR_HEAD_USERREPO: ${{ github.event.pull_request.head.repo.full_name }}
14+
- name: comment on PR with Binder link
15+
uses: actions/github-script@v6
16+
with:
17+
github-token: ${{secrets.GITHUB_TOKEN}}
18+
script: |
19+
var PR_HEAD_USERREPO = process.env.PR_HEAD_USERREPO;
20+
var PR_HEAD_REF = process.env.PR_HEAD_REF;
21+
github.issues.createComment({
22+
issue_number: context.issue.number,
23+
owner: context.repo.owner,
24+
repo: context.repo.repo,
25+
body: `[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_REF}?urlpath=lab/tree/docs/source/examples/) :point_left: Launch a binder notebook on branch _${PR_HEAD_USERREPO}/${PR_HEAD_REF}_`
26+
})
27+
env:
28+
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
29+
PR_HEAD_USERREPO: ${{ github.event.pull_request.head.repo.full_name }}

.github/workflows/build.yml

Lines changed: 63 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,66 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v1
15-
- name: Install node
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: '14'
19-
cache: 'yarn'
20-
- name: Install Python
21-
uses: actions/setup-python@v1
22-
with:
23-
python-version: '3.8'
24-
architecture: 'x64'
25-
- name: Cache pip on Linux
26-
uses: actions/cache@v1
27-
if: startsWith(runner.os, 'Linux')
28-
with:
29-
path: ~/.cache/pip
30-
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
31-
restore-keys: |
32-
${{ runner.os }}-pip-${{ matrix.python }}
33-
34-
- name: Install dependencies
35-
run: |
36-
python -m pip install jupyterlab~=3.0 jupyter_packaging~=0.10
37-
- name: Build the extension
38-
run: |
39-
pushd python/ipywidgets
40-
pip install .
41-
popd
42-
jlpm install
43-
jlpm run build
44-
pushd python/jupyterlab_widgets
45-
pwd
46-
pip install -e .
47-
jupyter labextension develop . --overwrite
48-
popd
49-
jupyter labextension list
50-
51-
python -m jupyterlab.browser_check
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Install node
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '18'
20+
cache: yarn
21+
22+
- name: Install Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: '3.8'
26+
architecture: 'x64'
27+
28+
- name: Cache pip on Linux
29+
uses: actions/cache@v3
30+
if: startsWith(runner.os, 'Linux')
31+
with:
32+
path: ~/.cache/pip
33+
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
34+
restore-keys: |
35+
${{ runner.os }}-pip-${{ matrix.python }}
36+
37+
- name: Install build dependencies
38+
run: |
39+
python -m pip install jupyterlab~=3.0 jupyter_packaging~=0.10
40+
41+
- name: Install node dependencies
42+
run: |
43+
jlpm
44+
45+
- name: Build node packages
46+
run: |
47+
jlpm build
48+
49+
- name: Install jupyterlab_widgets
50+
run: |
51+
cd python/jupyterlab_widgets
52+
pip install -vv -e . --no-deps
53+
54+
- name: Install widgetsnbextension
55+
run: |
56+
cd python/widgetsnbextension
57+
pip install -vv -e . --no-deps
58+
59+
- name: Install ipywidgets
60+
run: |
61+
cd python/ipywidgets
62+
pip install -vv . --no-deps
63+
64+
- name: Install development extension
65+
run: |
66+
cd python/jupyterlab_widgets
67+
jupyter labextension develop . --overwrite
68+
69+
- name: List labextensions
70+
run: |
71+
jupyter labextension list
72+
73+
- name: Run JupyterLab browser check
74+
run: |
75+
python -m jupyterlab.browser_check

.github/workflows/devinstall.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,34 @@ jobs:
1010
devinstall:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v1
15-
- name: Install node
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: '14'
19-
cache: 'yarn'
20-
- name: Install Python
21-
uses: actions/setup-python@v1
22-
with:
23-
python-version: '3.8'
24-
architecture: 'x64'
25-
- name: Cache pip on Linux
26-
uses: actions/cache@v1
27-
if: startsWith(runner.os, 'Linux')
28-
with:
29-
path: ~/.cache/pip
30-
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
31-
restore-keys: |
32-
${{ runner.os }}-pip-${{ matrix.python }}
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Install node
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '18'
19+
cache: yarn
20+
- name: Install Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.8'
24+
architecture: 'x64'
25+
- name: Cache pip on Linux
26+
uses: actions/cache@v3
27+
if: startsWith(runner.os, 'Linux')
28+
with:
29+
path: ~/.cache/pip
30+
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
31+
restore-keys: |
32+
${{ runner.os }}-pip-${{ matrix.python }}
3333
34-
- name: Install dependencies
35-
run: |
36-
python -m pip install notebook jupyterlab~=3.0 jupyter_packaging~=0.10
37-
- name: Run the dev-install script
38-
run: |
39-
./dev-install.sh
40-
jupyter nbextension list
41-
jupyter labextension list
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install notebook jupyterlab~=3.0 jupyter_packaging~=0.10
37+
- name: Run the dev-install script
38+
run: |
39+
./dev-install.sh
40+
jupyter nbextension list
41+
jupyter labextension list
4242
43-
python -m jupyterlab.browser_check
43+
python -m jupyterlab.browser_check

.github/workflows/lint.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v2
12-
- name: Install node
13-
uses: actions/setup-node@v3
14-
with:
15-
node-version: '14'
16-
cache: 'yarn'
17-
- name: yarn install, integrity, lint
18-
run: |
19-
yarn install --frozen-lockfile
20-
yarn run integrity
21-
yarn run lint:check
11+
- uses: actions/checkout@v3
12+
- name: Install node
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: '18'
16+
cache: yarn
17+
- name: yarn install, integrity, lint
18+
run: |
19+
yarn --frozen-lockfile
20+
yarn integrity
21+
yarn lint:check

0 commit comments

Comments
 (0)