-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from airtai/1-project-setup
Set up nbdev
- Loading branch information
Showing
30 changed files
with
697 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Deploy nbdev-mkdocs generated documentation to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: [ "main", "master" ] | ||
workflow_dispatch: | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: airtai/workflows/nbdev-mkdocs-ghp@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# fastkafka-gen | ||
|
||
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! --> | ||
|
||
This file will become your README and also the index of your | ||
documentation. | ||
|
||
## Install | ||
|
||
``` sh | ||
pip install fastkafka_gen | ||
``` | ||
|
||
## How to use | ||
|
||
Fill me in please! Don’t forget code examples: | ||
|
||
``` python | ||
1+1 | ||
``` | ||
|
||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dev.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: "3" | ||
services: | ||
fastkafka-gen-devel: #nosemgrep | ||
image: ghcr.io/airtai/nbdev-mkdocs | ||
hostname: $DOCKER_COMPOSE_PROJECT-devel | ||
container_name: $DOCKER_COMPOSE_PROJECT-devel | ||
ports: | ||
- "${PORT_PREFIX}8888:8888" | ||
- "${PORT_PREFIX}4000:4000" | ||
- "${PORT_PREFIX}6006:6006" | ||
volumes: | ||
- $AIRT_PROJECT:/work/fastkafka-gen | ||
- /etc/passwd:/etc/passwd | ||
- /etc/group:/etc/group | ||
- /etc/shadow:/etc/shadow | ||
- $HOME/.ssh:$HOME/.ssh | ||
- $HOME/.gitconfig:/root/.gitconfig | ||
environment: | ||
USER: $USER | ||
USERNAME: $USERNAME | ||
PRESERVE_ENVS: $PRESERVE_ENVS | ||
OPENAI_API_KEY: $OPENAI_API_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Autogenerated by nbdev | ||
|
||
d = { 'settings': { 'branch': 'main', | ||
'doc_baseurl': '/fastkafka-gen', | ||
'doc_host': 'https://airtai.github.io', | ||
'git_url': 'https://github.com/airtai/fastkafka-gen', | ||
'lib_path': 'fastkafka_gen'}, | ||
'syms': {'fastkafka_gen.core': {'fastkafka_gen.core.foo': ('core.html#foo', 'fastkafka_gen/core.py')}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/00_core.ipynb. | ||
|
||
# %% auto 0 | ||
__all__ = ['foo'] | ||
|
||
# %% ../nbs/00_core.ipynb 3 | ||
def foo(): pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.md-typeset .admonition.caution, | ||
.md-typeset details.caution { | ||
border-color: #ff9100; | ||
} | ||
.md-typeset .caution > .admonition-title, | ||
.md-typeset .caution > summary { | ||
background-color: #ff91001a; | ||
} | ||
.md-typeset .caution > .admonition-title::before, | ||
.md-typeset .caution > summary::before { | ||
background-color: #ff9100; | ||
-webkit-mask-image: var(--md-admonition-icon--warning); | ||
mask-image: var(--md-admonition-icon--warning); | ||
} | ||
|
||
.md-typeset .admonition.important, | ||
.md-typeset details.important { | ||
border-color: #ff1744; | ||
} | ||
.md-typeset .important > .admonition-title, | ||
.md-typeset .important > summary { | ||
background-color: #ff17441a; | ||
} | ||
.md-typeset .important > .admonition-title::before, | ||
.md-typeset .important > summary::before { | ||
background-color: #ff1744; | ||
-webkit-mask-image: var(--md-admonition-icon--danger); | ||
mask-image: var(--md-admonition-icon--danger); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
window.MathJax = { | ||
tex: { | ||
inlineMath: [["\\(", "\\)"]], | ||
displayMath: [["\\[", "\\]"]], | ||
processEscapes: true, | ||
processEnvironments: true | ||
}, | ||
options: { | ||
ignoreHtmlClass: ".*|", | ||
processHtmlClass: "arithmatex" | ||
} | ||
}; | ||
|
||
document$.subscribe(() => { | ||
MathJax.typesetPromise() | ||
}) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# Site | ||
site_name: fastkafka-gen | ||
site_url: https://airtai.github.io/fastkafka-gen | ||
site_author: airt | ||
site_description: The FastKafka-gen library uses advanced AI to generate FastKafka | ||
code from user descriptions, speeding up FastKafka app development. | ||
|
||
# Repository | ||
repo_name: fastkafka-gen | ||
repo_url: https://github.com/airtai/fastkafka-gen | ||
edit_uri: "" | ||
|
||
copyright: 2023 onwards, airt | ||
|
||
docs_dir: docs | ||
site_dir: site | ||
|
||
plugins: | ||
- literate-nav: | ||
nav_file: SUMMARY.md | ||
- search | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
import: | ||
- https://docs.python.org/3/objects.inv | ||
options: | ||
heading_level: 2 | ||
show_category_heading: true | ||
show_root_heading: true | ||
show_root_toc_entry: true | ||
show_signature_annotations: true | ||
show_if_no_docstring: true | ||
|
||
markdown_extensions: | ||
- md_in_html | ||
- pymdownx.arithmatex: | ||
generic: true | ||
- pymdownx.inlinehilite | ||
- pymdownx.details | ||
- pymdownx.emoji | ||
- pymdownx.magiclink | ||
- pymdownx.superfences: | ||
custom_fences: | ||
- name: mermaid | ||
class: mermaid | ||
format: !!python/name:pymdownx.superfences.fence_code_format | ||
- pymdownx.tasklist | ||
- pymdownx.highlight: | ||
linenums: false | ||
- pymdownx.snippets: | ||
check_paths: true | ||
- pymdownx.tabbed: | ||
alternate_style: true | ||
- admonition | ||
- toc: | ||
permalink: "¤" | ||
# - callouts | ||
theme: | ||
name: material | ||
custom_dir: site_overrides | ||
features: | ||
- navigation.instant | ||
# - navigation.tabs | ||
# - navigation.tabs.sticky | ||
# - navigation.sections | ||
# - navigation.expand | ||
- navigation.indexes | ||
- navigation.top | ||
# - toc.integrates | ||
- search.suggest | ||
- search.highlight | ||
- search.share | ||
palette: | ||
- scheme: slate | ||
primary: black | ||
accent: yellow | ||
toggle: | ||
icon: material/toggle-switch | ||
name: Switch to light mode | ||
- scheme: default | ||
primary: black # deep orange | ||
accent: red | ||
toggle: | ||
icon: material/toggle-switch-off-outline | ||
name: Switch to dark mode | ||
icon: | ||
repo: fontawesome/brands/github | ||
# repo: fontawesome/brands/gitlab | ||
logo: material/compass-outline | ||
# admonition: | ||
# <type>: <icon> | ||
favicon: overrides/images/compass-outline.png | ||
|
||
extra_css: | ||
- overrides/css/extra.css | ||
|
||
extra_javascript: | ||
- overrides/js/extra.js | ||
- overrides/js/mathjax.js | ||
- https://polyfill.io/v3/polyfill.min.js?features=es6 | ||
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js | ||
extra: | ||
version: | ||
provider: mike | ||
social_image: "https://opengraph.githubassets.com/1691483169.608266/airtai/fastkafka-gen" |
Oops, something went wrong.