Skip to content

Commit

Permalink
Spacing Tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac-Flath committed Oct 25, 2024
1 parent f4c402b commit aab5d91
Show file tree
Hide file tree
Showing 5 changed files with 588 additions and 39 deletions.
155 changes: 118 additions & 37 deletions docs/99_main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
{
"cell_type": "markdown",
"id": "e43d0955",
"metadata": {},
"metadata": {
"heading_collapsed": true
},
"source": [
"# Main\n",
"\n",
Expand All @@ -12,9 +14,11 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 18,
"id": "0cc276d0",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| default_exp main"
Expand All @@ -23,16 +27,20 @@
{
"cell_type": "markdown",
"id": "7cf0bc28",
"metadata": {},
"metadata": {
"heading_collapsed": true
},
"source": [
"## Imports"
"# Imports"
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 19,
"id": "d5abdcb0",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| export\n",
Expand All @@ -47,9 +55,11 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 20,
"id": "9238fa2a",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| hide\n",
Expand All @@ -60,9 +70,11 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 21,
"id": "9b2ce5c5",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| export\n",
Expand All @@ -71,9 +83,11 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 22,
"id": "d53a9e4d",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| hide\n",
Expand All @@ -84,16 +98,20 @@
{
"cell_type": "markdown",
"id": "add7a550",
"metadata": {},
"metadata": {
"heading_collapsed": true
},
"source": [
"## Route Creation Functions"
"# Route Creation Functions"
]
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 23,
"id": "89f68b11",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| export\n",
Expand All @@ -106,9 +124,11 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 24,
"id": "f59b44da",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| export\n",
Expand All @@ -124,16 +144,20 @@
{
"cell_type": "markdown",
"id": "661a800c",
"metadata": {},
"metadata": {
"heading_collapsed": true
},
"source": [
"## Examples"
"# Examples"
]
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 25,
"id": "52e3819e",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| export\n",
Expand All @@ -149,9 +173,11 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 26,
"id": "77bc464f",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| export\n",
Expand All @@ -177,16 +203,20 @@
{
"cell_type": "markdown",
"id": "60db03e7",
"metadata": {},
"metadata": {
"heading_collapsed": true
},
"source": [
"## API Reference"
"# API Reference"
]
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 27,
"id": "1ee741bc",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| export\n",
Expand All @@ -195,9 +225,11 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 28,
"id": "b96bb471",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| export\n",
Expand All @@ -206,9 +238,11 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 29,
"id": "6b7b54c9",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| export\n",
Expand All @@ -225,12 +259,44 @@
" open_section='API Reference')"
]
},
{
"cell_type": "markdown",
"id": "10f48a1f",
"metadata": {},
"source": [
"# Tutorials"
]
},
{
"cell_type": "code",
"execution_count": 30,
"id": "c4819cdd",
"metadata": {},
"outputs": [],
"source": [
"#| export\n",
"from tutorial_spacing import spacing_tutorial"
]
},
{
"cell_type": "code",
"execution_count": 31,
"id": "0e37e335",
"metadata": {},
"outputs": [],
"source": [
"#| export\n",
"_create_example_page = partial(_create_page, open_section='Tutorials')\n",
"@rt\n",
"def tutorial_spacing(request=None): return _create_example_page('spacing', spacing_tutorial, request)"
]
},
{
"cell_type": "markdown",
"id": "e44a3dc4",
"metadata": {},
"source": [
"## Single Page Sections"
"# Single Page Sections"
]
},
{
Expand Down Expand Up @@ -290,7 +356,7 @@
"id": "28525f93",
"metadata": {},
"source": [
"## Sidebar"
"# Sidebar"
]
},
{
Expand Down Expand Up @@ -319,6 +385,17 @@
" cls='uk-open' if open_section=='API Reference' else ''\n",
" ),\n",
" NavParentLi(\n",
" A(DivFullySpaced('Guides', NavBarParentIcon())),\n",
" NavContainer(\n",
" *[create_li(title, href) for title, href in [\n",
" ('Spacing', tutorial_spacing),\n",
" ]],\n",
" parent=False\n",
" ),\n",
" cls='uk-open' if open_section=='Guides' else ''\n",
" ),\n",
" \n",
" NavParentLi(\n",
" A(DivFullySpaced('Examples', NavBarParentIcon())),\n",
" NavContainer(\n",
" *[create_li(title, href) for title, href in [\n",
Expand All @@ -344,7 +421,9 @@
{
"cell_type": "markdown",
"id": "d46f3087",
"metadata": {},
"metadata": {
"heading_collapsed": true
},
"source": [
"## _"
]
Expand All @@ -353,7 +432,9 @@
"cell_type": "code",
"execution_count": 19,
"id": "94e3c1e4",
"metadata": {},
"metadata": {
"hidden": true
},
"outputs": [],
"source": [
"#| export\n",
Expand Down
Loading

0 comments on commit aab5d91

Please sign in to comment.