Skip to content

Commit

Permalink
Initial skeleton import
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed Aug 28, 2018
1 parent 29427f4 commit 271bf35
Show file tree
Hide file tree
Showing 22 changed files with 1,524 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.py]
max_line_length = 120

[*.md]
indent_size = 2
trim_trailing_whitespace = false

[**/*.scss]
indent_size = 2

[**/*.{json,yaml,yml}]
indent_size = 2
95 changes: 91 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,91 @@
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
# ---> Python
# Byte-compiled / optimized / DLL files
__pycache__/
.pytest_cache
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.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

# Translations
# *.mo
# *.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# ---> Node
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules
output/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# getudata

udata website
13 changes: 13 additions & 0 deletions articles/2018-08-28-hello-world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Hello World
date: 2018-08-28 17:59
modified: 2018-08-28 17:59
image: https://placehold.it/1920x1080
tags:
- test
slug: hello-world
lang: en
authors: Open Data Team
summary: Just a sample article
# status: draft
---
2 changes: 2 additions & 0 deletions data/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
tagline: Open, customizable and skinnable platform dedicated to open data
4 changes: 4 additions & 0 deletions data/plugins/udata-ckan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
repository: https://github.com/opendatateam/udata-ckan
---
CKAN support
4 changes: 4 additions & 0 deletions data/showcase/data.gouv.fr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
link: https://www.data.gouv.fr
---
French national open data portal
3 changes: 3 additions & 0 deletions develop.pip
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r requirements.pip
invoke
livereload
12 changes: 12 additions & 0 deletions pages/demo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Demo
date: 2018-08-28 18:00
modified: 2018-08-28 18:00
image: https://placehold.it/1920x1080
tags:
- demo
slug: demo
lang: en
authors: Open Data Team
summary: Just a demo page
---
119 changes: 119 additions & 0 deletions pelicanconf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
#!/usr/bin/env python
import os

AUTHOR = 'Open Data Team'
SITENAME = 'udata'

SITEDESCRIPTION = 'Bla bla bla'

TAGS = ('opendata', 'data')

# PATH = 'articles'

TIMEZONE = 'Europe/Paris'

DEFAULT_LANG = 'en'

# THEME = 'theme'

PATH = os.path.dirname(__file__)
OUTPUT_PATH = os.path.join(PATH, 'output')
ARTICLE_PATHS = [
'articles',
]

CONTACT_EMAIL = '[email protected]'

# PAGE_PATHS = [
# 'pages',
# ]


# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

STATIC_PATHS = [
'images',
]

PLUGIN_PATHS = [
'plugins',
]

PLUGINS = [
'sitemap',
'frontmark',
'data',
'related_posts',
'jinja_tools',
]

DATA_COMMON = 'data'
DATA_PATHS = [
DATA_COMMON,
os.path.join(DATA_COMMON, DEFAULT_LANG),
]

DATA = [
'config.yml',
'showcase',
'plugins',
]

TEMPLATE_PAGES = {
# 'templates/index.html': 'index.html'
}

# Serve the blog on /blog/
# INDEX_URL = 'blog.html'
# INDEX_SAVE_AS = 'blog.html'

ARTICLE_URL = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
ARTICLE_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}.html'

CATEGORY_URL = 'blog/category/{slug}.html'
CATEGORY_SAVE_AS = 'blog/category/{slug}.html'

TAG_URL = 'blog/tag/{slug}.html'
TAG_SAVE_AS = 'blog/tag/{slug}.html'

PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = '{slug}.html'


SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'daily',
'indexes': 'daily',
'pages': 'monthly'
}
}

RELATED_POSTS_MAX = 3

SOCIAL = (
('github', 'https://github.com/opendatateam'),
('twitter', 'https://twitter.com/udata_project'),
('Gitter', 'https://gitter.im/opendatateam/udata'),
)
Empty file added plugins/__init__.py
Empty file.
Loading

0 comments on commit 271bf35

Please sign in to comment.