Skip to content

Commit bd2cf83

Browse files
committed
more docs hacking
1 parent 1a4d95f commit bd2cf83

File tree

15 files changed

+96
-25
lines changed

15 files changed

+96
-25
lines changed

.readthedocs.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

anaconda-project.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ env_specs:
7878
- nodejs
7979
- pillow
8080
- python-chromedriver-binary
81-
- recommonmark
8281
- robotframework >=3.1
8382
- robotframework-lint
8483
- robotframework-seleniumlibrary >=3.2

atest/acceptance/01_server/00_basic.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Start three servers
2929
${terminated} = Terminate All Jupyter Servers
3030
Should be equal as integers ${terminated} 0 msg=No servers should have been terminated
3131

32-
Notebook Files
32+
Server Files
3333
[Setup] Create File ${OUTPUT_DIR}${/}foo.txt bar
3434
${nb1} = Start New Jupyter Server stdout=${OUTPUT_DIR}${/}files.log stderr=STDOUT
3535
Copy Files to Jupyter Directory ${OUTPUT_DIR}${/}*.txt

atest/acceptance/10_lab/10_notebook.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ IPython Notebook Outputs
1717
Open JupyterLab
1818
Launch a new JupyterLab Document
1919
: FOR ${i} IN RANGE ${10}
20-
\ Add and Run Cell print("${i} hello world " * ${i ** 2})
20+
\ Add and Run JupyterLab Code Cell print("${i} hello world " * ${i ** 2})
2121
Wait Until JupyterLab Kernel Is Idle
2222
Screenshot Each Output of Active JupyterLab Document ipython_outputs${/}

docs/source/conf.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from tempfile import TemporaryDirectory
1313

1414
import nbsphinx
15-
from recommonmark.parser import CommonMarkParser
1615

1716

1817
nbsphinx.RST_TEMPLATE = nbsphinx.RST_TEMPLATE.replace(
@@ -73,10 +72,7 @@
7372
# The suffix(es) of source filenames.
7473
# You can specify multiple suffix as a list of string:
7574
#
76-
source_suffix = [".rst", ".md"]
77-
78-
79-
source_parsers = {".md": CommonMarkParser}
75+
source_suffix = ".rst"
8076

8177
# The master toctree document.
8278
master_doc = "index"

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ HOME
55
:maxdepth: 2
66
:caption: Contents:
77

8+
notebooks/WHY.ipynb
89
notebooks/INSTALL.ipynb
910
notebooks/KEYWORDS.ipynb

docs/source/notebooks/INSTALL.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"source": [
77
"# INSTALL\n",
88
"Installing `JupyterLibrary` will bring along Robot Framework and SeleniumLibrary. Jupyter components, like `notebook`, `jupyterlab` and `nteract_on_jupyter`, and browser executors (e.g. `chromedriver`, `geckodriver`) and various utilities (e.g. `nodejs`) are up to you, depending on what you want to test. Here are some examples.\n",
9-
"\n",
10-
"> _Sorry for the mess, haven't actually shipped anything yet... but the [DEV](#DEV) install does kinda work already_"
9+
"\n> _Sorry for the mess, haven't actually shipped anything yet... but the [DEV](#DEV) install does kinda work already_"
1110
]
1211
},
1312
{
@@ -53,7 +52,7 @@
5352
"`JupyterLibrary` is under active development, and is heavily invested in `conda` because of the complexity of managing browser execution dependencies. But `conda` (rightly) makes it hard to install Random Repos from the Internet, so you'll need a bit of `pip`, too. \n",
5453
"\n",
5554
"Here's a complete setup:\n",
56-
"```bash\n",
55+
"```shell\n",
5756
"conda create \\\n",
5857
" -n testing-jupyter \\ # as good a name as any\n",
5958
" python=3 # 2020 is right around the corner\n",
@@ -92,6 +91,9 @@
9291
"nbconvert_exporter": "python",
9392
"pygments_lexer": "ipython3",
9493
"version": "3.7.1"
94+
},
95+
"nteract": {
96+
"version": "nteract-on-jupyter@0.35.4"
9597
}
9698
},
9799
"nbformat": 4,

docs/source/notebooks/KEYWORDS.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"source": [
1717
"## Browser + Server\n",
1818
"`JupyterLibrary` inherits all of the keywords of [SeleniumLibrary](http://robotframework.org/SeleniumLibrary/SeleniumLibrary.html), and then adds a few more, including the two most important ones:\n",
19+
"\n",
1920
"- **Wait for New Jupyter Server to be Ready**\n",
2021
"- **Terminate All Jupyter Servers**\n",
2122
"\n",

docs/source/notebooks/WHY.ipynb

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# WHY"
8+
]
9+
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"## ...Jupyter?\n",
15+
"\n",
16+
"Jupyter clients are some of the most powerful pieces of technology users can run in their web browsers. By developing cross-client capabilities, either as kernel-level extensions, widgets, media types, or other confections, you are helping to advance fields of inquiry you might not even know exist."
17+
]
18+
},
19+
{
20+
"cell_type": "markdown",
21+
"metadata": {},
22+
"source": [
23+
"## ...Acceptance Tests?\n",
24+
"\n",
25+
"Unit tests and strongly-typed languages are superb for rapid, confident iteration on even large codebases. But users will be installing **Your Code** next to an unknown number of **Other People's Code**, and then write **Their Code**. If`^H^H` When it breaks, they might not be able to tell that it's the subtle interaction between these things. Testing **All the Code** together, _as your user will use it_, gives you greater confidence in your ability to ship."
26+
]
27+
},
28+
{
29+
"cell_type": "markdown",
30+
"metadata": {},
31+
"source": [
32+
"## ...JupyterLibrary?\n",
33+
"\n",
34+
"Powered by [Robot Framework](https://robotframework.org), `JupyterLibrary` allows you to:\n",
35+
"\n",
36+
"- write tests in concise, plain language\n",
37+
" - and extend this language to meet your needs\n",
38+
"- run in multiple browsers (even at the same time)\n",
39+
" - run on multiple operating systems\n",
40+
"- view rich reports of your test results\n",
41+
" - but also compare your reports over time with machine-readable formats\n",
42+
"- generate screenshots to augment your documentation"
43+
]
44+
}
45+
],
46+
"metadata": {
47+
"kernelspec": {
48+
"display_name": "Python 3",
49+
"language": "python",
50+
"name": "python3"
51+
},
52+
"language_info": {
53+
"codemirror_mode": {
54+
"name": "ipython",
55+
"version": 3
56+
},
57+
"file_extension": ".py",
58+
"mimetype": "text/x-python",
59+
"name": "python",
60+
"nbconvert_exporter": "python",
61+
"pygments_lexer": "ipython3",
62+
"version": "3.7.1"
63+
}
64+
},
65+
"nbformat": 4,
66+
"nbformat_minor": 2
67+
}

environment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dependencies:
1414
- nodejs
1515
- pillow
1616
- python-chromedriver-binary
17-
- recommonmark
1817
- robotframework >=3.1
1918
- robotframework-lint
2019
- robotframework-seleniumlibrary >=3.2

0 commit comments

Comments
 (0)