14 changed files with 398 additions and 38 deletions
@ -0,0 +1,37 @@
|
||||
.ONESHELL: |
||||
SHELL := /bin/bash
|
||||
SRC = $(wildcard ./*.ipynb)
|
||||
|
||||
all: drcstools docs |
||||
|
||||
drcstools: $(SRC) |
||||
nbdev_build_lib
|
||||
touch drcstools
|
||||
|
||||
sync: |
||||
nbdev_update_lib
|
||||
|
||||
docs_serve: docs |
||||
cd docs && bundle exec jekyll serve
|
||||
|
||||
docs: $(SRC) |
||||
nbdev_build_docs
|
||||
touch docs
|
||||
|
||||
test: |
||||
nbdev_test_nbs
|
||||
|
||||
release: pypi conda_release |
||||
nbdev_bump_version
|
||||
|
||||
conda_release: |
||||
fastrelease_conda_package
|
||||
|
||||
pypi: dist |
||||
twine upload --repository pypi dist/*
|
||||
|
||||
dist: clean |
||||
python setup.py sdist bdist_wheel
|
||||
|
||||
clean: |
||||
rm -rf dist
|
@ -1,4 +1,24 @@
|
||||
# nbdev template |
||||
# Dynamics of Regional Climate Systems (DRCS) - Tools |
||||
> For data analysis |
||||
|
||||
|
||||
This file will become your README and also the index of your documentation. |
||||
|
||||
## Install |
||||
|
||||
`pip install drcstools` |
||||
|
||||
## How to use |
||||
|
||||
Fill me in please! Don't forget code examples: |
||||
|
||||
```python |
||||
1+1 |
||||
``` |
||||
|
||||
|
||||
|
||||
|
||||
2 |
||||
|
||||
Use this template to more easily create your nbdev project. |
||||
|
||||
|
@ -0,0 +1,63 @@
|
||||
repository: florianboergel/drcstools |
||||
output: web |
||||
topnav_title: drcstools |
||||
site_title: drcstools |
||||
company_name: Florian Boergel |
||||
description: Tools for climate analysis |
||||
# Set to false to disable KaTeX math |
||||
use_math: true |
||||
# Add Google analytics id if you have one and want to use it here |
||||
google_analytics: |
||||
# See http://nbdev.fast.ai/search for help with adding Search |
||||
google_search: |
||||
|
||||
host: 127.0.0.1 |
||||
# the preview server used. Leave as is. |
||||
port: 4000 |
||||
# the port where the preview is rendered. |
||||
|
||||
exclude: |
||||
- .idea/ |
||||
- .gitignore |
||||
- vendor |
||||
|
||||
exclude: [vendor] |
||||
|
||||
highlighter: rouge |
||||
markdown: kramdown |
||||
kramdown: |
||||
input: GFM |
||||
auto_ids: true |
||||
hard_wrap: false |
||||
syntax_highlighter: rouge |
||||
|
||||
collections: |
||||
tooltips: |
||||
output: false |
||||
|
||||
defaults: |
||||
- |
||||
scope: |
||||
path: "" |
||||
type: "pages" |
||||
values: |
||||
layout: "page" |
||||
comments: true |
||||
search: true |
||||
sidebar: home_sidebar |
||||
topnav: topnav |
||||
- |
||||
scope: |
||||
path: "" |
||||
type: "tooltips" |
||||
values: |
||||
layout: "page" |
||||
comments: true |
||||
search: true |
||||
tooltip: true |
||||
|
||||
sidebars: |
||||
- home_sidebar |
||||
|
||||
theme: jekyll-theme-cayman |
||||
baseurl: /drcstools/ |
@ -0,0 +1,10 @@
|
||||
topnav: |
||||
- title: Topnav |
||||
items: |
||||
- title: github |
||||
external_url: https://github.com/florianboergel/drcstools/tree/master/ |
||||
|
||||
#Topnav dropdowns |
||||
topnav_dropdowns: |
||||
- title: Topnav dropdowns |
||||
folders: |
@ -0,0 +1,99 @@
|
||||
--- |
||||
|
||||
title: drcstools |
||||
|
||||
|
||||
keywords: fastai |
||||
sidebar: home_sidebar |
||||
|
||||
summary: "API details." |
||||
description: "API details." |
||||
nb_path: "00_core.ipynb" |
||||
--- |
||||
<!-- |
||||
|
||||
################################################# |
||||
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### |
||||
################################################# |
||||
# file to edit: 00_core.ipynb |
||||
# command to build the docs after a change: nbdev_build_docs |
||||
|
||||
--> |
||||
|
||||
<div class="container" id="notebook-container"> |
||||
|
||||
{% raw %} |
||||
|
||||
<div class="cell border-box-sizing code_cell rendered"> |
||||
|
||||
</div> |
||||
{% endraw %} |
||||
|
||||
{% raw %} |
||||
|
||||
<div class="cell border-box-sizing code_cell rendered"> |
||||
|
||||
<div class="output_wrapper"> |
||||
<div class="output"> |
||||
|
||||
<div class="output_area"> |
||||
|
||||
|
||||
<div class="output_markdown rendered_html output_subarea "> |
||||
<h4 id="say_hello" class="doc_header"><code>say_hello</code><a href="https://github.com/florianboergel/drcstools/tree/master/drcstools/core.py#L6" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>say_hello</code>(<strong><code>to</code></strong>)</p> |
||||
</blockquote> |
||||
<p>Say hello to somebody</p> |
||||
|
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
{% endraw %} |
||||
|
||||
{% raw %} |
||||
|
||||
<div class="cell border-box-sizing code_cell rendered"> |
||||
|
||||
</div> |
||||
{% endraw %} |
||||
|
||||
{% raw %} |
||||
|
||||
<div class="cell border-box-sizing code_cell rendered"> |
||||
<div class="input"> |
||||
|
||||
<div class="inner_cell"> |
||||
<div class="input_area"> |
||||
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">say_hello</span><span class="p">(</span><span class="s2">"Sylvain"</span><span class="p">)</span> |
||||
</pre></div> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="output_wrapper"> |
||||
<div class="output"> |
||||
|
||||
<div class="output_area"> |
||||
|
||||
|
||||
|
||||
<div class="output_text output_subarea output_execute_result"> |
||||
<pre>'Hello Sylvain!'</pre> |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
{% endraw %} |
||||
|
||||
</div> |
||||
|
||||
|
@ -0,0 +1,100 @@
|
||||
--- |
||||
|
||||
title: Dynamics of Regional Climate Systems (DRCS) - Tools |
||||
|
||||
|
||||
keywords: fastai |
||||
sidebar: home_sidebar |
||||
|
||||
summary: "For data analysis" |
||||
description: "For data analysis" |
||||
nb_path: "index.ipynb" |
||||
--- |
||||
<!-- |
||||
|
||||
################################################# |
||||
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### |
||||
################################################# |
||||
# file to edit: index.ipynb |
||||
# command to build the docs after a change: nbdev_build_docs |
||||
|
||||
--> |
||||
|
||||
<div class="container" id="notebook-container"> |
||||
|
||||
{% raw %} |
||||
|
||||
<div class="cell border-box-sizing code_cell rendered"> |
||||
|
||||
</div> |
||||
{% endraw %} |
||||
|
||||
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell"> |
||||
<div class="text_cell_render border-box-sizing rendered_html"> |
||||
<p>This file will become your README and also the index of your documentation.</p> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell"> |
||||
<div class="text_cell_render border-box-sizing rendered_html"> |
||||
<h2 id="Install">Install<a class="anchor-link" href="#Install"> </a></h2> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell"> |
||||
<div class="text_cell_render border-box-sizing rendered_html"> |
||||
<p><code>pip install drcstools</code></p> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell"> |
||||
<div class="text_cell_render border-box-sizing rendered_html"> |
||||
<h2 id="How-to-use">How to use<a class="anchor-link" href="#How-to-use"> </a></h2> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell"> |
||||
<div class="text_cell_render border-box-sizing rendered_html"> |
||||
<p>Fill me in please! Don't forget code examples:</p> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% raw %} |
||||
|
||||
<div class="cell border-box-sizing code_cell rendered"> |
||||
<div class="input"> |
||||
|
||||
<div class="inner_cell"> |
||||
<div class="input_area"> |
||||
<div class=" highlight hl-ipython3"><pre><span></span><span class="mi">1</span><span class="o">+</span><span class="mi">1</span> |
||||
</pre></div> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="output_wrapper"> |
||||
<div class="output"> |
||||
|
||||
<div class="output_area"> |
||||
|
||||
|
||||
|
||||
<div class="output_text output_subarea output_execute_result"> |
||||
<pre>2</pre> |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
{% endraw %} |
||||
|
||||
</div> |
||||
|
||||
|
@ -1,10 +1,6 @@
|
||||
{ |
||||
"Notebook": { |
||||
"Export to modules": "/export", |
||||
"Convert to html": "/export2html", |
||||
"Show doc": "/showdoc", |
||||
"Test functions": "/test", |
||||
"Core functions": "/core", |
||||
"Command line functions": "/cli" |
||||
"drcstools": { |
||||
"Overview": "/", |
||||
"drcstools": "core.html" |
||||
} |
||||
} |
@ -0,0 +1,13 @@
|
||||
# AUTOGENERATED BY NBDEV! DO NOT EDIT! |
||||
|
||||
__all__ = ["index", "modules", "custom_doc_links", "git_url"] |
||||
|
||||
index = {"say_hello": "00_core.ipynb"} |
||||
|
||||
modules = ["core.py"] |
||||
|
||||
doc_url = "https://florianboergel.github.io/drcstools/" |
||||
|
||||
git_url = "https://github.com/florianboergel/drcstools/tree/master/" |
||||
|
||||
def custom_doc_links(name): return None |
@ -0,0 +1,8 @@
|
||||
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified). |
||||
|
||||
__all__ = ['say_hello'] |
||||
|
||||
# Cell |
||||
def say_hello(to): |
||||
"Say hello to somebody" |
||||
return f'Hello {to}!' |
Loading…
Reference in new issue