Skip to content

Commit 6123427

Browse files
committed
clean up dockerfile, add pelican config and metadata for two notebooks
1 parent c750c8b commit 6123427

File tree

4 files changed

+62
-10
lines changed

4 files changed

+62
-10
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
title: Identify Datasets
2+
description: Identify datasets for crop classification and segmentation
3+
date: 12-01-2001
4+
category: crop classification
5+
tags: use case, analysis
6+

jupyter-notebooks/udm/udm.nbdata

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
title: Working with the Unusable Data Mask (UDM)
2+
description: Visualize and understand the UDM
3+
date: 12-01-2001
4+
category: tutorials
5+
tags: data, analysis, notebook
6+

planet-notebook-docker/Dockerfile.static

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
FROM python:3.4-jessie
22

3-
# # install pelican-ipynb dependencies
4-
# # https://github.com/danielfrg/pelican-ipynb
5-
# RUN pip install --upgrade pip && \
6-
# pip install \
7-
# pelican>=3.5 \
8-
# jupyter>=1.0 \
9-
# ipython>=4.0 \
10-
# nbconvert>=4.0
11-
12-
133
RUN mkdir -p /opt/site
144
WORKDIR /opt/site
155

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*- #
3+
from __future__ import unicode_literals
4+
from datetime import datetime
5+
6+
import os
7+
dir_path = os.path.dirname(os.path.realpath(__file__))
8+
9+
# while messing with settings
10+
LOAD_CONTENT_CACHE = False
11+
12+
AUTHOR = 'A Planeteer'
13+
SITENAME = 'Notebooks'
14+
SITESUBTITLE = 'Notebooks written by the Planet team and our users.'
15+
SITEURL = ''
16+
APIDOCS_URL = 'https://docs.planet.com'
17+
NOW = datetime.today()
18+
19+
PATH = 'content'
20+
OUTPUT_PATH = 'public'
21+
22+
TIMEZONE = 'America/Los_Angeles'
23+
DEFAULT_DATE = 'fs'
24+
DEFAULT_LANG = 'en'
25+
26+
# Feed generation is usually not desired when developing
27+
FEED_ALL_ATOM = None
28+
CATEGORY_FEED_ATOM = None
29+
TRANSLATION_FEED_ATOM = None
30+
AUTHOR_FEED_ATOM = None
31+
AUTHOR_FEED_RSS = None
32+
33+
DEFAULT_PAGINATION = 6
34+
35+
# Uncomment following line if you want document-relative URLs when developing
36+
RELATIVE_URLS = True
37+
38+
THEME = 'simple'
39+
40+
41+
PLUGIN_PATHS=['./plugins']
42+
# ASSET_CONFIG = (('less_bin', '{}/node_modules/less/bin/lessc'.format(dir_path)), )
43+
PLUGINS = ['ipynb.markup']
44+
45+
# For Notebooks plugin
46+
MARKUP = ('md', 'ipynb')
47+
48+
# notebooks plugin settings
49+
IGNORE_FILES = ['.ipynb_checkpoints']
50+

0 commit comments

Comments
 (0)