Skip to content

Commit

Permalink
nbdev_new
Browse files Browse the repository at this point in the history
  • Loading branch information
mccallion committed Aug 12, 2022
1 parent 9aa6925 commit 31af59e
Show file tree
Hide file tree
Showing 13 changed files with 506 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Deploy to GitHub Pages
on:
push:
branches: [ "main", "master" ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps: [uses: fastai/workflows/quarto-ghp@master]
7 changes: 7 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: CI
on: [workflow_dispatch, pull_request, push]

jobs:
test:
runs-on: ubuntu-latest
steps: [uses: fastai/workflows/nbdev-ci@master]
144 changes: 144 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
_docs/

*.bak
.gitattributes
.last_checked
.gitconfig
*.bak
*.log
*~
~*
_tmp*
tmp*
tags
*.pkg

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

.vscode
*.swp

# osx generated files
.DS_Store
.DS_Store?
.Trashes
ehthumbs.db
Thumbs.db
.idea

# pytest
.pytest_cache

# tools/trust-doc-nbs
docs_src/.last_checked

# symlinks to fastai
docs_src/fastai
tools/fastai

# link checker
checklink/cookies.txt

# .gitconfig is now autogenerated
.gitconfig

51 changes: 51 additions & 0 deletions 00_core.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#| default_exp core"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# module name here\n",
"\n",
"> API details."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#|hide\n",
"from nbdev.showdoc import *"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#|export\n",
"def foo(): pass"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include settings.ini
include LICENSE
include CONTRIBUTING.md
include README.md
recursive-exclude * __pycache__
38 changes: 38 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
ipynb-filters: [nbdev_filter]

project:
type: website
output-dir: _docs
preview:
port: 3000
browser: false

format:
html:
theme: cosmo
css: styles.css
toc: true

website:
title: "fastai2022"
description: "Following along with the 2022 version of the fast.ai course"
execute:
enabled: false
twitter-card: true
open-graph: true
reader-mode: true
repo-branch: main
repo-url: https://github.com/mccallion/fastai2022/
repo-actions: [issue]
navbar:
background: primary
search: true
right:
- icon: github
href: https://github.com/mccallion/fastai2022/
sidebar:
style: "floating"

metadata-files:
- sidebar.yml
- custom.yml
Empty file added fastai2022/__init__.py
Empty file.
29 changes: 29 additions & 0 deletions fastai2022/_modidx.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Autogenerated by nbdev

d = { 'settings': { 'audience': 'Developers',
'author': 'mccallion',
'author_email': '[email protected]',
'branch': 'main',
'copyright': 'Put your copyright info here',
'custom_sidebar': 'False',
'description': 'Following along with the 2022 version of the fast.ai course',
'doc_baseurl': '/fastai2022/',
'doc_host': 'https://mccallion.github.io',
'doc_path': '_docs',
'git_url': 'https://github.com/mccallion/fastai2022/',
'host': 'github',
'keywords': 'nbdev',
'language': 'English',
'lib_name': 'fastai2022',
'lib_path': 'fastai2022',
'license': 'apache2',
'min_python': '3.7',
'nbs_path': '.',
'recursive': 'False',
'repo': 'fastai2022',
'status': '2',
'title': 'fastai2022',
'tst_flags': 'notest',
'user': 'mccallion',
'version': '0.0.1'},
'syms': {'fastai2022.core': {'fastai2022.core.foo': 'https://mccallion.github.io/fastai2022/core.html#foo'}}}
7 changes: 7 additions & 0 deletions fastai2022/core.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# AUTOGENERATED! DO NOT EDIT! File to edit: ../00_core.ipynb.

# %% auto 0
__all__ = ['foo']

# %% ../00_core.ipynb 3
def foo(): pass
96 changes: 96 additions & 0 deletions index.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#|hide\n",
"from fastai2022.core import *"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Project name here\n",
"\n",
"> Summary description here."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This file will become your README and also the index of your documentation."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Install"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"```sh\n",
"pip install your_project_name\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## How to use"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Fill me in please! Don't forget code examples:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"1+1"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.7 ('base')",
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Loading

0 comments on commit 31af59e

Please sign in to comment.